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

Replace distutils.LooseVersion with packaging.version #901

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

olebole
Copy link
Contributor

@olebole olebole commented Feb 8, 2024

In Python 3.12, distutils does no longer exist. In spectral-cube it is used only for version comparison. This PR replaces it with packaging.version.parse resp. packaging.version.Version. On places where LooseVersion is unused, the import is just removed.

This should make the package compatible to Python 3.12; at least the tests that we run during the Debian build pass.

This is for Python 3.12 compatibility
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c548cf3) 79.95% compared to head (1fab31a) 79.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #901      +/-   ##
==========================================
- Coverage   79.95%   79.94%   -0.02%     
==========================================
  Files          24       24              
  Lines        6016     6013       -3     
==========================================
- Hits         4810     4807       -3     
  Misses       1206     1206              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@keflavich keflavich merged commit 7bc6bac into radio-astro-tools:master Feb 8, 2024
22 checks passed
@tjgalvin tjgalvin mentioned this pull request Sep 22, 2024
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