-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
setup.py
62 lines (57 loc) · 2 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
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 9):
sys.exit('ERROR: pdoc requires Python 3.9+')
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'),
encoding='utf-8').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.9',
)