fix: use importlib-metadata
backport for older systems
This commit is contained in:
parent
9f5b36b49e
commit
2bfd65de3d
|
@ -28,6 +28,7 @@ classifiers = [
|
|||
]
|
||||
requires-python = ">= 3.6"
|
||||
dependencies = [
|
||||
'importlib-metadata; python_version < "3.10"',
|
||||
"python-configuration",
|
||||
]
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from importlib.metadata import version
|
||||
try:
|
||||
from importlib.metadata import version
|
||||
except ImportError:
|
||||
from importlib_metadata import version
|
||||
|
||||
|
||||
__version__ = version('WuttJamaican')
|
||||
|
|
Loading…
Reference in a new issue