-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
84 lines (69 loc) · 2.11 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
#!/usr/bin/env python
"""
Basic setup.py
"""
from os.path import abspath, dirname, join, relpath
from setuptools import setup, find_packages
from bear import (
VERSION, NAME, REPO, PYPI_NAME, DESCRIPTION, AUTHOR, AUTHOR_EMAIL
)
ROOT = abspath(dirname(__file__))
PKG = join(ROOT, NAME)
with open(join(ROOT, "README.md")) as fd:
README = fd.read()
DATA = [
relpath('README.md', ROOT),
relpath('LICENSE.txt', ROOT)
]
STYLE = ['pycodestyle', 'pylint', 'coverage', 'radon']
GRAPH = ['wily']
CI_STYLE = ['coveralls']
KWARGS = dict(
name=PYPI_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
packages=find_packages(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=REPO,
download_url=f'{REPO}/zipball/{VERSION}',
entry_points={
'console_scripts': [f'{NAME} = {NAME}.__main__:run']
},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: '
'GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Utilities',
'Typing :: Typed'
],
install_requires=['ensure'],
extras_require={
'dev': STYLE,
'dev_graph': STYLE + GRAPH,
'ci': CI_STYLE,
'release': STYLE + CI_STYLE + [
'setuptools', 'wheel',
'twine', 'pyinstaller', 'requests'
],
'doc': ['sphinx>=2.2.0', "alabaster>=0.7.12"]
},
include_package_data=True,
data_files=[(NAME, DATA)],
python_requires=">=3.6"
)
if __name__ == '__main__':
setup(**KWARGS)