-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (60 loc) · 2.21 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
53
54
55
56
57
58
59
60
61
62
63
64
65
"""Setup module"""
from textwrap import dedent
from setuptools import setup, find_packages
def parse_requirements(req_file):
"""
Parse file with requirements and return a dictionary
consumable by setuptools.
:param req_file: path to requirements file.
:type req_file: str
:return: Dictionary with requirements.
:rtype: dict
"""
with open(req_file) as fdescr:
reqs = fdescr.read().strip().split('\n')
return [x for x in reqs if x and not x.strip().startswith('#')]
REQUIREMENTS = parse_requirements('requirements/requirements.txt')
TEST_REQUIREMENTS = parse_requirements('requirements/requirements_test.txt')
SETUP_REQUIREMENTS = parse_requirements('requirements/requirements_setup.txt')
if __name__ == '__main__':
setup(
name='infra-support',
version='0.1.0',
description="TwinDB Support Package for the infra repo",
long_description=dedent(
"""
The TwinDB Support Package is a toolkit of auxiliary commands
needed for the repo maintenance.
"""
),
author="TwinDB Development Team",
author_email='dev@twindb.com',
url='https://github.com/twindb/infra',
packages=find_packages(exclude=('tests*',)),
package_dir={
'support': 'support'
},
entry_points={
'console_scripts': [
'install-terraform=support.install_terraform:install_terraform',
'ci-runner=support.ci_runner:ci_runner'
]
},
include_package_data=True,
install_requires=REQUIREMENTS,
license="Apache Software License 2.0",
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7'
],
setup_requires=SETUP_REQUIREMENTS,
test_suite='tests',
tests_require=TEST_REQUIREMENTS,
)