Skip to content

Commit 8c0dcd6

Browse files
committed
add gwcs as test dependency but don't use for oldestdeps
1 parent dc01b6c commit 8c0dcd6

File tree

5 files changed

+8
-20
lines changed

5 files changed

+8
-20
lines changed

asdf_astropy/converters/wcs/tests/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
@pytest.fixture
77
def gwcs_4d_identity_units():
8-
from gwcs.examples import gwcs_4d_identity_units
9-
10-
return gwcs_4d_identity_units()
8+
examples = pytest.importorskip("gwcs.examples")
9+
return examples.gwcs_4d_identity_units()
1110

1211

1312
@pytest.fixture

asdf_astropy/converters/wcs/tests/test_highlevelwcswrapper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asdf
2-
import gwcs
32
import pytest
43
from astropy.wcs import WCS
54
from astropy.wcs.wcsapi import HighLevelWCSWrapper
@@ -30,5 +29,3 @@ def test_hllwcs_serialization(hl_wcs, tmp_path):
3029
loaded_hl_wcs = af["hl_wcs"]
3130
if isinstance(loaded_hl_wcs, WCS):
3231
assert_wcs_equal(hl_wcs._low_level_wcs, loaded_hl_wcs._low_level_wcs)
33-
elif isinstance(loaded_hl_wcs, gwcs.WCS):
34-
pass

asdf_astropy/resources/manifests/astropy-1.2.0.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,3 @@ tags:
7676
Represents the FITS WCS object, the HDUlist of the FITS header is preserved
7777
during serialization and during deserialization the WCS object is recreated
7878
from the HDUlist.
79-
- tag_uri: tag:astropy.org:astropy/wcs/highlevelwcswrapper-1.0.0
80-
schema_uri: http://astropy.org/schemas/astropy/wcs/highlevelwcswrapper-1.0.0
81-
title: Represents an instance of HighLevelWCSWrapper
82-
description: |-
83-
Wrapper class that can take any astropy.wcs.wcsapi.BaseLowLevelWCS
84-
object and expose the high-level WCS API.

pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"asdf-coordinates-schemas>=0.4",
1919
"asdf-transform-schemas>=0.6",
2020
"asdf-standard>=1.1.0",
21-
"astropy>=6.0",
21+
"astropy>=5.3.0",
2222
"numpy>=1.26",
2323
"packaging>=19",
2424
]
@@ -33,18 +33,14 @@ docs = [
3333
"sphinx-automodapi",
3434
"tomli",
3535
]
36-
# test deps which oldestdeps installs oldest versions
37-
test-oldest = [
38-
"scipy>=1.14.1", # indirect requirement via astropy, oldest version supported by gwcs
39-
"gwcs>=0.22",
40-
]
4136
test = [
42-
"asdf-astropy[test-oldest]",
4337
"coverage",
4438
"pytest-astropy",
4539
"pytest-asdf-plugin",
4640
"pytest-lazy-fixtures",
4741
"pytest",
42+
"gwcs",
43+
"scipy", # indirect requirement via astropy
4844
]
4945
[project.urls]
5046
'documentation' = 'https://asdf-astropy.readthedocs.io/en/latest/'

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ commands_pre=
3737
devdeps: pip install -U --pre -i https://pypi.anaconda.org/liberfa/simple pyerfa
3838
devdeps: pip install -U --pre -i https://pypi.anaconda.org/astropy/simple astropy
3939

40+
# gwcs is incompatible with our oldest deps
41+
oldestdeps: pip uninstall -y gwcs
4042
# Generate `requiremments-min.txt`
41-
oldestdeps: minimum_dependencies asdf-astropy --extras test-oldest --filename {envtmpdir}/requirements-min.txt
43+
oldestdeps: minimum_dependencies asdf-astropy --filename {envtmpdir}/requirements-min.txt
4244
# Force install everything from `requirements-min.txt`
4345
oldestdeps: pip install -r {envtmpdir}/requirements-min.txt
4446

0 commit comments

Comments
 (0)