-
Notifications
You must be signed in to change notification settings - Fork 41
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
s3path
broken in Python 3.12 due to _PosixFlavor
no longer being available
#149
Comments
Just to add to this, import pathlib
pathlib._PosixFlavour = pathlib.PurePosixPath
pathlib._is_wildcard_pattern = lambda pat: "*" in pat or "?" in pat or "[" in pat
from s3path import S3Path EDIT: Actually, this does not really fix anything. The interface has completely changed. |
@liormizr any objections if I take a stab at this refactor in a PR? Probably won't get around to it until early jan We (airbnb) are using this package pretty heavily in some libraries and upgrading anything to Py 3.12 is blocked on this. Would rather coordinate w/ you if you had any opinions. |
+1. If no updates are planned, I'm going to have to abandon my use of s3path from here on. |
Hi guys, As many of you know I'm living in Israel so as you can guess this project is not on top of my priorities at the moment. @iamthebot I'l start checking when will it take to do the change to add Python 3.12 support @schultzm do what is best for you. |
On Python Version 3.13 we are expecting a refactor in pathlib with the edition of the new pathlib.VirtualPath class I added Python 3.12 support in mind of the coming python versions and how s3path will support multiple versions with braking changes in the future. I'll update when we will deploy new version, meanwhile you all are welcome to review and tell me your feedback. |
Totally understand @liormizr. I hope you're able to stay safe. Totally willing to lend a hand where I can. We use this pretty heavily and it's an awesome project. But your own safety and wellbeing come first of course.
Thanks, will review this PR tomorrow and do some testing with it against our codebase. At a quick glance, looks like this should do the trick.
You can see the discussion in issue #140 |
OK upon review looks like the 3.12 PR should suffice in closing this issue when merged. |
New Version deployed 0.5.1 with this card fix |
Relevant line.
_PosixFlavor
is no longer inPathLib
in Python 3.12. You probably wantPurePosixPath
for Python >=3.12 ?The text was updated successfully, but these errors were encountered: