generated from felix-hilden/python-minimal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (65 loc) · 1.81 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
import setuptools
import os
from pathlib import Path
"""
See the following resources:
* https://setuptools.readthedocs.io/en/latest/setuptools.html
* https://docs.python.org/3.7/distutils/setupscript.html
"""
root = Path(os.path.realpath(__file__)).parent
version_file = root / 'package' / 'VERSION'
readme_file = root / 'readme.rst'
pypi_url = 'https://pypi.org/project/python-package'
github_url = 'https://github.com/felix-hilden/python-package'
documentation_url = 'https://nonexistentproject.rtfd.org'
extras_require = {
'docs': [
'sphinx',
'sphinx-rtd-theme',
'sphinx-autodoc-typehints'
],
'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='python-package',
version=version_file.read_text().strip(),
description='Python package template',
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='felix.hilden@gmail.com',
maintainer='Felix Hildén',
maintainer_email='felix.hilden@gmail.com',
license='MIT',
keywords='python package template',
packages=setuptools.find_packages(exclude=('tests', 'tests.*',)),
include_package_data=True,
package_data={
'package': ['VERSION']
},
python_requires='>=3.6',
install_requires=[],
extras_require=extras_require,
classifiers=[],
)