-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (40 loc) · 1.43 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
"""
@author: dhoomakethu
"""
from setuptools import setup
from apocalypse import __version__
import platform
PSUTIL_ALPINE_LINUX = "4.1.0"
long_description = None
with (open('README.md')) as readme:
long_description = readme.read()
def fix_ps_util(install_requires):
for i, req in enumerate(install_requires[:]):
if "psutil" in req:
req = req.split("==")
req[-1] = PSUTIL_ALPINE_LINUX
req = "==".join(req)
install_requires[i] = req
with open('requirements.txt') as reqs:
install_requires = [
line for line in reqs.read().split('\n')
if (line and not line.startswith('--'))
]
if platform.system() == "Linux":
fix_ps_util(install_requires)
setup(name="apocalypse",
url='https://github.com/dhoomakethu/apocalypse',
version=__version__,
packages=['apocalypse', 'apocalypse.utils',
'apocalypse.chaos', 'apocalypse.app', 'apocalypse.chaos.events',
'apocalypse.exceptions', "apocalypse.server"],
description="Introduce chaos on to docker ecosystem",
long_description=long_description,
author="dhoomakethu",
install_requires=install_requires,
scripts=['doom'],
include_package_data=True,
# dependency_links=['https://github.com/dhoomakethu/python-coloredlogs'
# '/tarball/master#egg=python-coloredlogs-5.0.1']
)