2
0
Fork 0

fix: use importlib-metadata backport for older systems

This commit is contained in:
Lance Edgar 2024-06-10 13:36:32 -05:00
parent 9f5b36b49e
commit 2bfd65de3d
2 changed files with 5 additions and 1 deletions

View file

@ -28,6 +28,7 @@ classifiers = [
]
requires-python = ">= 3.6"
dependencies = [
'importlib-metadata; python_version < "3.10"',
"python-configuration",
]

View file

@ -1,6 +1,9 @@
# -*- coding: utf-8; -*-
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version
__version__ = version('WuttJamaican')