Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit af47558

Browse files
committed
use abstract dependency instead of concrete ones
1 parent 078120e commit af47558

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
backports.ssl-match-hostname==3.4.0.2
21
future==0.15.0
32
requests==2.7.0
43
six==1.9.0

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
from setuptools import setup, find_packages
66

7+
requirements =[
8+
"future >= 0.15.0, < 1",
9+
"requests >= 2.5.2, < 3",
10+
"six >= 1.3.0, < 2",
11+
"websocket-client >= 0.32.0, < 1"
12+
]
713

814
def read(*parts):
915
path = os.path.join(os.path.dirname(__file__), *parts)
@@ -20,14 +26,11 @@ def find_version(*file_paths):
2026
raise RuntimeError('Unable to find version string.')
2127

2228

23-
with open('requirements.txt') as f:
24-
install_requires = f.read().splitlines()
25-
2629
setup(
2730
name="python-dockercloud",
2831
version=find_version('dockercloud', '__init__.py'),
2932
packages=find_packages(),
30-
install_requires=install_requires,
33+
install_requires=requirements,
3134
provides=['docker'],
3235
include_package_data=True,
3336
author="Docker, Inc.",

0 commit comments

Comments
 (0)