skypyproject / skypy

SkyPy: A package for modelling the Universe.
BSD 3-Clause "New" or "Revised" License
118 stars 38 forks source link

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

Closed rrjbca closed 1 year ago

rrjbca commented 1 year ago

Description

The tox indexserver configuration has been removed. This is causing the compatibility workflow to fail for dev environments which attempt to install numpy and scipy from the scipy-nightly-wheels server. This pull request modifies the tox dev environments to instead set the PIP_INDEX_URL and PIP_EXTRA_INDEX_URL environment variables to scipy-nightly-wheels and PyPI respectively.

I have tested this on a branch where I modified the compatibility workflow to be run on git pushes (rather than a cron schedule):

(Note that the passing tests installed numpy==1.25.0.dev0+941.gb35aac2c3 and scipy==1.11.0.dev0 develop versions from scipy-nightly-wheels while all other dependencies are releases installed from PyPI as intended).

Checklist