Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0901f79

Browse files
committed
Use pip version file
1 parent 2e98b39 commit 0901f79

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ env:
5050
- secure: dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU=
5151
# Variables controlling the build.
5252
- MPLLOCALFREETYPE=1
53+
# Variable for the location of an extra pip requirement file
54+
- EXTRAREQS=
55+
# Variable for the location of a pip version file
56+
- PINNEDVERS=
5357
# Variables controlling the test run.
5458
- DELETE_FONT_CACHE=
5559
- NO_AT_BRIDGE=1 # Necessary for GTK3 interactive test.
@@ -67,15 +71,15 @@ matrix:
6771
- python: 3.5
6872
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
6973
env:
70-
- EXTRAREQS='requirements/testing/travis35.txt'
74+
- PINNEDVERS='-c requirements/testing/travis35.txt'
7175
- python: 3.5
7276
env:
7377
# - PYTHONOPTIMIZE=2 # This currently doesn't work.
7478
- python: 3.6
7579
env:
7680
- DELETE_FONT_CACHE=1
7781
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
78-
- EXTRAREQS='requirements/testing/travis36.txt'
82+
- EXTRAREQS='-r requirements/testing/travis36.txt'
7983
- python: "nightly"
8084
env: PRE=--pre
8185
- os: osx
@@ -119,8 +123,7 @@ install:
119123
python -mpip install --upgrade pip setuptools wheel
120124
- |
121125
# Install dependencies from PyPI.
122-
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt
123-
python -mpip install --upgrade $PRE -r $EXTRAREQS
126+
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
124127
# GUI toolkits are pip-installable only for some versions of Python so
125128
# don't fail if we can't install them. Make it easier to check whether the
126129
# install was successful by trying to import the toolkit (sometimes, the

requirements/testing/travis35.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cycler==0.10
44
python-dateutil==2.1
5-
nose
65
numpy==1.10.0
76
pandas<0.21.0
87
pyparsing==2.0.1

0 commit comments

Comments
 (0)