Skip to content

Commit

Permalink
Merge pull request #3655 from cpcloud/read-html-travis-fix-3654
Browse files Browse the repository at this point in the history
TST: add html5lib to travis
  • Loading branch information
jreback committed May 21, 2013
2 parents 0ed4549 + 0c509fb commit 79cda50
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,14 @@ Optional dependencies
- Both `html5lib <https://github.com/html5lib/html5lib-python>`__ **and**
`Beautiful Soup 4 <http://www.crummy.com/software/BeautifulSoup>`__: for
reading HTML tables
- These can both easily be installed by ``pip install html5lib`` and ``pip
install beautifulsoup4``.

.. warning::

If you are on a 32-bit machine you need to install an older version of
Beautiful Soup. Version 4.0.2 of BeautifulSoup has been tested on Ubuntu
12.04.02 32-bit.

- Any recent version of ``html5lib`` is okay.
- `boto <https://pypi.python.org/pypi/boto>`__: necessary for Amazon S3 access.


Expand Down
15 changes: 13 additions & 2 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ fi;
#scipy is not included in the cached venv
if [ x"$FULL_DEPS" == x"true" ] ; then
# for pytables gets the lib as well
sudo apt-get $APT_ARGS install libhdf5-serial-dev;
sudo apt-get $APT_ARGS install libhdf5-serial-dev

if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then
sudo apt-get $APT_ARGS install python3-bs4
elif [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
sudo apt-get $APT_ARGS install python-bs4
fi

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

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

Expand Down
10 changes: 8 additions & 2 deletions doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,14 @@ Optional Dependencies
* Both `html5lib <https://github.com/html5lib/html5lib-python>`__ **and**
`Beautiful Soup 4 <http://www.crummy.com/software/BeautifulSoup>`__: for
reading HTML tables
* These can both easily be installed by ``pip install html5lib`` and ``pip
install beautifulsoup4``.

.. warning::

If you are on a 32-bit machine you need to install an older version of
Beautiful Soup. Version 4.0.2 of BeautifulSoup has been tested on Ubuntu
12.04.02 32-bit.

* Any recent version of ``html5lib`` is okay.

.. note::

Expand Down

0 comments on commit 79cda50

Please sign in to comment.