astropy / astropy/reproject

BUG: generate_asdf.py should avoid running when GWCS is not installed

Open
#470 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
127
Forks
74
Avg merge
1d 11h
Merged PRs (30d)
2

Description

GWCS is only an optional test dependency

https://github.com/astropy/reproject/blob/7aaeb13a7f3e8fc5c9fe651c89599ff5cdd9247d/pyproject.toml#L37

so I would expect the test suite to not crash when GWCS is not installed

https://github.com/astropy/reproject/blob/7aaeb13a7f3e8fc5c9fe651c89599ff5cdd9247d/reproject/tests/data/generate_asdf.py#L5

but it crashes, see https://github.com/astropy/astropy-integration-testing/actions/runs/11073838092/job/30771295426

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with pyproject.toml at the optional GWCS dependency and reproject/tests/data/generate_asdf.py at line 5. Reproduce the test-suite failure in an environment without GWCS, then verify that the suite no longer crashes when the optional dependency is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.