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

Fixes typo in Caching envvar (#424) #426

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Fixes typo in Caching envvar (#424) #426

merged 1 commit into from
Apr 9, 2024

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Apr 9, 2024

Live tests for #424


  • Fixes typo in Caching envvar

Envvar to set caching mode was previously CLOUPATHLIB_FILE_CACHE_MODE (missing D in CLOUDPATHLIB). This commit fixes this typo and introduces some code to help migrate projects to the new envvar. The current logic for migration warnings is:

  • If the old envvar is set and not the new one, use the old one and issue a deprecation warning
  • If the old and new envvars are set, use the new version and issue a warning if the two disagree
  • Added deprecation version

  • Fully reset envvars after testing

* Fixes typo in Caching envvar

Envvar to set caching mode was previously CLOUPATHLIB_FILE_CACHE_MODE
(missing D in CLOUDPATHLIB). This commit fixes this typo and introduces
some code to help migrate projects to the new envvar. The current logic
for migration warnings is:

- If the old envvar is set and not the new one, use the old one and
  issue a deprecation warning
- If the old and new envvars are set, use the new version and issue a
  warning if the two disagree

* Added deprecation version

* Fully reset envvars after testing
Copy link
Contributor

github-actions bot commented Apr 9, 2024

@github-actions github-actions bot temporarily deployed to pull request April 9, 2024 16:18 Inactive
Copy link

codecov bot commented Apr 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.4%. Comparing base (d368501) to head (65e9ad2).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #426     +/-   ##
========================================
- Coverage    93.8%   93.4%   -0.4%     
========================================
  Files          23      23             
  Lines        1639    1646      +7     
========================================
+ Hits         1538    1539      +1     
- Misses        101     107      +6     
Files Coverage Δ
cloudpathlib/enums.py 100.0% <100.0%> (ø)

... and 3 files with indirect coverage changes

@pjbull pjbull merged commit fabb0e4 into master Apr 9, 2024
25 checks passed
@pjbull pjbull deleted the 424-live-tests branch April 9, 2024 16:33
@jayqi jayqi mentioned this pull request Apr 9, 2024
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