GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — Replace legacy API implementation with files() by FFY00 · Pull Request #221 · python/importlib_resources Conversation
FFY00
force-pushed
the
use-files-in-leacy-api
branch
3 times, most recently
from
e3e681a to
f68da1c
Compare
|
There was an error while loading. Please reload this page.
|
@jaraco the first commit is bad, but I wonder if is something that we actually want to do? The
I would greatly prefeer 1), which actually seems like the correct behavior, if I understand |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@FFY00: Can we back up a bit? What expectation is missed that led you to draft the first commit (193ede9)? I see the commit message says "fix DegenerateFiles not exposing loader contents", but I'm unsure why that's needed. Would it be possible to simply deprecate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Currently, tests are failing if I switch the
The current
We could simply deprecate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If Maybe the right thing to do here is to rename An important thing to remember regarding the As I see it, the question is - what should happen for a loader that implements 'contents' but not 'files' - should we wrap that implementation and create a I think you're struggling with a lot of the challenges I've struggled with while trying to adapt everything to run on I don't have a good recommendation at this time, but I'll try to loop back on it again later... and I welcome you to continue to explore it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I agree.
The thing is, this is already supported by the legacy API. I gave it another try and the issue I am running into is a lack of means to implement We could support these cases in the This proposal makes it possible to easily replace |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7055ce1 to
1a2ce97
Compare
|
I have a successful implementation that uses the approach I described. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Since other resource providers implement the the concrete I notice the diffcov tests are failing with:
Not a hard requirement, but I'd prefer if we had tests covering those code paths. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, makes sense, we want people moving away from Discussion moved to #226. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ba63f38 to
84658bc
Compare
69d19dd to
7cb935e
Compare
Signed-off-by: Filipe Laíns <[email protected]>
979870a to
a1b319c
Compare
|
This is still missing tests for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
The files() api makes the identification of resources blury. Here we re-implement is_resource() by mirroring the previous logic to the best extent we can. This is not fully correct, as the files() api is not fully compatible with the legacy api, but it is pretty close and as correct as we can get. The semantics for what constitutes resources have always been blurry in the first place. Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
Signed-off-by: Filipe Laíns <[email protected]>
870c844 to
ef2f7c2
Compare
|
@jaraco friendly ping. Please have a look when you have time, I know it's a pretty big, and involved, change so don't feel pressured 😅 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jaraco friendly ping. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I haven’t forgotten, but I’ve had quite a lot on my plate. Will get to it soon. Thanks for the patience and reminder.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This work is excellent. It's clean, makes some smart decisions, but most importantly sets us up to be able to deprecate the legacy API. I have only the one serious reservation, and even that isn't a blocker to move forward, so I'll defer to your preference on whether to pursue those changes in this PR or a subsequent one.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Signed-off-by: Filipe Laíns <[email protected]>
|
Big thanks Filipe. Releasing as v5.2.0. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.