mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
8 lines
287 B
Python
8 lines
287 B
Python
try:
|
|
from importlib.metadata import version # New in Python 3.8
|
|
except ImportError:
|
|
from pkg_resources import get_distribution # from setuptools, deprecated
|
|
|
|
__version__ = get_distribution('django_example_ynh').version
|
|
else:
|
|
__version__ = version('django_example_ynh')
|