Repository navigation
add r2 file fetch - #132
Open
mikemhenry wants to merge 17 commits into
Open
mikemhenry wants to merge 17 commits into
mikemhenry wants to merge 17 commits into
Conversation
* mondernize pkg * add testpypi trusted publishing * Use append mode to test the installed wheel instead of importing the source package, which lacks the generated _version.py. * add -n auto to speed up CI
* use generic SCM version overide envar * Migrate to R2 * update script doc strings * update ci steps * prevent a race where two pytest workers might try and untar the same file
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #132 +/- ##
=======================================
Coverage 98.38% 98.38%
=======================================
Files 10 10
Lines 496 496
=======================================
Hits 488 488
Misses 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
…tch' into feat/add-r2-file-fetch
Contributor
Author
|
pre-commit.ci autofix |
This file contains hidden or 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
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.
I used ChatGPT 6.0 Extra-High to write the
scripts/upload_data.py(wiring together wrangler, rclone, and the HTTP api was something I wanted assistance on). I've read every line and can explain it.Everything else is handcrafted.
In addition to switching to R2, this PR adds a file lock when pooch is untaring an archive. I found this to be the source of a lot of weird netcdf errors and stuff since two pytest-xdist workers and end up trying to untar the same file at the same time. This file lock works on osx and linux using native OS primitives.