-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
pkg_resources is provided by setuptools:
Line 144 in e288b53
| __version__ = pkg_resources.require("altgraph")[0].version |
The stdlib’s replacement for this line would be
from importlib.metadata import version
__version__ = version("altgraph")If you want to be compatible with Python <3.8, you could do:
try:
from importlib.metadata import version
except ImportError: # Python <3.8
from importlib_metadata import version
__version__ = version("altgraph")which would use this conditional dependency: importlib-metadata; python_version < '3.8'
You could also just do #12 instead. Flit sources the metadata version from a version string in __init__.py so this would just become __version__ = '0.17.4'
h7x4 and darthwalsh
Metadata
Metadata
Assignees
Labels
No labels