generated from felix-hilden/python-package
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
88 lines (79 loc) · 2.27 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
import setuptools
import os
from pathlib import Path
root = Path(os.path.realpath(__file__)).parent
version_file = root / 'pyfactor' / 'VERSION'
readme_file = root / 'readme-pypi.rst'
pypi_url = 'https://pypi.org/project/pyfactor'
github_url = 'https://github.com/felix-hilden/pyfactor'
documentation_url = 'https://pyfactor.rtfd.org'
extras_require = {
'docs': [
'sphinx',
'sphinx-rtd-theme',
'sphinx-autodoc-typehints',
'sphinx-argparse',
],
'tests': [
'coverage',
'pytest',
],
'checks': [
'tox',
'doc8',
'flake8',
'flake8-bugbear',
'pydocstyle',
'pygments',
]
}
extras_require['dev'] = (
extras_require['docs'] + extras_require['tests'] + extras_require['checks']
)
setuptools.setup(
name='pyfactor',
version=version_file.read_text().strip(),
description='A script dependency visualiser.',
long_description=readme_file.read_text(),
long_description_content_type='text/x-rst',
url=documentation_url,
download_url=pypi_url,
project_urls={
'Source': github_url,
'Issues': github_url + '/issues',
'Documentation': documentation_url,
},
author='Felix Hildén',
author_email='[email protected]',
maintainer='Felix Hildén',
maintainer_email='[email protected]',
license='MIT',
keywords='dependency visualiser',
packages=setuptools.find_packages(exclude=('tests', 'tests.*',)),
include_package_data=True,
package_data={
'pyfactor': ['VERSION']
},
entry_points={
'console_scripts': ['pyfactor=pyfactor:main']
},
python_requires='>=3.6',
install_requires=[
'dataclasses;python_version<"3.7"',
'pydot',
'networkx',
'graphviz',
],
extras_require=extras_require,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
],
)