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-39044: Add as_local support for Python resource URIs #57

Merged
merged 5 commits into from May 17, 2023
Merged

Conversation

timj
Copy link
Member

@timj timj commented May 4, 2023

Checklist

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

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Patch coverage: 82.53% and project coverage change: -0.33 ⚠️

Comparison is base (cfc45f6) 85.89% compared to head (c78f499) 85.57%.

❗ Current head c78f499 differs from pull request most recent head 7c08b6d. Consider uploading reports for the commit 7c08b6d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
- Coverage   85.89%   85.57%   -0.33%     
==========================================
  Files          27       27              
  Lines        3879     3931      +52     
  Branches      800      815      +15     
==========================================
+ Hits         3332     3364      +32     
- Misses        428      443      +15     
- Partials      119      124       +5     
Impacted Files Coverage Δ
python/lsst/resources/packageresource.py 88.76% <80.76%> (-11.24%) ⬇️
tests/test_resource.py 97.14% <90.90%> (-2.86%) ⬇️

... and 4 files with indirect coverage changes

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

python/lsst/resources/packageresource.py Outdated Show resolved Hide resolved
python/lsst/resources/packageresource.py Outdated Show resolved Hide resolved
python/lsst/resources/packageresource.py Outdated Show resolved Hide resolved
timj added 2 commits May 5, 2023 14:58
Previously the code just looked for a trailing slash. Modify
so that a resource is checked using the isdir API.
timj added 2 commits May 5, 2023 15:30
Previously the code did not take into account that if you
ask for a resource in package lsst.not.there a ModuleNotFoundError
would be raised. Now catch this error so that the calling code
can decide if it cares or not.
@timj timj merged commit eaf6fda into main May 17, 2023
15 checks passed
@timj timj deleted the tickets/DM-39044 branch May 17, 2023 20:08
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