Skip to content

Commit 79cda50

Browse files
committed
Merge pull request #3655 from cpcloud/read-html-travis-fix-3654
TST: add html5lib to travis
2 parents 0ed4549 + 0c509fb commit 79cda50

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,14 @@ Optional dependencies
9595
- Both `html5lib <https://github.com/html5lib/html5lib-python>`__ **and**
9696
`Beautiful Soup 4 <http://www.crummy.com/software/BeautifulSoup>`__: for
9797
reading HTML tables
98-
- These can both easily be installed by ``pip install html5lib`` and ``pip
99-
install beautifulsoup4``.
98+
99+
.. warning::
100+
101+
If you are on a 32-bit machine you need to install an older version of
102+
Beautiful Soup. Version 4.0.2 of BeautifulSoup has been tested on Ubuntu
103+
12.04.02 32-bit.
104+
105+
- Any recent version of ``html5lib`` is okay.
100106
- `boto <https://pypi.python.org/pypi/boto>`__: necessary for Amazon S3 access.
101107

102108

ci/install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ fi;
3030
#scipy is not included in the cached venv
3131
if [ x"$FULL_DEPS" == x"true" ] ; then
3232
# for pytables gets the lib as well
33-
sudo apt-get $APT_ARGS install libhdf5-serial-dev;
33+
sudo apt-get $APT_ARGS install libhdf5-serial-dev
34+
35+
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then
36+
sudo apt-get $APT_ARGS install python3-bs4
37+
elif [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
38+
sudo apt-get $APT_ARGS install python-bs4
39+
fi
3440

3541
if [ ${TRAVIS_PYTHON_VERSION} == "3.2" ]; then
3642
sudo apt-get $APT_ARGS install python3-scipy
@@ -76,8 +82,13 @@ if ( ! $VENV_FILE_AVAILABLE ); then
7682
pip install $PIP_ARGS 'http://downloads.sourceforge.net/project/pytseries/scikits.timeseries/0.91.3/scikits.timeseries-0.91.3.tar.gz?r='
7783
pip install $PIP_ARGS patsy
7884
pip install $PIP_ARGS lxml
79-
pip install $PIP_ARGS beautifulsoup4
85+
pip install $PIP_ARGS html5lib
8086

87+
if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then
88+
sudo apt-get $APT_ARGS remove python3-lxml
89+
elif [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
90+
sudo apt-get $APT_ARGS remove python-lxml
91+
fi
8192
# fool statsmodels into thinking pandas was already installed
8293
# so it won't refuse to install itself. We want it in the zipped venv
8394

doc/source/install.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,14 @@ Optional Dependencies
102102
* Both `html5lib <https://github.com/html5lib/html5lib-python>`__ **and**
103103
`Beautiful Soup 4 <http://www.crummy.com/software/BeautifulSoup>`__: for
104104
reading HTML tables
105-
* These can both easily be installed by ``pip install html5lib`` and ``pip
106-
install beautifulsoup4``.
105+
106+
.. warning::
107+
108+
If you are on a 32-bit machine you need to install an older version of
109+
Beautiful Soup. Version 4.0.2 of BeautifulSoup has been tested on Ubuntu
110+
12.04.02 32-bit.
111+
112+
* Any recent version of ``html5lib`` is okay.
107113

108114
.. note::
109115

0 commit comments

Comments
 (0)