Skip to content

Commit

Permalink
Update requirements files to match setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Dec 3, 2015
1 parent c2321b0 commit 71ac558
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 25 deletions.
11 changes: 4 additions & 7 deletions requirements-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then
exit 1
fi

# Make sure we're running setuptools >= 18.5
pip install -U pip setuptools

pip install -U -r requirements-test.txt

if [[ $USE_OPTIONAL == "true" ]]; then
if [[ $TRAVIS_PYTHON_VERSION == "pypy" || $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then
pip install -U -r requirements-optional.txt
elif [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then
pip install -U -r requirements-optional-2.6.txt
else
pip install -U -r requirements-optional-cpython.txt
fi
pip install -U -r requirements-optional.txt
fi
5 changes: 0 additions & 5 deletions requirements-optional-2.6.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements-optional-cpython.txt

This file was deleted.

12 changes: 12 additions & 0 deletions requirements-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ genshi
# charade can be used as a fallback in case we are unable to determine
# the encoding of a document.
charade

# lxml is supported with its own treebuilder ("lxml") and otherwise
# uses the standard ElementTree support
lxml ; platform_python_implementation == 'CPython'

# DATrie can be used in place of our Python trie implementation for
# slightly better parsing performance.
datrie ; platform_python_implementation == 'CPython'

# Can be used to force attributes to be serialized in alphabetical
# order.
ordereddict ; python_version < '2.7'
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

flake8
nose
ordereddict # Python 2.6
mock
ordereddict ; python_version < '2.7'
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ deps =
nose
mock
py26-base: ordereddict
py26-optional: -r{toxinidir}/requirements-optional-2.6.txt
{py27,py32,py33,py34,py35}-optional: -r{toxinidir}/requirements-optional-cpython.txt
{pypy,pypy3}-optional: -r{toxinidir}/requirements-optional.txt
optional: -r{toxinidir}/requirements-optional.txt

commands =
{envbindir}/nosetests -q
Expand Down

0 comments on commit 71ac558

Please sign in to comment.