Skip to content

Commit cd48833

Browse files
committed
tox indexserver is deprecated; use PIP_INDEX_URL and PIP_EXTRA_INDEX_URL in dev environments (#597)
1 parent 0f1f273 commit cd48833

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tox.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ requires =
1111
setuptools >= 30.3.0
1212
pip >= 19.3.1
1313
isolated_build = true
14-
indexserver =
15-
NIGHTLY = https://pypi.anaconda.org/scipy-wheels-nightly/simple
1614

1715
[testenv]
1816

@@ -77,8 +75,8 @@ deps =
7775
astropy42: astropy==4.2.*
7876
astropy43: astropy==4.3.*
7977

80-
dev: :NIGHTLY:numpy
81-
dev: :NIGHTLY:scipy
78+
dev: numpy
79+
dev: scipy
8280
dev: git+https://github.com/astropy/astropy.git#egg=astropy
8381

8482
latest: astropy==4.3.*
@@ -103,6 +101,13 @@ commands =
103101
!cov: pytest --pyargs skypy {toxinidir}/docs {posargs}
104102
cov: pytest --pyargs skypy {toxinidir}/docs --cov skypy --cov-config={toxinidir}/setup.cfg {posargs}
105103

104+
# For dev environment, use scipy-nightly-wheels as the default index server (for numpy and scipy)
105+
# and PyPI as the extra index server (for all other dependencies, except astropy which is installed
106+
# directly from GitHub).
107+
setenv =
108+
dev: PIP_INDEX_URL = https://pypi.anaconda.org/scipy-wheels-nightly/simple
109+
dev: PIP_EXTRA_INDEX_URL = https://pypi.org/simple
110+
106111
[testenv:build_docs]
107112
changedir = docs
108113
description = invoke sphinx-build to build the HTML docs

0 commit comments

Comments
 (0)