-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Deprecate py.path support #26450
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
Comments
we should deprecate as have accepted these for a long time and they work py 3 |
If possible, I'd like to contribute to this. Should I search for functions with LocalPath and deprecate them accordingly? |
@nandahkrishna that's great! And yes you've got it right. You might want to check out other PRs labeled Deprecate that have been merged to see how we typically handle as well |
Sure, I'll do that. Thanks! |
I took a look at previous PRs labeled deprecate. I got a fair idea of how it works, but I couldn't seem to find a case that deprecated an external library (might have missed my eye?) so just confirming:
|
That's right! |
Does py.path implement the __fspath__ protocol? If so, then no need to deprecate. We can just remove the py.path specific code.
… On May 18, 2019, at 17:16, Jeff Reback ***@***.***> wrote:
we should deprecate as have accepted these for a long time and they work py 3
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think so from jaraco/path#123. The problem however is we internally don't fully operate using the So would your suggestion be to just defer any kind of deprecation and work towards full fspath support when we drop 3.5? |
I’m not sure, but I think objects implementing fspath will work fine, even for python 3.5 and earlier. In theory, we can just remove the py.path-specific code and things will work.
… On May 19, 2019, at 09:20, William Ayd ***@***.***> wrote:
Does py.path implement the fspath protocol? If so, then no need to deprecate. We can just remove the py.path specific code.
I think so from jaraco/path#123. The problem however is we internally don't fully operate using the __fspath__ protocol, especially since that didn't become standard until 3.6. The PR by @nandahkrishna shows an example where we special case for py.path.
So would your suggestion be to just defer any kind of deprecation and work towards full fspath support when we drop 3.5?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Since our min version is Py35 path lib is guaranteed to be installed. However we have a few functions that accept py.path.LocalPath objects for compatability
Not sure if we need an explicit deprecation cycle or if this is implied with moving minimum support to Py35
The text was updated successfully, but these errors were encountered: