forked from drivendataorg/cloudpathlib
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Py313 master update #5
Open
msmitherdc
wants to merge
22
commits into
master
Choose a base branch
from
py313-master-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Allow empty content type for s3 objects Fixes drivendataorg#331 * Update s3client.py
…aorg#336) * Fix CloudPathMeta.__call__ return type Since pyright==1.1.307, instances of the subclasses of CloudPath stopped being recognized as instances of their own class; a possible fix is to type hint CloudPathMeta.__call__, but it creates a host of mypy errors * Refactor CloudPathMeta.__call__ Fix mypy errors by making use of object.__new__ and type assertions * Add type ignore on CloudPathMeta.__call__ return Incompatible return value type (got "CloudPath", expected "CloudPathT"); not a clear fix here without a more general refactor * Refactor CloudPathMeta.__call__ signature to use overload Also make issubclass(cls, CloudPath) explicit by raising TypeError * Run black * Change back __init__ to use Self type For some reason this leads to mypy type-var errors in the meta __call__ (probably erroneous) Co-authored-by: Matthew Hoffman <matthew@protopia.ai>
…ivendataorg#338) This allows us to infer that CloudPaths are the same type of object as the class is_valid_cloudpath is called on Co-authored-by: Matthew Hoffman <matthew@protopia.ai>
* release 0150 * python 3.11.4 compatibility
* pydantic compatibility warning * add note to docs * try fix MaxOS actions error * pydantic v2 compatibility * Keep v1 compatibility * Remove warning message * no need to version skip * update changelog
* Add "CloudPath" to possible cloud_path types (drivendataorg#342) (drivendataorg#343) * Add "CloudPath" to possible cloud_path types (drivendataorg#342) * Add to changelog --------- Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com> * Added with_stem support (drivendataorg#290) (drivendataorg#354) * Added with_stem support * Update readme (+small fix to make_support_table) * Added test * Update history.md * Fallback to trivial CPython implementation if `with_stem` is not available * Add a clarification comment Co-authored-by: Daniel Oriyan <gilthans@gmail.com> * Fix flake8 errors (drivendataorg#359) * Fix flake8 errors * Fix wrong comparison * Bump codecov action version; add codecov token --------- Co-authored-by: Jay Qi <jayqi@users.noreply.github.com> * Update write_text to include newline variable (drivendataorg#362) (drivendataorg#363) * Update write_text to include newline variable * Remove old docstring link * Update cloudpathlib/cloudpath.py with black correction * Remove use of io module * update HISTORY.md Co-authored-by: Matthew Price <matthew.price23@gmail.com> * Add support for Python 3.12 (drivendataorg#364) * passing tests * remove print * make method signatures match * Remove unused import * ignore type errors * ignore more type errors * make linting and tests work on multiple py versions * add 3.12 to CI and pyproject * use pytest-cases fork * More performant walk implementation * format * update methods * Test walk method * Version agnostic tests * update tests * Add tests * Order agnostic walk test * Changes * Update changelog * sleep for flaky test * Sleep flaky tests * sleepier * implement env var for local cache dir (drivendataorg#361) * Add contributing guidelines (drivendataorg#367) * contributing guidelines * Apply suggestions from code review Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com> * WIP * Contrib tweaks and PR template * clarification * update history typo --------- Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com> * Version bump * format with black * ignore type checking here * update client reference * update * no need to change --------- Co-authored-by: Peter Bull <pjbull@gmail.com> Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com> Co-authored-by: Daniel Oriyan <gilthans@gmail.com> Co-authored-by: Jay Qi <2721979+jayqi@users.noreply.github.com> Co-authored-by: Jay Qi <jayqi@users.noreply.github.com> Co-authored-by: Matthew Price <matthew.price23@gmail.com> Co-authored-by: Peter Bull <peter@drivendata.org> Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com> Co-authored-by: Michael D. Smith <michael.smith@erdc.dren.mil>
* first stab at caching metadata * more work * update variable * fixes * fix cloud path references * need full path for key * bugfixes * move to normal dict * cleanup on closedown --------- Co-authored-by: marchowes <marc.h.howes@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update cloudpathlib with origin changes from master