-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
35 lines (30 loc) · 1.09 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
## !!! You should make no changes in this file !!!
## !!! All changes should be made in settings.ini !!!
import setuptools
from configparser import ConfigParser
with open("README.md", "r") as fh:
long_description = fh.read()
config = ConfigParser(delimiters=['='])
config.read('settings.ini')
setup_kwargs = dict(config['DEFAULT'])
extra_requirements = {
'cicd': setup_kwargs['extra_cicd_requirements'].split(' '),
'research': setup_kwargs['extra_research_requirements'].split(' ')
}
setuptools.setup(
name=setup_kwargs['lib_name'],
version=setup_kwargs['version'],
author=setup_kwargs['author'],
author_email=setup_kwargs['author_email'],
description=setup_kwargs['description'],
long_description=long_description,
long_description_content_type="text/markdown",
url=setup_kwargs['doc_baseurl'],
packages=setuptools.find_packages(),
install_requires=setup_kwargs['requirements'].split(' '),
extras_require=extra_requirements,
classifiers=[
"Programming Language :: Python :: 3",
],
python_requires=f">={setup_kwargs['min_python']}",
)