Skip to content

Commit

Permalink
Remove CI testing for Python 2.7, add 3.8 on Travis (#479)
Browse files Browse the repository at this point in the history
* Travis: remove Python 2.7, add 3.8
* Appveyor: remove Python 2.7, add 3.7
  • Loading branch information
alubbock committed Jan 16, 2020
1 parent d1afd8b commit df184d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ language: python
sudo: required
dist: trusty
env:
- PYVER=2.7
- PYVER=3.6
- PYVER=3.7
- PYVER=3.8
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda${PYVER:0:1}-latest-Linux-x86_64.sh
-O miniconda.sh
Expand All @@ -14,9 +14,9 @@ before_install:
- conda install --yes -c conda-forge python="$PYVER"
numpy scipy matplotlib sympy nose h5py pexpect pandas theano networkx
pydot codecov mock cython
- if [[ $PYVER == 2.7 ]]; then pip install weave; fi
- conda install --yes -c SBMLTeam python-libsbml
- pip install libroadrunner twine
- if [[ $PYVER != 3.8 ]]; then conda install --yes -c SBMLTeam python-libsbml; else pip install python-libsbml; fi
# libroadrunner is not currently available for Python 3.8
- if [[ $PYVER != 3.8 ]]; then pip install libroadrunner twine; else pip install twine; fi
- mkdir -p ~/.config/matplotlib
- echo "backend:Agg" > ~/.config/matplotlib/matplotlibrc
# Install BioNetGen, Kappa, StochKit and Atomizer
Expand Down
9 changes: 2 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ build: false

environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda-x64
- PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda36-x64

- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda37-x64
init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"

install:
# https://stackoverflow.com/questions/13596407/errors-while-building-installing-c-module-for-python-2-7
- if "%PYTHON_VERSION%"=="2.7" (copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvarsamd64.bat")
- if "%PYTHON_VERSION%"=="2.7" (copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat")

# Issues have been encountered with installing numpy and scipy on
# AppVeyor e.g.
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
Expand Down

0 comments on commit df184d0

Please sign in to comment.