forked from suncasa/suncasa-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·38 lines (33 loc) · 1.41 KB
/
setup.py
File metadata and controls
executable file
·38 lines (33 loc) · 1.41 KB
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
#!/usr/bin/env python
from setuptools import setup
import os
from itertools import chain
# from extension_helpers import get_extensions
from setuptools.config import read_configuration
from pathlib import Path
this_directory = Path(__file__).parent
################################################################################
# Programmatically generate some extras combos.
################################################################################
install_requires = read_configuration("setup.cfg")['options']['install_requires']
extras = read_configuration("setup.cfg")['options']['extras_require']
long_description = (this_directory / "README.MD").read_text()
# Dev is everything
extras['dev'] = list(chain(*extras.values()))
# All is everything but tests and docs
exclude_keys = ("tests", "docs", "dev")
ex_extras = dict(filter(lambda i: i[0] not in exclude_keys, extras.items()))
# Concatenate all the values together for 'all'
# extras['all'] = list(set(list(chain.from_iterable(ex_extras.values()))))
extras['all'] = list(chain.from_iterable(ex_extras.values()))
setup(
install_requires=install_requires,
extras_require=extras,
# use_scm_version={'write_to': os.path.join('suncasa', '_version.py')},
# version='0.1.2.9.1', ## test
version='1.0.8.2', ## official
long_description=long_description,
long_description_content_type='text/markdown'
# ,
# ext_modules=get_extensions(),
)