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

remove use of pkg_resources #217

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

braingram
Copy link
Collaborator

@braingram braingram commented Sep 21, 2023

pkg_resources is deprecated. It's use in stdatamodels is limited to parsing the asdf version to check if it's at least 2.6. The pyproject.toml dependencies set a lower pin on asdf version 2.15.0 making the check in the code unnecessary:

"asdf>=2.15.0",

This PR removes the use of pkg_resources.

This is causing issues for 3.12 testing as seen in: #216

Regression tests passed with no errors: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/967/

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

@braingram braingram requested a review from a team as a code owner September 21, 2023 18:37
@braingram braingram added the no-changelog-entry-needed Trivial change that doesn't need an entry in the change log label Sep 21, 2023
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f3aa87e) 64.67% compared to head (db314e9) 64.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
- Coverage   64.67%   64.66%   -0.01%     
==========================================
  Files         102      102              
  Lines        5664     5660       -4     
==========================================
- Hits         3663     3660       -3     
+ Misses       2001     2000       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@braingram

This comment was marked as duplicate.

Copy link
Contributor

@WilliamJamieson WilliamJamieson left a comment

Choose a reason for hiding this comment

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

The python 3.12 failures seem unrelated to these changes. If this is the case these look good to me

@braingram braingram merged commit 4a06de9 into spacetelescope:master Nov 14, 2023
20 of 21 checks passed
@braingram braingram deleted the remove_pkg_resources branch November 14, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-entry-needed Trivial change that doesn't need an entry in the change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants