From afb115c9a22db5e1a3142a8094e24f9fe8f26a9e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 29 Jul 2024 13:17:50 +0200 Subject: [PATCH] Remove static3 and dj-static (#4346) --- pyproject.toml | 4 +--- src/pretix/wsgi.py | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 17324b083..b8671307e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,6 @@ dependencies = [ "cryptography>=3.4.2", "css-inline==0.14.*", "defusedcsv>=1.1.0", - "dj-static", "Django[argon2]==4.2.*", "django-bootstrap3==24.2", "django-compressor==4.5.1", @@ -95,7 +94,6 @@ dependencies = [ "sentry-sdk==2.10.*", "sepaxml==2.6.*", "slimit", - "static3==0.7.*", "stripe==7.9.*", "text-unidecode==1.*", "tlds>=2020041600", @@ -139,7 +137,7 @@ build_ext = "pretix._build:CustomBuildExt" build-backend = "backend" backend-path = ["_build"] requires = [ - "setuptools<72", # until we remove static3 + "setuptools", "setuptools-rust", "wheel", "importlib_metadata", diff --git a/src/pretix/wsgi.py b/src/pretix/wsgi.py index 275cb36a7..38ae94184 100644 --- a/src/pretix/wsgi.py +++ b/src/pretix/wsgi.py @@ -34,8 +34,4 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix.settings") from django.core.wsgi import get_wsgi_application # NOQA -try: - from dj_static import Cling, MediaCling - application = Cling(MediaCling(get_wsgi_application())) -except ImportError: - application = get_wsgi_application() +application = get_wsgi_application()