Skip to content

Commit

Permalink
tox indexserver is deprecated; use PIP_INDEX_URL and PIP_EXTRA_INDEX_…
Browse files Browse the repository at this point in the history
…URL in dev environments (#597)
  • Loading branch information
rrjbca committed Mar 31, 2023
1 parent 0f1f273 commit cd48833
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
indexserver =
NIGHTLY = https://pypi.anaconda.org/scipy-wheels-nightly/simple

[testenv]

Expand Down Expand Up @@ -77,8 +75,8 @@ deps =
astropy42: astropy==4.2.*
astropy43: astropy==4.3.*

dev: :NIGHTLY:numpy
dev: :NIGHTLY:scipy
dev: numpy
dev: scipy
dev: git+https://github.com/astropy/astropy.git#egg=astropy

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

# For dev environment, use scipy-nightly-wheels as the default index server (for numpy and scipy)
# and PyPI as the extra index server (for all other dependencies, except astropy which is installed
# directly from GitHub).
setenv =
dev: PIP_INDEX_URL = https://pypi.anaconda.org/scipy-wheels-nightly/simple
dev: PIP_EXTRA_INDEX_URL = https://pypi.org/simple

[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
Expand Down

0 comments on commit cd48833

Please sign in to comment.