-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
There is a pytest dependency in the runtime code #620
Comments
More generally, test assertion helpers should not be part of the serialization class. They should be part of the test infrastructure. Better would be to implement |
As I recall from the discussion on astropy/astropy#7252 that import is now simply a |
Thanks @dhomeier! I didn't know this new function existed. We've had to deal with this in a bunch of packages, basically any package that includes ASDF functionality. I fixed these in the ASDF types in The old one in The old one should be deprecated now I think. Or else this problem will continue to pop up. |
If I read astropy/astropy#7252 (comment) correctly, that was decided because the new interface was never backported to Astropy LTS, to make it easier for affiliated packages to support both versions. @astrofrog - does this still hold even for marking deprecated? |
Currently the package depends on
pytest
in the runtime codespecutils/specutils/io/asdf/tags/spectra.py
Line 68 in e2d6127
but
pytest
is not an install dependency, only a test dependency. This import fromastropy
should not be used. Fix should look something like the followingspacetelescope/gwcs#287
The text was updated successfully, but these errors were encountered: