Skip to content

Commit

Permalink
Replace pkg_resources in version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jan 23, 2023
1 parent 6510d12 commit 6050634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pkg_resources
from ._importlib import metadata

try:
__version__ = pkg_resources.get_distribution('setuptools').version
__version__ = metadata.version('setuptools')
except Exception:
__version__ = 'unknown'

0 comments on commit 6050634

Please sign in to comment.