-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·57 lines (53 loc) · 1.82 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
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author: Leann Mak
# Email: [email protected]
# (C) 2018
#
import sys
try:
from setuptools import setup, find_packages
except ImportError:
print ("lotus now needs setuptools in order to build. Install it using "
"your package manager (usually python-setuptools) or via pip "
"(pip install setuptools).")
sys.exit(1)
# specify installation requirements
with open("requirements.txt") as requirements_file:
install_requires = requirements_file.read().splitlines()
if not install_requires:
print ("Unable to read requirements from the requirements.txt file"
"That indicates this copy of the source code is incomplete.")
sys.exit(2)
# specify test requirements
with open("test/requirements.txt") as test_requirements_file:
test_requires = test_requirements_file.read().splitlines()
if not test_requires:
print ("Unable to read requirements from the test/requirements.txt file"
"That indicates this copy of the source code is incomplete.")
sys.exit(3)
setup(
name="lotus",
version="0.1.0",
description="python api for common open source tools",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2.7",
"Intended Audience :: Developers",
"Operating System :: OS Independent"
],
keywords="ansible disconf etcd minio",
author="leannmak",
author_email="[email protected]",
url="",
license="NO LICENSE",
package_dir={"": "lib"},
packages=find_packages("lib"),
include_package_data=True,
zip_safe=False,
platforms="pypy",
install_requires=install_requires,
tests_require=test_requires,
test_suite="nose.collector",
)