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

Use the list_dependencies_command instead of pip freeze #515

Merged
Merged
Show file tree
Hide file tree
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
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