diff --git a/.gitignore b/.gitignore index 903a58a..d46c576 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ lib64/ *.egg *.zip docs/_build +.coverage diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0c48675 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +cache: apt +sudo: false +language: python +python: + - "2.7" + - "3.4" + - "3.5" +addons: + apt: + packages: + - libatlas-dev + - libatlas-base-dev + - liblapack-dev + - gfortran +before_install: + - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh + - bash miniconda.sh -b -p $HOME/miniconda + - export PATH="$HOME/miniconda/bin:$PATH" + - conda update --yes conda +install: + - conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy + - travis_retry pip install -r requirements-dev.txt + - travis_retry python setup.py install +script: + - nosetests --with-coverage --cover-package=tableprint --logging-level=INFO +after_success: + - coveralls diff --git a/README.md b/README.md index 8f2bddd..ab214b6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # tableprint -Pretty ASCII printing :clipboard: of tabular data in python :snake: +Pretty console printing :clipboard: of tabular data in python :snake: [![PyPi version](https://img.shields.io/pypi/v/tableprint.svg)](https://pypi.python.org/pypi/tableprint) [![Documentation Status](https://readthedocs.org/projects/tableprint/badge/?version=latest)](http://tableprint.readthedocs.org/en/latest/?badge=latest) @@ -37,6 +37,8 @@ Hosted at Read The Docs: [tableprint.readthedocs.org](http://tableprint.readthed - `numpy` ## Version +- 0.3.2 (May 3 2016) Adds a test suite +- 0.3.0 (May 3 2016) Adds custom styles for tables, specified by a key ('fancy_grid', 'grid', etc.) - 0.2.0 (May 2 2016) Adds better python2 (unicode/bytes) compatibility - 0.1.5 (Oct 1 2015) Renamed hrtime to humantime, added docs - 0.1.4 (Sept 28 2015) Added human readable string converter (hrtime) diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..96d3f35 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,2 @@ +pytest +nose