Skip to content

Commit 07e9da0

Browse files
committed
MAINT: use the scientific python extra pip index for dev wheels
Keep reinstalling numpy with a separated pip command to ensure the dev version is picked up even if a downstream dependency upper limited it
1 parent 613eaeb commit 07e9da0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tox.ini

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ requires =
88

99
description = run tests
1010

11+
setenv =
12+
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
13+
1114
deps =
1215
# We use these files to specify all the dependencies, and below we override
1316
# versions for specific testing schenarios
@@ -20,13 +23,16 @@ deps =
2023
oldestdeps: scipy==1.8
2124
oldestdeps: pandas==1.4
2225

26+
devdeps: numpy>=0.0.dev0
27+
devdeps: scipy>=0.0.dev0
28+
devdeps: matplotlib>=0.0.dev0
29+
devdeps: pandas>=0.0.dev0
30+
2331
allowlist_externals = bash
2432

2533
commands =
26-
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
27-
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy
28-
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple matplotlib
29-
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple pandas
34+
# Force numpy reinstall to work around upper version limits in downstream dependencies (e.g. pandas)
35+
devdeps: pip install -U --pre --no-deps --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
3036

3137
pip freeze
3238

0 commit comments

Comments
 (0)