use abstract dependency instead of concrete ones

This commit is contained in:
tifayuki 2016-04-14 13:00:48 +02:00
commit af47558410
2 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,3 @@
backports.ssl-match-hostname==3.4.0.2
future==0.15.0
requests==2.7.0
six==1.9.0

View file

@ -4,6 +4,12 @@ import re
from setuptools import setup, find_packages
requirements =[
"future >= 0.15.0, < 1",
"requests >= 2.5.2, < 3",
"six >= 1.3.0, < 2",
"websocket-client >= 0.32.0, < 1"
]
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
@ -20,14 +26,11 @@ def find_version(*file_paths):
raise RuntimeError('Unable to find version string.')
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(
name="python-dockercloud",
version=find_version('dockercloud', '__init__.py'),
packages=find_packages(),
install_requires=install_requires,
install_requires=requirements,
provides=['docker'],
include_package_data=True,
author="Docker, Inc.",