-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (63 loc) · 1.91 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
# import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
import multiprocessing
import re
from setuptools import setup, find_packages
assert multiprocessing
def get_version():
"""
Extracts the version number from the version.py file.
"""
VERSION_FILE = 'container_transform/version.py'
mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))
install_requires = [
"PyYAML==5.1.0",
"Jinja2==2.7.0",
"click==7.0.0"
]
tests_require = [
'coverage>=4.0.3',
'flake8>=2.2.0',
'mock>=1.0.1',
'nose>=1.3.0',
]
extras_require = {
'test': tests_require,
'docs': ['Sphinx>=1.2.2', 'sphinx_rtd_theme'],
}
everything = set(install_requires)
for deps in extras_require.values():
everything.update(deps)
extras_require['all'] = list(everything)
setup(
name='container-transform',
version=get_version(),
description='A converter for various docker cluster formats',
long_description=open('README.rst').read(),
url='https://github.com/micahhausler/container-transform',
author='Micah Hausler',
author_email='[email protected]',
keywords='docker, container, fig, ecs, compose',
packages=find_packages(),
classifiers=[
'Programming Language :: Python :: 3.5',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
entry_points={
'console_scripts': [
'container-transform = container_transform.client:transform'
]
},
license='MIT',
install_requires=install_requires,
include_package_data=True,
test_suite='nose.collector',
tests_require=tests_require,
extras_require=extras_require,
zip_safe=False,
)