Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox indexserver is deprecated; use PIP_INDEX_URL and PIP_EXTRA_INDEX_URL in dev environments #597

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -95,8 +93,8 @@ deps =
astropy51: astropy==5.1.*
astropy52: astropy==5.2.*

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

latest: astropy==5.2.*
Expand All @@ -121,6 +119,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