-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (46 loc) · 1.67 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 itertools import chain
from pathlib import Path
from setuptools import setup, find_packages
project_root = Path(__file__).resolve().parent
long_description = project_root.joinpath('readme.rst').read_text('utf-8')
about = {}
exec(project_root.joinpath('lib', 'nest_client', '__version__.py').read_text('utf-8'), about)
optional_dependencies = {
'dev': [ # Development env requirements
'ipython',
'pre-commit', # run `pre-commit install` to install hooks
],
'schedule': ['bitarray'],
'output': ['wcswidth'], # Not required - will use len instead if missing
}
optional_dependencies['ALL'] = sorted(set(chain.from_iterable(optional_dependencies.values())))
requirements = [
'requests_client@ git+https://github.com/dskrypa/requests_client',
'cli_command_parser',
'httpx',
'colored',
'pyyaml',
'tzdata',
]
setup(
name=about['__title__'],
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
description=about['__description__'],
long_description=long_description,
url=about['__url__'],
project_urls={'Source': about['__url__']},
packages=find_packages('lib'),
package_dir={'': 'lib'},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
python_requires='~=3.9',
install_requires=requirements,
extras_require=optional_dependencies,
entry_points={'console_scripts': ['nest=nest_client.cli:main']},
)