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

Replace pathlib with cloudpathlib #11

Merged
merged 2 commits into from
May 15, 2024
Merged

Replace pathlib with cloudpathlib #11

merged 2 commits into from
May 15, 2024

Conversation

bsweger
Copy link
Collaborator

@bsweger bsweger commented May 15, 2024

This handles an error caused by treating S3 URIs like a regular path.

Instead, we can use cloudpathlib, which acts like Python's built-in pathlib but recognizes the URI formats of various cloud providers.

This handles an error caused by treating S3 URIs like a regular path.
Instead, we can use cloudpathlib, which acts like Python's built-in
pathlib but recognizes the URI formats of various cloud providers.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is auto-generated by PDM (which is slated for removal, but it's still here for now)

@bsweger bsweger requested a review from matthewcornell May 15, 2024 13:53
MyPy throws attr-defined errors on code that uses methods
from cloudpathlib's AnyPath object (AnyPath will instantiate
a cloud path instance or a pathlib.Path instance, depending on
what is passed to it).

There may be a clever workaround, but I'm not sure the juice is
worth the squeeze.
@bsweger bsweger merged commit 07d265d into main May 15, 2024
1 check passed
@bsweger bsweger deleted the bsweger/add-cloudpathlib branch May 30, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants