Skip to content

Commit

Permalink
Add py2-ipaddress dependency for python 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Joffrey F <joffrey@docker.com>
  • Loading branch information
shin- committed Mar 30, 2016
1 parent 01cf62b commit b0e234e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
requests==2.5.3
six>=1.4.0
websocket-client==0.32.0
py2-ipaddress==3.4.1
3 changes: 3 additions & 0 deletions requirements3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requests==2.5.3
six>=1.4.0
websocket-client==0.32.0
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
'websocket-client >= 0.32.0',
]

if sys.version_info[0] == 2:
requirements.append('py2-ipaddress >= 3.4.1')

exec(open('docker/version.py').read())

with open('./test-requirements.txt') as test_reqs_txt:
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ commands =
py.test --cov=docker {posargs:tests/unit}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
{py26,py27}: -r{toxinidir}/requirements.txt
{py33,py34}: -r{toxinidir}/requirements3.txt

[testenv:flake8]
commands = flake8 docker tests
Expand Down

0 comments on commit b0e234e

Please sign in to comment.