Skip to content

Conversation

RubenImhoff
Copy link
Contributor

As mentioned in issue #457, the module distutils is deprecated since python v3.12. I believe it is only used in datasets.py and can be replaced with shutils.copytree.

This PR attempts to fix the issue by replacing distutils.dir_util.copy_tree by shutils.copytree.

As mentioned in issue #457, the module `distutils` is deprecated since python v3.12. I believe it is only used in `datasets.py` and can be replaced with `shutils.copytree`.

This PR attempts to fix the issue by replacing `distutils.dir_util.copy_tree` by `shutils.copytree`.
@RubenImhoff RubenImhoff added the bug Something isn't working label Feb 24, 2025
@RubenImhoff RubenImhoff requested a review from dnerini February 24, 2025 02:35
@RubenImhoff RubenImhoff self-assigned this Feb 24, 2025
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.23%. Comparing base (006fb49) to head (39ef659).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pysteps/datasets.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #458      +/-   ##
==========================================
- Coverage   84.24%   84.23%   -0.01%     
==========================================
  Files         160      160              
  Lines       13243    13242       -1     
==========================================
- Hits        11156    11155       -1     
  Misses       2087     2087              
Flag Coverage Δ
unit_tests 84.23% <0.00%> (-0.01%) ⬇️

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

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

Copy link
Member

@dnerini dnerini left a comment

Choose a reason for hiding this comment

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

Very good, thanks @RubenImhoff!

@dnerini dnerini merged commit 9dc68c5 into master Feb 26, 2025
8 of 10 checks passed
@dnerini dnerini deleted the RubenImhoff-replace-distutils branch February 26, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants