Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy