Skip to content

Commit

Permalink
Convert all environment variables to pip requirements files
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Jun 22, 2018
1 parent 4a7268e commit 2e98b39
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 45 deletions.
46 changes: 2 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ env:
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
- secure: dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU=
# Variables controlling Python dependencies.
- DATEUTIL=python-dateutil
- NOSE=
- PANDAS=
- JUPYTER=
- PYPARSING=pyparsing
# pytest-timeout master depends on pytest>=3.6. Testing with pytest 3.4 is
# still supported; this is tested by the first matrix entry.
- PYTEST='pytest>=3.6'
- PYTEST_COV=pytest-cov
- PYTEST_PEP8=
- PYTEST_TIMEOUT=pytest-timeout
- SPHINX=sphinx
# Variables controlling the build.
- MPLLOCALFREETYPE=1
# Variables controlling the test run.
Expand All @@ -80,27 +67,15 @@ matrix:
- python: 3.5
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
env:
- CYCLER=cycler==0.10
- DATEUTIL=python-dateutil==2.1
- NOSE=nose
- NUMPY=numpy==1.10.0
- PANDAS='pandas<0.21.0'
- PYPARSING=pyparsing==2.0.1
- PYTEST=pytest==3.4
- PYTEST_COV=pytest-cov==2.3.1
- PYTEST_TIMEOUT=pytest-timeout==1.2.1 # Newer pytest-timeouts don't support pytest 3.4.
- SPHINX=sphinx==1.3
- EXTRAREQS='requirements/testing/travis35.txt'
- python: 3.5
env:
# - PYTHONOPTIMIZE=2 # This currently doesn't work.
- python: 3.6
env:
- DELETE_FONT_CACHE=1
- PANDAS='pandas<0.21.0'
- JUPYTER='jupyter'
- PYTEST_PEP8=pytest-pep8
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
- EXTRAREQS='requirements/testing/travis36.txt'
- python: "nightly"
env: PRE=--pre
- os: osx
Expand Down Expand Up @@ -145,16 +120,7 @@ install:
- |
# Install dependencies from PyPI.
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt
python -mpip install --upgrade -r $EXTRAREQS
python -mpip install --upgrade $PRE \
$CYCLER \
$DATEUTIL \
$NOSE \
$NUMPY \
$PANDAS \
$JUPYTER \
$PYPARSING \
$SPHINX \
python -mpip install --upgrade $PRE -r $EXTRAREQS
# GUI toolkits are pip-installable only for some versions of Python so
# don't fail if we can't install them. Make it easier to check whether the
# install was successful by trying to import the toolkit (sometimes, the
Expand All @@ -175,14 +141,6 @@ install:
echo 'wxPython is available' ||
echo 'wxPython is not available'
python -mpip install $PRE \
$PYTEST \
$PYTEST_COV \
pytest-faulthandler \
$PYTEST_PEP8 \
pytest-rerunfailures \
$PYTEST_TIMEOUT \
pytest-xdist
- |
# Install matplotlib
python -mpip install -ve .
Expand Down
4 changes: 3 additions & 1 deletion requirements/testing/travis35.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Extra pip requirements for the first travis python 3.5 build

cycler==0.10
python-dateutil==2.1
nose
Expand All @@ -6,5 +8,5 @@ pandas<0.21.0
pyparsing==2.0.1
pytest==3.4
pytest-cov==2.3.1
pytest-timeout==1.2.1
pytest-timeout==1.2.1 # Newer pytest-timeouts don't support pytest 3.4.
sphinx==1.3
5 changes: 5 additions & 0 deletions requirements/testing/travis36.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Extra pip requirements for the travis python 3.6 build

pandas<0.21.0
jupyter
pytest-pep8
13 changes: 13 additions & 0 deletions requirements/testing/travis_all.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# pip requirements for all the travis builds

codecov
coverage
cycler
numpy
pillow
pyparsing
# pytest-timeout master depends on pytest>=3.6. Testing with pytest 3.4 is
# still supported; this is tested by the first travis python 3.5 build
pytest>=3.6
pytest-cov
pytest-faulthandler
pytest-rerunfailures
pytest-timeout
pytest-xdist
python-dateutil
sphinx
tornado

0 comments on commit 2e98b39

Please sign in to comment.