-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
42 lines (35 loc) · 1.11 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
from setuptools import find_packages, setup
import re
def load_reqs(filename):
with open(filename) as reqs_file:
return [
re.sub('==', '>=', line) for line in reqs_file.readlines()
if not re.match('\s*#', line)
]
version = open('VERSION').read().rstrip('\n')
requirements = load_reqs('requirements.txt')
test_requirements = load_reqs('test-requirements.txt')
try:
README = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
except IOError:
README = None
setup(
name='aioclustermanager',
version=version,
description='AsyncIO K8S and Nomad driver',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
url='http://github.com/guillotinaweb/aioclustermanager',
author='Ramon Navarro',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
zip_safe=False,
install_requires=requirements,
test_suite='tests',
tests_require=test_requirements
)