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

Replace deprecated pkg_resources #1921

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Conversation

rzats
Copy link
Contributor

@rzats rzats commented Jan 4, 2024

Closes #1902.

Summary:

Removes uses of setuptools' deprecated pkg_resources library - these are replaced by the importlib_resources backport. This is due to the features needed in the codebase, like accessing resources within subdirectories, only becoming available in Python 3.9+.

Prerequisites:

  • Unless it is a documentation hotfix it should be merged against the dev branch
  • Branch is up-to-date with the branch to be merged with, i.e. dev
  • Build is successful
  • Code is cleaned up and formatted

@rzats rzats requested a review from melange396 January 4, 2024 16:01
@nmdefries nmdefries requested a review from dshemetov June 7, 2024 20:48
Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

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

Overall looks good, merged in main, and added a tiny tweak by referencing the migration guide.

@dshemetov dshemetov merged commit 38ea2da into main Jun 7, 2024
15 checks passed
@dshemetov dshemetov deleted the rzatserkovnyi/pkg-resources branch June 7, 2024 22:08
@dshemetov dshemetov mentioned this pull request Jun 7, 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.

replace deprecated pkg_resources
2 participants