Skip to content

Commit f37a65e

Browse files
committed
Use python_version in requirements files for 2.6-specific stuff.
1 parent c5188ec commit f37a65e

5 files changed

+6
-10
lines changed

requirements-install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ pip install -U -r requirements-test.txt
1010
if [[ $USE_OPTIONAL == "true" ]]; then
1111
if [[ $TRAVIS_PYTHON_VERSION == "pypy" || $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then
1212
pip install -U -r requirements-optional.txt
13-
elif [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then
14-
pip install -U -r requirements-optional-2.6.txt
1513
else
1614
pip install -U -r requirements-optional-cpython.txt
1715
fi

requirements-optional-2.6.txt

-5
This file was deleted.

requirements-optional.txt

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ genshi
77
# charade can be used as a fallback in case we are unable to determine
88
# the encoding of a document.
99
charade
10+
11+
# Can be used to force attributes to be serialized in alphabetical
12+
# order.
13+
ordereddict ; python_version < '2.7'

requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
flake8
44
nose
5-
ordereddict # Python 2.6
65
mock
6+
ordereddict ; python_version < '2.7'

tox.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ deps =
77
nose
88
mock
99
py26-base: ordereddict
10-
py26-optional: -r{toxinidir}/requirements-optional-2.6.txt
11-
{py27,py32,py33,py34,py35}-optional: -r{toxinidir}/requirements-optional-cpython.txt
10+
{py26,py27,py32,py33,py34,py35}-optional: -r{toxinidir}/requirements-optional-cpython.txt
1211
{pypy,pypy3}-optional: -r{toxinidir}/requirements-optional.txt
1312

1413
commands =

0 commit comments

Comments
 (0)