-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
76 lines (65 loc) · 2.55 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
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
"""The setup script."""
from setuptools import find_packages, setup
CODEC = "utf-8"
with open("README.rst", encoding=CODEC) as readme_file:
readme = readme_file.read()
HISTORY = "See git log"
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, encoding=CODEC) as f_descr:
reqs = f_descr.read().strip().split("\n")
return [x for x in reqs if x and not x.strip().startswith("#")]
requirements = parse_requirements("requirements.txt")
test_requirements = parse_requirements("requirements_dev.txt")
console_scripts = [
"ih-aws=infrahouse_toolkit.cli.ih_aws:ih_aws",
"ih-certbot=infrahouse_toolkit.cli.ih_certbot:ih_certbot",
"ih-ec2=infrahouse_toolkit.cli.ih_ec2:ih_ec2",
"ih-elastic=infrahouse_toolkit.cli.ih_elastic:ih_elastic",
"ih-github=infrahouse_toolkit.cli.ih_github:ih_github",
"ih-plan=infrahouse_toolkit.cli.ih_plan:ih_plan",
"ih-puppet=infrahouse_toolkit.cli.ih_puppet:ih_puppet",
"ih-registry=infrahouse_toolkit.cli.ih_registry:ih_registry",
"ih-s3-reprepro=infrahouse_toolkit.cli.ih_s3_reprepro:ih_s3_reprepro",
"ih-secrets=infrahouse_toolkit.cli.ih_secrets:ih_secrets",
"ih-skeema=infrahouse_toolkit.cli.ih_skeema:ih_skeema",
]
setup(
author="Oleksandr Kuzminskyi",
author_email="[email protected]",
python_requires=">=3.8",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
description="A collection of tools for building infrastructure.",
entry_points={
"console_scripts": console_scripts,
},
install_requires=requirements,
license="Apache Software License 2.0",
long_description=readme + "\n\n" + HISTORY,
include_package_data=True,
keywords="infrahouse-toolkit",
name="infrahouse-toolkit",
packages=find_packages(include=["infrahouse_toolkit", "infrahouse_toolkit.*"]),
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/infrahouse/infrahouse-toolkit",
version="2.43.2",
zip_safe=False,
)