Skip to content

Commit 0546cad

Browse files
Remove asdf as an optional dependency
1 parent c1a6b49 commit 0546cad

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

ndcube/asdf/converters/tests/test_ndcube_converter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import numpy as np
22
import pytest
3+
from gwcs import __version__ as gwcs_version
4+
from packaging.version import Version
35

46
import asdf
57

@@ -13,6 +15,7 @@
1315
("ndcube_gwcs_3d_rotated"),
1416
("ndcube_gwcs_4d_ln_lt_l_t")
1517
], indirect=("ndc",))
18+
@pytest.mark.skipif(Version(gwcs_version) < Version("0.20"), reason="Requires gwcs>=0.20")
1619
def test_serialization(ndc, tmp_path):
1720
file_path = tmp_path / "test.asdf"
1821
with asdf.AsdfFile() as af:

pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,11 @@ plotting = [
5353
reproject = [
5454
"reproject>=0.7.1",
5555
]
56-
asdf = [
57-
"asdf>=2.14.4",
58-
"astropy>=5.3.0",
59-
"gwcs>=0.20"
60-
]
6156
all = [
62-
"ndcube[plotting,reproject,asdf]",
57+
"ndcube[plotting,reproject]",
6358
]
6459
dev = [
65-
"ndcube[tests,docs,plotting,reproject,asdf]",
60+
"ndcube[tests,docs,plotting,reproject]",
6661
]
6762
[project.urls]
6863
repository = "https://docs.sunpy.org/projects/ndcube"

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ deps =
6363
figure-!devdeps: dask
6464
# The following indicates which extras_require will be installed
6565
extras =
66-
asdf
6766
plotting
6867
reproject
6968
tests

0 commit comments

Comments
 (0)