forked from NiklasRosenstein/pydoc-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
101 lines (95 loc) · 4.22 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# This file was auto-generated by Shut. DO NOT EDIT
# For more information about Shut, check out https://pypi.org/project/shut/
from __future__ import print_function
import io
import os
import setuptools
import sys
readme_file = 'README.md'
def _tempcopy(src, dst):
import atexit, shutil
if not os.path.isfile(dst):
if not os.path.isfile(src):
command = sys.argv[1] if len(sys.argv) >= 2 else None
msg = '"{}" does not exist, and cannot copy it from "{}" either'.format(dst, src)
# NOTE: In dist/build commands that are not invoked by Pip, we enforce that the license file
# must be present. See https://github.com/NiklasRosenstein/shut/issues/22
if command and 'PIP_REQ_TRACKER' not in os.environ and ('build' in command or 'dist' in command):
raise RuntimeError(msg)
print('warning:', msg, file=sys.stderr)
return
shutil.copyfile(src, dst)
atexit.register(lambda: os.remove(dst))
_tempcopy('../README.md', readme_file)
if os.path.isfile(readme_file):
with io.open(readme_file, encoding='utf8') as fp:
long_description = fp.read()
else:
print("warning: file \"{}\" does not exist.".format(readme_file), file=sys.stderr)
long_description = None
requirements = [
'click >=7.1,<9.0',
'databind.core >=1.2.2,<2.0.0',
'databind.json >=1.2.2,<2.0.0',
'docspec >=1.0.0,<2.0.0',
'docspec-python >=1.0.0,<2.0.0',
'docstring-parser >=0.11',
'nr.fs >=1.6.0,<2.0.0',
'nr.stream >=0.1.2,<1.0.0',
'requests >=2.23.0,<3.0.0',
'PyYAML >=5.3.0,<6.0.0',
'toml >=0.10.1,<1.0.0',
'watchdog',
]
setuptools.setup(
name = 'pydoc-markdown',
version = '4.3.2',
author = 'Niklas Rosenstein',
author_email = '[email protected]',
description = 'Create Python API documentation in Markdown format.',
long_description = long_description,
long_description_content_type = 'text/markdown',
url = 'https://github.com/NiklasRosenstein/pydoc-markdown',
license = 'MIT',
packages = setuptools.find_packages('src', ['test', 'test.*', 'tests', 'tests.*', 'docs', 'docs.*']),
package_dir = {'': 'src'},
include_package_data = True,
install_requires = requirements,
extras_require = {},
tests_require = [],
python_requires = '>=3.7.0,<4.0.0',
data_files = [],
entry_points = {
'console_scripts': [
'pydoc-markdown = pydoc_markdown.main:cli',
],
'pydoc_markdown.interfaces.Loader': [
'python = pydoc_markdown.contrib.loaders.python:PythonLoader',
],
'pydoc_markdown.interfaces.Processor': [
'crossref = pydoc_markdown.contrib.processors.crossref:CrossrefProcessor',
'filter = pydoc_markdown.contrib.processors.filter:FilterProcessor',
'google = pydoc_markdown.contrib.processors.google:GoogleProcessor',
'pydocmd = pydoc_markdown.contrib.processors.pydocmd:PydocmdProcessor',
'smart = pydoc_markdown.contrib.processors.smart:SmartProcessor',
'sphinx = pydoc_markdown.contrib.processors.sphinx:SphinxProcessor',
],
'pydoc_markdown.interfaces.Renderer': [
'hugo = pydoc_markdown.contrib.renderers.hugo:HugoRenderer',
'markdown = pydoc_markdown.contrib.renderers.markdown:MarkdownRenderer',
'mkdocs = pydoc_markdown.contrib.renderers.mkdocs:MkdocsRenderer',
'docusaurus = pydoc_markdown.contrib.renderers.docusaurus:DocusaurusRenderer',
'jinja2 = pydoc_markdown.contrib.renderers.jinja2:Jinja2Renderer',
],
'pydoc_markdown.interfaces.SourceLinker': [
'git = pydoc_markdown.contrib.source_linkers.git:GitSourceLinker',
'github = pydoc_markdown.contrib.source_linkers.git:GithubSourceLinker',
'gitea = pydoc_markdown.contrib.source_linkers.git:GiteaSourceLinker',
'bitbucket = pydoc_markdown.contrib.source_linkers.git:BitbucketSourceLinker',
]
},
cmdclass = {},
keywords = ['documentation', 'docs', 'generator', 'markdown', 'pydoc'],
classifiers = ['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop', 'Topic :: Software Development :: Code Generators', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9'],
zip_safe = True,
)