Skip to content
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

Inherit from pathlib_abc.PathBase #270

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft

Conversation

ap--
Copy link
Collaborator

@ap-- ap-- commented Sep 3, 2024

To improve maintainability when new Python versions are released and to integrate better with upstream as well as downstream libraries, we're moving to pathlib_abc.PathBase as our base class for UPath.

This draft PR makes UPath inherit from PathBase, introduces PureUPath, and a "parser" (formerly 'flavour') based on ParserBase.

There's still quite a bit of work to be done to make all tests pass, but I'm pushing this here for people to follow along.

This PR will close #114, close #193, close #221 and close #245

@ap-- ap-- self-assigned this Sep 3, 2024
@ap--
Copy link
Collaborator Author

ap-- commented Sep 3, 2024

A lot of the path parsing in PurePathBase depends on the correct behavior of ParserBase.split. I should write tests for all supported filesystems how split should behave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant