forked from janluke/cloup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (47 loc) · 1.75 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
#!/usr/bin/env python
from pathlib import Path
from textwrap import dedent
from setuptools import find_packages, setup
def make_long_description(write_file=False):
readme = Path('README.rst').read_text(encoding='utf-8')
# PyPI doesn't support the `raw::` directive. Skip it.
start = readme.find('.. docs-index-start')
long_description = readme[start:]
if write_file:
Path('PYPI_README.rst').write_text(long_description, encoding='utf-8')
return long_description
setup(
name='cloup',
setup_requires=['setuptools_scm'],
use_scm_version={
'write_to': 'cloup/_version.py'
},
author='Gianluca Gippetto',
author_email='[email protected]',
description="Adds features to Click: option groups, constraints, subcommand "
"sections and help themes.",
long_description_content_type='text/x-rst',
long_description=make_long_description(),
url='https://github.com/janLuke/cloup',
license="BSD 3-Clause",
keywords=['CLI', 'click', 'argument groups', 'option groups', 'constraints',
'help colors', 'help themes', 'help styles'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
packages=find_packages(include=['cloup', 'cloup.*']),
zip_safe=False,
include_package_data=True,
python_requires='>=3.6',
install_requires=[
'click >=7.1, <9.0',
'dataclasses; python_version<="3.6"',
],
)