-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
30 lines (26 loc) · 798 Bytes
/
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
import os
import re
from setuptools import find_packages, setup
def get_version(package):
"""
Return package version as listed in `__version__` in `version.py`.
"""
init_py = open(os.path.join(package, 'version.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name='docker-utils',
version=get_version('docker_utils'),
description='Utilities for Docker',
author='Andy McKay',
author_email='andym@mozilla.com',
license='BSD',
install_requires=['docker-compose', 'requests==2.5.3'],
packages=find_packages(),
entry_points={
'console_scripts': [
'docker-utils = docker_utils.entry:entry'
]
},
url='https://github.com/andymckay/docker-utils',
zip_safe=True,
)