Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,13 @@ notifications:

# Setup anaconda
before_install:
#- sudo add-apt-repository ppa:octave/stable -y
#- sudo apt-get update -q
#- sudo apt-get install gdebi -y
#- wget https://github.com/jgm/pandoc/releases/download/1.17.0.2/pandoc-1.17.0.2-1-amd64.deb
#- sudo gdebi pandoc-1.17.0.2-1-amd64.deb -n
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
- pip install --upgrade pip
- pip install python-coveralls
install:
- conda install --yes nomkl
- conda install --yes python=$TRAVIS_PYTHON_VERSION scipy matplotlib markdown pygments coverage ipython nose nbformat jupyter_client nbconvert notebook
- conda install --yes -c conda-forge pandoc
#- pip install -r requirements.txt
# Coverage packages are on my binstar channel
#- conda install --yes -c dan_blanchard python-coveralls nose-cov
- python -c "import matplotlib"
- pip install python-coveralls #nose-cov
- python setup.py install
- pip install -e .[test]


# Recipe from http://dan-blanchard.roughdraft.io/7045057-quicker-travis-builds-that-rely-on-numpy-and-scipy-using-miniconda
# Run test
script:
- nosetests --with-coverage --cover-package=pweave
# - nosetests --with-cov --cov Pweave --cov-config .coveragerc --logging-level=INFO

# Calculate coverage
after_success:
- coveralls
# - coveralls --config_file .coveragerc
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,18 @@ def read(fname):
author_email='matti.pastell@helsinki.fi',
url='http://mpastell.com/pweave',
packages=['pweave', 'pweave.themes', 'pweave.formatters', 'pweave.processors', 'pweave.bokeh'],
install_requires = ['markdown', 'pygments', 'ipython', 'nbformat',
'nbconvert', 'jupyter_client', 'ipykernel'],
extras_require = {'test': ['scipy', 'matplotlib', 'coverage',
'ipython', 'nose', 'notebook'],
install_requires = ['markdown',
'pygments',
'ipython<=6.2.0',
'nbformat',
'nbconvert',
'jupyter_client',
'ipykernel'],
extras_require = {'test': ['scipy',
'matplotlib',
'coverage',
'nose',
'notebook'],
'doc' : ['sphinx', 'sphinx_rtd_theme']},
license='LICENSE.txt',
long_description = read('README.rst'),
Expand Down