Skip to content

Conversation

justinpolygon
Copy link
Contributor

This PR updates the method for retrieving the version number of the polygon-api-client package. It replaces the use of pkg_resources from setuptools with importlib.metadata, which is part of the standard library in Python 3.8 and newer.

Changes

  • Removed import pkg_resources and replaced it with from importlib.metadata import version, PackageNotFoundError.
  • Updated the version retrieval logic to use importlib.metadata.version instead of pkg_resources.require.

Benefits

@justinpolygon justinpolygon marked this pull request as ready for review July 1, 2024 11:50
@justinpolygon justinpolygon merged commit 71bc469 into master Jul 1, 2024
@justinpolygon justinpolygon deleted the jw-remove-setuptools branch July 1, 2024 14:20
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.

2 participants