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

Remove astropy dependency #31

Merged
merged 2 commits into from
Jan 6, 2022
Merged

Conversation

olebole
Copy link
Member

@olebole olebole commented Jan 6, 2022

This removal breaks the circular dependency

astropy ---> pytest-astropy ---> pytest-arraydiff

which may be problematic when upgrading or so. It also eases the use of pytest-arraydiff in non-astropy environments. Astropy is only needed to compare FITS files.
The plugin itself is already prepared (it imports astropy only when needed).

Relevant Debian bug: Debian#1003238

@olebole olebole force-pushed the remove-astropy-dependency branch from 1b959d0 to a12ff05 Compare January 6, 2022 19:56
This removal breaks the circular dependency

astropy --> pytest-astropy --> pytest-arraydiff

which may be problematic when upgrading or so. It also eases the use
of pytest-arraydiff in non-astropy environments. Astropy is only
needed to compare FITS files.
@olebole olebole force-pushed the remove-astropy-dependency branch from a12ff05 to 61da138 Compare January 6, 2022 19:58
@pllim
Copy link
Member

pllim commented Jan 6, 2022

I pushed a commit to install astropy during testing. FYI.

Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided CI passes. I think this makes sense. Thanks!

@olebole
Copy link
Member Author

olebole commented Jan 6, 2022

@plim Thanks! This is where I struggled now.

@pllim pllim merged commit 0bf2018 into astropy:main Jan 6, 2022
@pllim
Copy link
Member

pllim commented Jan 6, 2022

Do you need a new release with this patch? 👀

@olebole
Copy link
Member Author

olebole commented Jan 6, 2022

No, I already made a new Debian package including the patch.

@olebole olebole deleted the remove-astropy-dependency branch January 6, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants