README.md edited
This commit is contained in:
14
.venv/lib/python3.10/site-packages/jazzmin/__init__.py
Normal file
14
.venv/lib/python3.10/site-packages/jazzmin/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import sys
|
||||
|
||||
# We automatically grab the version of `django-jazzmin` from the package manager instead of
|
||||
# hard coding it. The method for determining the version changed since PY3.8. N.B. For
|
||||
# development versions of `django-jazzmin`, the version will be 0.0.0 (see pyproject.toml) as it's
|
||||
# not technically installed.
|
||||
if sys.version_info >= (3, 8):
|
||||
from importlib.metadata import version as package_version
|
||||
|
||||
version = package_version("django-jazzmin")
|
||||
else:
|
||||
import pkg_resources
|
||||
|
||||
version = pkg_resources.get_distribution("django-jazzmin").version
|
||||
Reference in New Issue
Block a user