forked from pdoc3/pdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (56 loc) · 1.96 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
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 5):
sys.exit('ERROR: pdoc requires Python 3.5+')
def _discover_tests():
import unittest
return unittest.defaultTestLoader.discover('pdoc.test')
if __name__ == '__main__':
setup(
name="pdoc3",
license="AGPL-3.0",
description="Auto-generate API documentation for Python projects.",
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
long_description_content_type='text/markdown',
url="https://pdoc3.github.io/pdoc/",
project_urls={
'Documentation': 'https://pdoc3.github.io/pdoc/doc/pdoc/',
'Source': 'https://github.com/pdoc3/pdoc/',
'Tracker': 'https://github.com/pdoc3/pdoc/issues',
},
classifiers=[
"Topic :: Documentation",
"Topic :: Software Development :: Documentation",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3 :: Only',
],
entry_points={
"console_scripts": [
"pdoc = pdoc.cli:main",
"pdoc3 = pdoc.cli:main",
],
},
packages=find_packages(),
include_package_data=True,
provides=["pdoc"],
obsoletes=["pdoc"],
install_requires=[
"mako",
"markdown >= 3.0",
],
setup_requires=[
'setuptools_git',
'setuptools_scm',
],
use_scm_version={
'write_to': os.path.join('pdoc', '_version.py'),
},
test_suite="setup._discover_tests",
python_requires='>= 3.5',
)