forked from click-contrib/click-option-group
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (63 loc) · 2.21 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
# -*- coding: utf-8 -*-
import pathlib
from setuptools import setup
PACKAGE_NAME = 'click_option_group'
ROOT_DIR = pathlib.Path(__file__).parent
def get_version():
version = {}
version_file = ROOT_DIR / PACKAGE_NAME / '_version.py'
exec(version_file.read_text(), version)
return version['__version__']
def get_long_description():
readme = ROOT_DIR / 'README.md'
changelog = ROOT_DIR / 'CHANGELOG.md'
return '{}\n{}'.format(
readme.read_text(encoding='utf-8'),
changelog.read_text(encoding='utf-8')
)
setup(
name='click-option-group',
version=get_version(),
packages=[PACKAGE_NAME],
package_data={
PACKAGE_NAME: ["py.typed"]
},
include_package_data=True,
python_requires='>=3.6,<4',
install_requires=[
'Click>=7.0,<9',
],
extras_require={
'docs': ['sphinx', 'Pallets-Sphinx-Themes', 'm2r2'],
'tests': ['pytest'],
'tests_cov': ['pytest', 'pytest-cov', 'coverage', 'coveralls'],
},
url='https://github.com/click-contrib/click-option-group',
project_urls={
"Code": 'https://github.com/click-contrib/click-option-group',
"Issue tracker": 'https://github.com/click-contrib/click-option-group/issues',
"Documentation": 'https://click-option-group.readthedocs.io',
},
license='BSD-3-Clause',
author='Eugene Prilepin',
description='Option groups missing in Click',
long_description=get_long_description(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Environment :: Console',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
)