Add metadata module and read package attrs dynamically.

This commit is contained in:
Fabio Caccamo
2023-02-09 19:14:33 +01:00
parent e2b23c238f
commit 71cc60bea3
7 changed files with 69 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
from admin_interface.metadata import (
__author__,
__copyright__,
__description__,
__license__,
__title__,
__version__,
)
__all__ = [
"__author__",
"__copyright__",
"__description__",
"__license__",
"__title__",
"__version__",
]
+10
View File
@@ -0,0 +1,10 @@
__author__ = "Fabio Caccamo"
__copyright__ = "Copyright (c) 2016-present Fabio Caccamo"
__description__ = (
"django's default admin interface with superpowers - "
"customizable themes, popup windows replaced by modals and many other features."
)
__email__ = "fabio.caccamo@gmail.com"
__license__ = "MIT"
__title__ = "django-admin-interface"
__version__ = "0.24.2"
@@ -8,8 +8,8 @@ from django.urls import NoReverseMatch, reverse
from django.utils import translation
from admin_interface.cache import get_cached_active_theme, set_cached_active_theme
from admin_interface.metadata import __version__
from admin_interface.models import Theme
from admin_interface.version import __version__
register = template.Library()
-1
View File
@@ -1 +0,0 @@
__version__ = "0.24.2"