-
Notifications
You must be signed in to change notification settings - Fork 23
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
Python 3.12 compatibility #106
Comments
@adrianeboyd Yes, I'm frustrated by the constant breakage as well. According to #105 there's a public API for doing what Pathy does potentially coming in the future. Still, until then, the team can break things without regard to Pathy since the flavour classes are private. I love spacy and explosion, and it's been great having you rely on Pathy, but I don't have free time to fix this right now. |
Thanks for your response! I'll talk to Matt and Ines about how they'd like to proceed. At least for the current release, |
@adrianeboyd There's been movement on #105 and I'm working on an update that supports python 3.12. Are you still waiting on this? I found that the spaCy model def force_path(location, require_exists=True):
if not isinstance(location, Path):
location = Path(location)
if require_exists and not location.exists():
raise ValueError(f"Can't read file: {location}")
return location Beyond the spaCy-specific tests failing, the cleanest migration requires breaking changes to how Pathy works. Specifically, it will no longer directly support interacting with POSIX/windows file system paths. Instead, you must use If you're still using Pathy, I expect a PR to be ready for review in the next few days, at which point we could coordinate testing and adjust for your needs. I could resurrect some of the old behaviors if needed, but for now, I'll opt for any chance to simplify and stabilize the library. |
It's good to hear that there are some upstream improvements! spacy (now in weasel rather than directly spacy) migrated to cloudpathlib a few months ago. |
Cool, thanks for letting me know. I'll drop the spacy tests and close this issue when the new version ships. |
🎉 This issue has been resolved in version 0.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
While doing some initial testing for python 3.12 (specifically with python 3.12.0b4), I noticed that
pathy
isn't compatible out of the box:(Ugh. I wish this weren't so frustrating and time-consuming every year.)
The text was updated successfully, but these errors were encountered: