Skip to content

Commit

Permalink
Use pip environment markers for conditional dependencies
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 8879078 commit 241793b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-py3
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Joffrey F <joffrey@docker.com>
RUN mkdir /home/docker-py
WORKDIR /home/docker-py

COPY requirements3.txt /home/docker-py/requirements.txt
COPY requirements.txt /home/docker-py/requirements.txt
RUN pip install -r requirements.txt

COPY test-requirements.txt /home/docker-py/test-requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests==2.5.3
six>=1.4.0
websocket-client==0.32.0
py2-ipaddress==3.4.1
py2-ipaddress==3.4.1 ; python_version < '3.2'
3 changes: 0 additions & 3 deletions requirements3.txt

This file was deleted.

3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ commands =
py.test --cov=docker {posargs:tests/unit}
deps =
-r{toxinidir}/test-requirements.txt
{py26,py27}: -r{toxinidir}/requirements.txt
{py33,py34}: -r{toxinidir}/requirements3.txt
-r{toxinidir}/requirements.txt

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

0 comments on commit 241793b

Please sign in to comment.