8000 Add requirements files for our optional dependencies and test with them. · 15fly/html5lib-python@ffa00dd · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ffa00dd

Browse files
committed
Add requirements files for our optional dependencies and test with them.
1 parent 6bc4fc4 commit ffa00dd

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ python:
66
- "3.3"
77
- "pypy"
88

9+
env:
10+
- USE_OPTIONAL=true
11+
- USE_OPTIONAL=false
12+
913
before_install:
1014
- git submodule update --init --recursive
1115

1216
install:
1317
- pip install -r requirements.txt -r requirements-test.txt --use-mirrors
18+
- if [[ $USE_OPTIONAL == "true" ]]; then pip install -r requirements-optional.txt --use-mirrors; fi
19+
- if [[ $TRAVIS_PYTHON_VERSION != "pypy" && $USE_OPTIONAL == "true" ]]; then pip install -r requirements-optional-cpython.txt --use-mirrors; fi
1420

1521
script:
1622
- nosetests
1723

1824
after_script:
19-
- python debug-info.py
25+
- python debug-info.py

requirements-optional-cpython.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# lxml is supported with its own treebuilder ("lxml") and otherwise
2+
# uses the standard ElementTree support
3+
lxml

requirements-optional.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# We support a Genshi treewalker that can be used to serialize Genshi
2+
# streams.
3+
genshi
4+
5+
# chardet can be used as a fallback in case we are unable to determine
6+
# the encoding of a document.
7+
chardet
8+
9+
# DATrie can be used in place of our Python trie implementation for
10+
# slightly better parsing performance.
11+
datrie

0 commit comments

Comments
 (0)
0