summaryrefslogtreecommitdiff
path: root/www/py-werkzeug
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2022-08-05 11:44:30 +0000
committeradam <adam@pkgsrc.org>2022-08-05 11:44:30 +0000
commit25db89ff25dff05a859ddc0af0f80fa4184670fc (patch)
treea87afb362c92fbc201f0ed08fb435c9b5fc2e831 /www/py-werkzeug
parent9fa8e65e547e7eff8362994359d9532af63f58c0 (diff)
downloadpkgsrc-25db89ff25dff05a859ddc0af0f80fa4184670fc.tar.gz
py-werkzeug: updated to 2.2.1
Version 2.2.1 ------------- - Fix router so that ``/path/`` will match a rule ``/path`` if strict slashes mode is disabled for the rule. - Fix router so that partial part matches are not allowed i.e. ``/2df`` does not match ``/<int>``. - Fix router static part weighting, so that simpler routes are matched before more complex ones. - Restore ``ValidationError`` to be importable from ``werkzeug.routing``. Version 2.2.0 ------------- - Deprecated ``get_script_name``, ``get_query_string``, ``peek_path_info``, ``pop_path_info``, and ``extract_path_info``. - Remove previously deprecated code. - Add MarkupSafe as a dependency and use it to escape values when rendering HTML. - Added the ``werkzeug.debug.preserve_context`` mechanism for restoring context-local data for a request when running code in the debug console. - Fix compatibility with Python 3.11 by ensuring that ``end_lineno`` and ``end_col_offset`` are present on AST nodes. - Add a new faster matching router based on a state machine. - Names within options headers are always converted to lowercase. This matches :rfc:`6266` that the case is not relevant. - ``AnyConverter`` validates the value passed for it when building URLs. - The debugger shows enhanced error locations in tracebacks in Python 3.11. - Added Sans-IO ``is_resource_modified`` and ``parse_cookie`` functions based on WSGI versions. - Added Sans-IO ``get_content_length`` function. - Don't assume a mimetype for test responses. - Type checking ``FileStorage`` accepts ``os.PathLike``.
Diffstat (limited to 'www/py-werkzeug')
-rw-r--r--www/py-werkzeug/Makefile5
-rw-r--r--www/py-werkzeug/Makefile.common4
-rw-r--r--www/py-werkzeug/PLIST26
-rw-r--r--www/py-werkzeug/distinfo8
4 files changed, 30 insertions, 13 deletions
diff --git a/www/py-werkzeug/Makefile b/www/py-werkzeug/Makefile
index 23eb4a7cc08..828d85f9a1c 100644
--- a/www/py-werkzeug/Makefile
+++ b/www/py-werkzeug/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2022/04/29 13:36:19 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2022/08/05 11:44:30 adam Exp $
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -6,6 +6,7 @@ COMMENT= Python WSGI Utility Library
PYTHON_VERSIONS_INCOMPATIBLE= 27
+DEPENDS+= ${PYPKGPREFIX}-markupsafe>=2.1.1:../../textproc/py-markupsafe
# optional
#DEPENDS+= ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
#DEPENDS+= ${PYPKGPREFIX}-greenlet-[0-9]*:../../devel/py-greenlet
@@ -34,8 +35,6 @@ post-install:
TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
-# as of 2.1.2
-# 18 failed, 804 passed, 8 errors
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
diff --git a/www/py-werkzeug/Makefile.common b/www/py-werkzeug/Makefile.common
index 595ba72e71b..455db621eab 100644
--- a/www/py-werkzeug/Makefile.common
+++ b/www/py-werkzeug/Makefile.common
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.28 2022/04/29 13:36:19 wiz Exp $
+# $NetBSD: Makefile.common,v 1.29 2022/08/05 11:44:30 adam Exp $
#
# used by www/py-werkzeug/Makefile
# used by www/py-werkzeug-docs/Makefile
-DISTNAME= Werkzeug-2.1.2
+DISTNAME= Werkzeug-2.2.1
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=W/Werkzeug/}
diff --git a/www/py-werkzeug/PLIST b/www/py-werkzeug/PLIST
index a132fb4fd64..21d6007a040 100644
--- a/www/py-werkzeug/PLIST
+++ b/www/py-werkzeug/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2022/04/29 13:36:19 wiz Exp $
+@comment $NetBSD: PLIST,v 1.12 2022/08/05 11:44:30 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -69,12 +69,30 @@ ${PYSITELIB}/werkzeug/middleware/shared_data.py
${PYSITELIB}/werkzeug/middleware/shared_data.pyc
${PYSITELIB}/werkzeug/middleware/shared_data.pyo
${PYSITELIB}/werkzeug/py.typed
-${PYSITELIB}/werkzeug/routing.py
-${PYSITELIB}/werkzeug/routing.pyc
-${PYSITELIB}/werkzeug/routing.pyo
+${PYSITELIB}/werkzeug/routing/__init__.py
+${PYSITELIB}/werkzeug/routing/__init__.pyc
+${PYSITELIB}/werkzeug/routing/__init__.pyo
+${PYSITELIB}/werkzeug/routing/converters.py
+${PYSITELIB}/werkzeug/routing/converters.pyc
+${PYSITELIB}/werkzeug/routing/converters.pyo
+${PYSITELIB}/werkzeug/routing/exceptions.py
+${PYSITELIB}/werkzeug/routing/exceptions.pyc
+${PYSITELIB}/werkzeug/routing/exceptions.pyo
+${PYSITELIB}/werkzeug/routing/map.py
+${PYSITELIB}/werkzeug/routing/map.pyc
+${PYSITELIB}/werkzeug/routing/map.pyo
+${PYSITELIB}/werkzeug/routing/matcher.py
+${PYSITELIB}/werkzeug/routing/matcher.pyc
+${PYSITELIB}/werkzeug/routing/matcher.pyo
+${PYSITELIB}/werkzeug/routing/rules.py
+${PYSITELIB}/werkzeug/routing/rules.pyc
+${PYSITELIB}/werkzeug/routing/rules.pyo
${PYSITELIB}/werkzeug/sansio/__init__.py
${PYSITELIB}/werkzeug/sansio/__init__.pyc
${PYSITELIB}/werkzeug/sansio/__init__.pyo
+${PYSITELIB}/werkzeug/sansio/http.py
+${PYSITELIB}/werkzeug/sansio/http.pyc
+${PYSITELIB}/werkzeug/sansio/http.pyo
${PYSITELIB}/werkzeug/sansio/multipart.py
${PYSITELIB}/werkzeug/sansio/multipart.pyc
${PYSITELIB}/werkzeug/sansio/multipart.pyo
diff --git a/www/py-werkzeug/distinfo b/www/py-werkzeug/distinfo
index 6d3c050e65e..996dbad5a9a 100644
--- a/www/py-werkzeug/distinfo
+++ b/www/py-werkzeug/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.28 2022/04/29 13:36:19 wiz Exp $
+$NetBSD: distinfo,v 1.29 2022/08/05 11:44:30 adam Exp $
-BLAKE2s (Werkzeug-2.1.2.tar.gz) = 4ce382b58eb0eaa390db010a310317675cbd50f75ec8d05b88ce2fab4b0c1701
-SHA512 (Werkzeug-2.1.2.tar.gz) = 83c8f930c1166c2228ad4cdacfb150e39f6e4476960fb24ab44d6ee65eca34bfc211c9d45e895e031f0c387fbe4d5c6cae1d3d0fd6b5671aaace50306b9593ed
-Size (Werkzeug-2.1.2.tar.gz) = 835169 bytes
+BLAKE2s (Werkzeug-2.2.1.tar.gz) = 08bdad489a21cfbd6648858939742df308974628ad9d6bc497900a645cb2adac
+SHA512 (Werkzeug-2.2.1.tar.gz) = b5e483b036c08a49cd594ef255069fe4941e0ce9dfe7b43e140687655cb3bfe03b645e471f2f847bfd4f699925e1e0383b468865ac4fe81be5ed6ccf17f9921f
+Size (Werkzeug-2.2.1.tar.gz) = 838993 bytes