Skip to content

Remove pkg_resources from setup#123

Draft
Mirochill wants to merge 1 commit into
smarie:mainfrom
Mirochill:fix-122-drop-pkg-resources
Draft

Remove pkg_resources from setup#123
Mirochill wants to merge 1 commit into
smarie:mainfrom
Mirochill:fix-122-drop-pkg-resources

Conversation

@Mirochill
Copy link
Copy Markdown

Purpose

Remove the direct pkg_resources import from setup.py, so builds that use a recent setuptools without pkg_resources are not blocked by this setup helper.

Resolves #122.

Summary

  • removed the pkg_resources.require(...) checks; build requirements are already declared in pyproject.toml / setup.cfg
  • replaced pkg_resources.get_distribution(setuptools_scm) with stdlib importlib.metadata.version(setuptools-scm)
  • kept the existing setuptools_scm version-conditional template logic unchanged

Validation

Local project tests were not run because this workspace does not execute third-party project tests, builds, installers, linters, nox sessions, or project scripts locally.

Static validation performed:

  • git diff --check HEAD~1..HEAD
  • rg -n pkg_resources|get_distribution|resource_filename|resource_dir setup.py pyproject.toml setup.cfg noxfile-requirements.txt src tests ci_tools (no matches)

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.

pkg_resources deprecated

1 participant