Skip to content

Commit

Permalink
Use the list_dependencies_command instead of pip freeze (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Nov 25, 2024
1 parent df2aa07 commit a8b3452
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ jobs:
envs: |
- macos: py310-xdist
- linux: py312-devdeps-xdist
- linux: py310-oldestdeps-xdist
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"asdf >=2.14.2",
"asdf >=2.15.2",
"asdf-astropy >=0.5.0",
]
dynamic = [
Expand All @@ -28,8 +28,8 @@ file = "LICENSE"

[project.optional-dependencies]
test = [
"pytest>=4.6.0",
"pytest-doctestplus>=0.11.1",
"pytest>=7.0.0",
"pytest-doctestplus>=1.2.1",
"crds>=11.16.16",
]
docs = [
Expand Down Expand Up @@ -77,7 +77,7 @@ where = [
]

[tool.pytest.ini_options]
minversion = 4.6
minversion = 7.0
doctest_plus = true
doctest_rst = true
text_file_format = "rst"
Expand Down
16 changes: 12 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ envlist =
check-{style,build}
test-xdist{,-cov,-devdeps}
build-{docs,dist}
requires =
tox-uv

[testenv:check-style]
description = Run all style and file checks with pre-commit
Expand All @@ -18,18 +20,24 @@ description =
run tests
cov: with coverage
xdist: using parallel processing
devdeps: Run with select dev dependencies
oldestdeps: Run with oldest direct dependencies
set_env =
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
devdeps: UV_INDEX = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
devdeps: UV_INDEX_STRATEGY = unsafe-any-match
extras =
test
uv_resolution =
oldestdeps: lowest-direct
deps =
xdist: pytest-xdist
xdist: pytest-xdist>=3
cov: pytest-cov
devdeps: pyerfa>=0.0.dev0
devdeps: numpy>=0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
commands_pre =
{list_dependencies_command}
commands =
pip freeze
pytest \
xdist: -n auto \
cov: --cov --cov-report=term-missing --cov-report=xml \
Expand Down

0 comments on commit a8b3452

Please sign in to comment.