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 distutils #463

Merged
merged 2 commits into from
Aug 9, 2023
Merged

remove distutils #463

merged 2 commits into from
Aug 9, 2023

Conversation

ocefpaf
Copy link
Contributor

@ocefpaf ocefpaf commented Aug 9, 2023

It is imported but unused (tests passes without it). Removing this import will make cf_xarray ready to Python 3.12.


Edit: Changing to packaging.version.parse is not the same thing as LooseVersion, see https://discuss.python.org/t/add-looseversion-to-pypa/24359/6, but we should be OK b/c here b/c the packages checked all follow PEP440.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #463 (7d0ba25) into main (af8475a) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main     #463   +/-   ##
=======================================
  Coverage   86.34%   86.34%           
=======================================
  Files          22       22           
  Lines        4188     4188           
  Branches      214      214           
=======================================
  Hits         3616     3616           
  Misses        514      514           
  Partials       58       58           
Flag Coverage Δ
mypy 37.44% <50.00%> (ø)
unittests 95.97% <50.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
cf_xarray/tests/__init__.py 64.00% <50.00%> (ø)

@dcherian
Copy link
Contributor

dcherian commented Aug 9, 2023

Cool thanks! I copied that from xarray, so if you could change it there, that would be great too!

@dcherian dcherian merged commit cbf57df into xarray-contrib:main Aug 9, 2023
@ocefpaf ocefpaf deleted the remove_distutils branch August 9, 2023 18:45
@ocefpaf
Copy link
Contributor Author

ocefpaf commented Aug 9, 2023

Cool thanks! I copied that from xarray, so if you could change it there, that would be great too!

Will do. The sooner we get rid of distutils the better, or we will see tons of dumb breakages when moving to Python 3.12.

@ocefpaf
Copy link
Contributor Author

ocefpaf commented Aug 9, 2023

Looks like someone already implemented the necessary changes in xarray.

See pydata/xarray#6096

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