pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-bleach py-bleach: update to 2.1.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/4e3e72c6ad75
branches: trunk
changeset: 369803:4e3e72c6ad75
user: adam <adam%pkgsrc.org@localhost>
date: Thu Oct 05 12:58:48 2017 +0000
description:
py-bleach: update to 2.1.1
Version 2.1.1:
**Bug fixes**
* Fix ``setup.py`` opening files when ``LANG=``.
Version 2.1:
**Security fixes**
* Convert control characters (backspace particularly) to "?" preventing
malicious copy-and-paste situations.
See `<https://github.com/mozilla/bleach/issues/298>`_ for more details.
This affects all previous versions of Bleach. Check the comments on that
issue for ways to alleviate the issue if you can't upgrade to Bleach 2.1.
**Backwards incompatible changes**
* Redid versioning. ``bleach.VERSION`` is no longer available. Use the string
version at ``bleach.__version__`` and parse it with
``pkg_resources.parse_version``.
* clean, linkify: linkify and clean should only accept text types
* clean, linkify: accept only unicode or utf-8-encoded str
**Bug fixes**
* ``bleach.clean()`` no longer unescapes entities including ones that are missing
a ``;`` at the end which can happen in urls and other places.
* linkify: fix http links inside of mailto links
* clarify security policy in docs
* fix dependency specification for html5lib 1.0b8, 1.0b9, and 1.0b10
* add Bleach vs. html5lib comparison to README
* fix KeyError exceptions on tags without href attr
* add test website and scripts to test ``bleach.clean()`` output in browser
diffstat:
www/py-bleach/Makefile | 10 ++++++----
www/py-bleach/PLIST | 8 +-------
www/py-bleach/distinfo | 10 +++++-----
3 files changed, 12 insertions(+), 16 deletions(-)
diffs (68 lines):
diff -r cb3c7f574faf -r 4e3e72c6ad75 www/py-bleach/Makefile
--- a/www/py-bleach/Makefile Thu Oct 05 12:51:59 2017 +0000
+++ b/www/py-bleach/Makefile Thu Oct 05 12:58:48 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2017/04/23 04:09:15 markd Exp $
+# $NetBSD: Makefile,v 1.7 2017/10/05 12:58:48 adam Exp $
-DISTNAME= bleach-2.0.0
+DISTNAME= bleach-2.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES= www
+CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/bleach/}
MAINTAINER= ryoon%NetBSD.org@localhost
@@ -10,8 +10,10 @@
COMMENT= Easy whitelist-based HTML-sanitizing tool
LICENSE= apache-2.0
+DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.99999999:../../textproc/py-html5lib
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.99999999:../../textproc/py-html5lib
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.0:../../devel/py-test
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner>=2.0:../../devel/py-test-runner
USE_LANGUAGES= # none
diff -r cb3c7f574faf -r 4e3e72c6ad75 www/py-bleach/PLIST
--- a/www/py-bleach/PLIST Thu Oct 05 12:51:59 2017 +0000
+++ b/www/py-bleach/PLIST Thu Oct 05 12:58:48 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2017/04/23 04:09:15 markd Exp $
+@comment $NetBSD: PLIST,v 1.6 2017/10/05 12:58:48 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -11,9 +11,6 @@
${PYSITELIB}/bleach/callbacks.py
${PYSITELIB}/bleach/callbacks.pyc
${PYSITELIB}/bleach/callbacks.pyo
-${PYSITELIB}/bleach/encoding.py
-${PYSITELIB}/bleach/encoding.pyc
-${PYSITELIB}/bleach/encoding.pyo
${PYSITELIB}/bleach/linkifier.py
${PYSITELIB}/bleach/linkifier.pyc
${PYSITELIB}/bleach/linkifier.pyo
@@ -23,6 +20,3 @@
${PYSITELIB}/bleach/utils.py
${PYSITELIB}/bleach/utils.pyc
${PYSITELIB}/bleach/utils.pyo
-${PYSITELIB}/bleach/version.py
-${PYSITELIB}/bleach/version.pyc
-${PYSITELIB}/bleach/version.pyo
diff -r cb3c7f574faf -r 4e3e72c6ad75 www/py-bleach/distinfo
--- a/www/py-bleach/distinfo Thu Oct 05 12:51:59 2017 +0000
+++ b/www/py-bleach/distinfo Thu Oct 05 12:58:48 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2017/04/23 04:09:15 markd Exp $
+$NetBSD: distinfo,v 1.6 2017/10/05 12:58:48 adam Exp $
-SHA1 (bleach-2.0.0.tar.gz) = 86345b980bdf4261a49de4c98075599709daf96f
-RMD160 (bleach-2.0.0.tar.gz) = 19650ecd5a2f6135488ca0aedf29ee06055e08cd
-SHA512 (bleach-2.0.0.tar.gz) = 78237c72224fc8facd0c247671c0e2deb66dc8dc46c446cfa7e8b83cce5ca99a52fec320ef59ae0ece47c54a48120de16e4393e269db9c74542c8165eeb96d2e
-Size (bleach-2.0.0.tar.gz) = 46083 bytes
+SHA1 (bleach-2.1.1.tar.gz) = ab534deaea22c159104ecef44f25e2b7efff8b93
+RMD160 (bleach-2.1.1.tar.gz) = 0a278ad553942e0b5dc05bdc299f4405fe830bde
+SHA512 (bleach-2.1.1.tar.gz) = dc8ef7b678966bfebddb2d27c78abf50e71f2d90c5807cf788a08b852a085a4d990368da5dfb5f61a49e0f2f1e7d9ac73c2b6967fdacb55663ae2c339016d4c2
+Size (bleach-2.1.1.tar.gz) = 58491 bytes
Home |
Main Index |
Thread Index |
Old Index