-
Notifications
You must be signed in to change notification settings - Fork 13
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 copy_tree from distutils by copytree from shutil because dist… #1448
Conversation
…utils is going to be removed from python 3.12
Gah, mobile trouble getting my message attached to the review, sorry. Here it is: The PR itself looks good to me, both in terms of motivation and execution. My only concern is that the archive tests are currently kind of spotty, yeah? Since this is such a straightforward PR, integrating it on top of any other changes to the archiving should be super straightforward, so maybe we want to hold off until those issues are closed, then merge in main and rerun newly improved tests? Just to make sure there's no side effects in the switch that we're oblivious too. I'm only keeping half an eye on the archive/import-export conversation though, so I leave it your judgement whether this concern is overblown. |
@liamhuber I’m asking for a review again because I decided to replace all occurrences of Coming back to your concern, now I don’t think it’s related to files, but purely database entries. Besides the two functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check under what license distutils is distributed and whether its compatible with our MIT, otherwise looks good to me.
BSD, but good point, before copy-pasting you should check that you can/what citations are needed. The target library of shutils is just a standard library package, right? So almost certainly no worries there. |
Dammit, I need to figure out how to approve with a message on mobile. Anyhow, modulo double checking licensing, lgtm. I do think this is exactly the sort of thing I would rather have in snippets than a particular pyiron module, but since snippets isn't published yet and moving it there will be trivial with my new gist, I have no problem putting it here for now if you don't want to wait. |
I agree and exactly for the reason that it’s not published I kept it here. |
…utils is going to be removed from python 3.12
I stumbled upon [this article](https://stackoverflow.com/questions/10047521/how-to-copy-directory-with-all-file-from-c-xxx-yyy-to-c-zzz-in-python while trying to fix the archiving problem so I did the change.