From af475584102596428f65d6ff1e558af270edc67e Mon Sep 17 00:00:00 2001 From: tifayuki Date: Thu, 14 Apr 2016 13:00:48 +0200 Subject: [PATCH] use abstract dependency instead of concrete ones --- requirements.txt | 1 - setup.py | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 7540a8f..ec72cca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -backports.ssl-match-hostname==3.4.0.2 future==0.15.0 requests==2.7.0 six==1.9.0 diff --git a/setup.py b/setup.py index a833d51..ed5b22e 100644 --- a/setup.py +++ b/setup.py @@ -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.",