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 the use of pkg_resources #8095

Merged

Conversation

WilliamJamieson
Copy link
Collaborator

@WilliamJamieson WilliamJamieson commented Nov 27, 2023

Currently, JWST makes use of the long deprecated (since python 3.3) module pkg_resources. This module was officially removed for Python 3.12+ by python/cpython#98040. This PR removes all remaining uses of pkg_resources from JWST, replacing the version generation with setuptools_scm generating a hidden python file during install, which is the standard practice for using a git tag/commit versioned python project now.

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

This replaces its use with setuptools_scm
@hbushouse
Copy link
Collaborator

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2b36da4) 75.92% compared to head (c97f571) 75.93%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8095   +/-   ##
=======================================
  Coverage   75.92%   75.93%           
=======================================
  Files         459      459           
  Lines       37615    37601   -14     
=======================================
- Hits        28561    28553    -8     
+ Misses       9054     9048    -6     
Flag Coverage Δ *Carryforward flag
nightly 77.37% <ø> (+<0.01%) ⬆️ Carriedforward from 2b36da4

*This pull request uses carry forward flags. Click here to find out more.

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

@hbushouse
Copy link
Collaborator

Two regression failures are unrelated. Merging.

@hbushouse hbushouse merged commit 2a70810 into spacetelescope:master Nov 30, 2023
22 of 23 checks passed
@WilliamJamieson WilliamJamieson deleted the feature/remove_pkg_resources branch November 30, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants