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

DM-38552: Support non-file root in constructor for relative paths #47

Merged
merged 8 commits into from Apr 6, 2023

Conversation

timj
Copy link
Member

@timj timj commented Apr 4, 2023

Also fix the strange behavior where absolute schemeless URIs can sometimes be updated to file URIs but not always.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Apr 4, 2023

Codecov Report

Patch coverage: 96.15% and project coverage change: +1.01 🎉

Comparison is base (c35d886) 84.47% compared to head (0c9a535) 85.49%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   84.47%   85.49%   +1.01%     
==========================================
  Files          27       27              
  Lines        3665     3633      -32     
  Branches      767      746      -21     
==========================================
+ Hits         3096     3106      +10     
+ Misses        441      416      -25     
+ Partials      128      111      -17     
Impacted Files Coverage Δ
tests/test_file.py 98.85% <ø> (+2.14%) ⬆️
python/lsst/resources/schemeless.py 81.94% <75.00%> (-12.50%) ⬇️
python/lsst/resources/_resourcePath.py 96.34% <100.00%> (+1.76%) ⬆️
python/lsst/resources/file.py 89.26% <100.00%> (+3.07%) ⬆️
python/lsst/resources/tests.py 97.59% <100.00%> (+0.01%) ⬆️
tests/test_location.py 100.00% <100.00%> (+1.03%) ⬆️
tests/test_schemeless.py 100.00% <100.00%> (+6.66%) ⬆️

... and 11 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

timj added 3 commits April 4, 2023 13:56
Previously we tried to distinguish between someone constructing
a ResourcePath with an schemeless absolute path and someone
constructing one with forceAbsolute=True and the distinction
was mostly confusing to everyone.
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, few minor questions.

python/lsst/resources/_resourcePath.py Show resolved Hide resolved
python/lsst/resources/_resourcePath.py Outdated Show resolved Hide resolved
python/lsst/resources/_resourcePath.py Show resolved Hide resolved
python/lsst/resources/_resourcePath.py Outdated Show resolved Hide resolved
@timj timj merged commit 6c3fd44 into main Apr 6, 2023
15 checks passed
@timj timj deleted the tickets/DM-38552 branch April 6, 2023 03:44
@timj timj mentioned this pull request Jan 18, 2024
2 tasks
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.

None yet

2 participants