-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (37 loc) · 1.36 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
#!/usr/bin/env python
from itertools import chain
from pathlib import Path
from setuptools import setup, find_packages
project_root = Path(__file__).resolve().parent
with project_root.joinpath('readme.rst').open('r', encoding='utf-8') as f:
long_description = f.read()
about = {}
with project_root.joinpath('lib', '__version__.py').open('r', encoding='utf-8') as f:
exec(f.read(), about)
optional_dependencies = {
'dev': [ # Development env requirements
'ipython',
'pre-commit', # run `pre-commit install` to install hooks
],
'watcher': ['watchdog'],
}
optional_dependencies['ALL'] = sorted(set(chain.from_iterable(optional_dependencies.values())))
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(),
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires='~=3.8',
install_requires=['construct', 'colored'],
extras_require=optional_dependencies,
)