Skip to content

Commit

Permalink
TST: Fix devdeps (#368)
Browse files Browse the repository at this point in the history
* TST: Install pyerfa-dev for devdeps

* Unpin numpy<2 in build requirements and clean up requires for build

* Add -v --pre to install_command for devdeps
  • Loading branch information
pllim committed Nov 21, 2023
1 parent 7eaa3dc commit 4a5f8a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
requires = ["setuptools>=30.3.0",
"setuptools_scm",
"wheel",
"numpy>=1.25,<2"]
"numpy>=1.25"]
build-backend = "setuptools.build_meta"
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ envlist =
twine
bandit
linkcheck
requires =
setuptools >= 30.3.0
pip >= 19.3.1

[testenv]
setenv =
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple

# Pass through the following environemnt variables which are needed for the CI
passenv = HOME,WINDIR,CC,CI
Expand Down Expand Up @@ -47,6 +44,7 @@ deps =
# or nightly wheel of key dependencies.
devdeps: numpy>=0.0.dev0
devdeps: scipy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps: git+https://github.com/astropy/specutils.git@main#egg=specutils

Expand All @@ -56,6 +54,10 @@ extras =
test
alldeps: all

install_command =
!devdeps: python -I -m pip install
devdeps: python -I -m pip install -v --pre

commands =
pip freeze
!cov: pytest --pyargs synphot {toxinidir}/docs {posargs}
Expand Down

0 comments on commit 4a5f8a6

Please # to comment.