pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-html-sanitizer py-html-sanitizer: updated ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/654cc3a95841
branches: trunk
changeset: 389129:654cc3a95841
user: adam <adam%pkgsrc.org@localhost>
date: Wed Nov 30 16:43:32 2022 +0000
description:
py-html-sanitizer: updated to 1.9.3
1.9 (2020-01-20)
Added Python 3.8 to the CI matrix.
Be able to keep the <style> tag by adding it to tags.
Added a style check to the CI matrix.
1.8 (2019-11-21)
Actually added support for customizing lxml's autolinking behavior using a dictionary argument.
Stopped removing explicitly allowed attributes.
Removed id from allowed attributes of <a> tags to provide an additional layer of defense against DOM clobbering attacks.
Added an element preprocessor which assigns the id value to the name attribute of anchors if name isn't set or empty. This should provide additional backwards compatibility making the id removal less
of a problem when using named anchors.
1.7 (2019-02-19)
Added a system check which validates sanitizer configurations early when using Django.
Fixed an edge case where passing in an empty allowed tags list would unexpectedly and silently not remove any tags at all (because that's the way lxml's cleaner works).
Changed the sanitizer tags, empty and separate options to also accept any iterable, not just sets.
Changed the lru_cache import in the Django module to try functools first.
Fixed the tag merging to also check tags in empty. This means that e.g. consecutive <hr> tags are also merged now when using the default settings.
Made it possible to override the set of tags processed as whitespace. The default set is {"br"} which preserves the current behavior of stripping breaks from the beginning or end of tags' content.
diffstat:
textproc/py-html-sanitizer/Makefile | 11 ++++++-----
textproc/py-html-sanitizer/distinfo | 8 ++++----
2 files changed, 10 insertions(+), 9 deletions(-)
diffs (41 lines):
diff -r 049e2395785b -r 654cc3a95841 textproc/py-html-sanitizer/Makefile
--- a/textproc/py-html-sanitizer/Makefile Wed Nov 30 15:13:39 2022 +0000
+++ b/textproc/py-html-sanitizer/Makefile Wed Nov 30 16:43:32 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2022/11/09 13:14:17 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2022/11/30 16:43:32 adam Exp $
-DISTNAME= html-sanitizer-1.6.4
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+DISTNAME= html_sanitizer-1.9.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= textproc converters python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/html-sanitizer/}
@@ -12,9 +11,11 @@
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
-DEPENDS+= ${PYPKGPREFIX}-lxml>=3.6.1:../../textproc/py-lxml
+DEPENDS+= ${PYPKGPREFIX}-lxml>=4.6.5:../../textproc/py-lxml
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 049e2395785b -r 654cc3a95841 textproc/py-html-sanitizer/distinfo
--- a/textproc/py-html-sanitizer/distinfo Wed Nov 30 15:13:39 2022 +0000
+++ b/textproc/py-html-sanitizer/distinfo Wed Nov 30 16:43:32 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:23:04 nia Exp $
+$NetBSD: distinfo,v 1.8 2022/11/30 16:43:32 adam Exp $
-BLAKE2s (html-sanitizer-1.6.4.tar.gz) = 783ec3f49962ec986777049d2bea3c5826e24ab5adb023b53ef386411810d3ad
-SHA512 (html-sanitizer-1.6.4.tar.gz) = dcfd310e93c1b5c752c26921e648bbf53e554df37dd9cf905268508de9efd02ce67ce00f5cbd986d193822382d4e91db54df44d50afbd53f60f308fb6763af6f
-Size (html-sanitizer-1.6.4.tar.gz) = 13884 bytes
+BLAKE2s (html_sanitizer-1.9.3.tar.gz) = 8bd5a2fe7257f3ecd506445a55464132dc857b10863c2c3de3ae8c00ddb5fa75
+SHA512 (html_sanitizer-1.9.3.tar.gz) = 14b6edf607dfd68934d3ea7075cedd31b37f27f72404e749a71cc3ec2b46bd01a18abbe2830faa4729793f777950be6d585684b0d604f801abb1f6a479ca1303
+Size (html_sanitizer-1.9.3.tar.gz) = 16401 bytes
Home |
Main Index |
Thread Index |
Old Index