mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +00:00
Do not check compatibiliy while upgrading
This commit is contained in:
@@ -44,13 +44,14 @@ def get_all_plugins(event=None) -> List[type]:
|
|||||||
|
|
||||||
|
|
||||||
class PluginConfig(AppConfig):
|
class PluginConfig(AppConfig):
|
||||||
|
IGNORE = False
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
if not hasattr(self, 'PretixPluginMeta'):
|
if not hasattr(self, 'PretixPluginMeta'):
|
||||||
raise ImproperlyConfigured("A pretix plugin config should have a PretixPluginMeta inner class.")
|
raise ImproperlyConfigured("A pretix plugin config should have a PretixPluginMeta inner class.")
|
||||||
|
|
||||||
if hasattr(self.PretixPluginMeta, 'compatibility'):
|
if hasattr(self.PretixPluginMeta, 'compatibility') and not self.IGNORE:
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
try:
|
try:
|
||||||
pkg_resources.require(self.PretixPluginMeta.compatibility)
|
pkg_resources.require(self.PretixPluginMeta.compatibility)
|
||||||
|
|||||||
@@ -46,9 +46,11 @@ class CustomBuild(build):
|
|||||||
django.setup()
|
django.setup()
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core import management
|
from django.core import management
|
||||||
|
from pretix.base.plugins import PluginConfig
|
||||||
|
|
||||||
settings.COMPRESS_ENABLED = True
|
settings.COMPRESS_ENABLED = True
|
||||||
settings.COMPRESS_OFFLINE = True
|
settings.COMPRESS_OFFLINE = True
|
||||||
|
PluginConfig.IGNORE = True
|
||||||
|
|
||||||
management.call_command('compilemessages', verbosity=1)
|
management.call_command('compilemessages', verbosity=1)
|
||||||
management.call_command('compilejsi18n', verbosity=1)
|
management.call_command('compilejsi18n', verbosity=1)
|
||||||
|
|||||||
Reference in New Issue
Block a user