Commit 05dadcfe authored by Rene Ladan's avatar Rene Ladan
Browse files

www/py-django-bleach: Remove expired port

2026-03-31 www/py-django-bleach: Upstream has been archived on November 5, 2024
parent 8232b9d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5176,3 +5176,4 @@ sysutils/tmate-ssh-server||2026-03-31|Has expired: Upstream unmaintained
editors/wordgrinder||2026-03-31|Has expired: broken since 2023, maintainer AWOL
www/py-django-cron||2026-03-31|Has expired: Upstream inactive since 3+ years, not compatible with Django 5.2 or newer
deskutils/py-paperless|deskutils/py-paperless-ngx|2026-03-31|Has expired: Upstream repository archived since 2021 and no compatibility for Django 5+. Please migrate to deskutils/py-paperless-ngx
www/py-django-bleach||2026-03-31|Has expired: Upstream has been archived on November 5, 2024
+0 −1
Original line number Diff line number Diff line
@@ -1592,7 +1592,6 @@
    SUBDIR += py-django-autocomplete-light
    SUBDIR += py-django-bakery
    SUBDIR += py-django-bitfield
    SUBDIR += py-django-bleach
    SUBDIR += py-django-bootstrap3
    SUBDIR += py-django-bootstrap4
    SUBDIR += py-django-braces

www/py-django-bleach/Makefile

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
PORTNAME=	django-bleach
PORTVERSION=	3.1.0
PORTREVISION=	1
CATEGORIES=	www python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Easily use bleach with Django models and templates
WWW=		https://github.com/marksweb/django-bleach

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=	Upstream has been archived on November 5, 2024
EXPIRATION_DATE=2026-03-31

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bleach>=5:www/py-bleach@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR}

USES=		python
USE_PYTHON=	autoplist concurrent pep517

NO_ARCH=	yes

.include <bsd.port.mk>

www/py-django-bleach/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1692211821
SHA256 (django-bleach-3.1.0.tar.gz) = 766405a32b877a5beb6b377ace0d8bbe2a7d4d6304f04542aa14fd74b14398a7
SIZE (django-bleach-3.1.0.tar.gz) = 22197
+0 −64
Original line number Diff line number Diff line
--- django_bleach/tests/test_forms.py.orig	2023-08-05 01:36:02 UTC
+++ django_bleach/tests/test_forms.py
@@ -127,7 +127,7 @@ class TestCustomWidget(TestCase):
             # Define form inside function with overridden settings so
             # get_default_widget() sees the modified setting.
             no_tags = BleachField(
-                max_length=100, strip_tags=True, allowed_tags=[]
+                max_length=100, strip_tags=True, allowed_tags={}
             )
             no_strip = BleachField(
                 max_length=100, allowed_tags=None, allowed_attributes=None
--- setup.py.orig	2023-08-05 01:36:02 UTC
+++ setup.py
@@ -43,7 +43,7 @@ setup(
     license="MIT",
     packages=find_packages(exclude=("testproject*",)),
     install_requires=[
-        "bleach[css]>=5,<6",
+        "bleach[css]>=5",
         "Django>=3.2",
     ],
     python_requires=">=3.8",
--- testproject/constants.py.orig	2023-08-05 01:36:02 UTC
+++ testproject/constants.py
@@ -2,11 +2,11 @@ ALLOWED_ATTRIBUTES = {"*": ["class", "style"], "a": ["
 
 ALLOWED_CSS_PROPERTIES = ["color"]
 
-ALLOWED_PROTOCOLS = [
+ALLOWED_PROTOCOLS = {
     "https",
     "data",
-]
+}
 
 ALLOWED_STYLES = ALLOWED_CSS_PROPERTIES
 
-ALLOWED_TAGS = ["a", "li", "ul"]
+ALLOWED_TAGS = {"a", "li", "ul"}
--- testproject/forms.py.orig	2023-08-05 01:36:02 UTC
+++ testproject/forms.py
@@ -23,7 +23,7 @@ class CustomBleachWidget(forms.Textarea):
 class BleachForm(forms.Form):
     """Form for testing BleachField"""
 
-    no_tags = BleachField(max_length=100, strip_tags=True, allowed_tags=[])
+    no_tags = BleachField(max_length=100, strip_tags=True, allowed_tags={})
 
     no_strip = BleachField(
         max_length=100, allowed_tags=None, allowed_attributes=None
--- testproject/models.py.orig	2023-08-05 01:36:02 UTC
+++ testproject/models.py
@@ -10,9 +10,9 @@ class Person(models.Model):
     biography = BleachField(
         max_length=100,
         verbose_name="Person biography",
-        allowed_tags=["p", "a", "li", "ul", "strong"],
+        allowed_tags={"p", "a", "li", "ul", "strong"},
         allowed_attributes=["class", "href", "style"],
-        allowed_protocols=["http", "https"],
+        allowed_protocols={"http", "https"},
         css_sanitizer=CSSSanitizer(
             allowed_css_properties=["color", "background-color"]
         ),
Loading