Files
buildroot/package/python-whitenoise/python-whitenoise.mk
Marcus Hoffmann cc114f7376 package/python-whitenoise: new package
The test is using the django integration of whitenoise as it's the most
common setup and allows to model the test case after the django one as
well.

The setup we need to do is a bit more complicated though and follows
the whitenoise getting started documentation [1].

We then request a .css file from the django admin app that is enabled
by default in template project. Due to running django's development
server with --nostatic we ensure that static file handling is taken over
by whitenoise.

[1] https://whitenoise.readthedocs.io/en/stable/django.html

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-10-18 12:48:54 +02:00

15 lines
571 B
Makefile

################################################################################
#
# python-whitenoise
#
################################################################################
PYTHON_WHITENOISE_VERSION = 6.11.0
PYTHON_WHITENOISE_SOURCE = whitenoise-$(PYTHON_WHITENOISE_VERSION).tar.gz
PYTHON_WHITENOISE_SITE = https://files.pythonhosted.org/packages/15/95/8c81ec6b6ebcbf8aca2de7603070ccf37dbb873b03f20708e0f7c1664bc6
PYTHON_WHITENOISE_SETUP_TYPE = setuptools
PYTHON_WHITENOISE_LICENSE = MIT
PYTHON_WHITENOISE_LICENSE_FILES = LICENSE
$(eval $(python-package))