diff --git a/preserve-any-existing-PYTHONPATH-in-tests.patch b/preserve-any-existing-PYTHONPATH-in-tests.patch index f70e6fcc9b724caa4d1575c4641ec8f2e61fa7b7..cb4def1642e74809d794909e6337143836051ab8 100644 --- a/preserve-any-existing-PYTHONPATH-in-tests.patch +++ b/preserve-any-existing-PYTHONPATH-in-tests.patch @@ -1,34 +1,32 @@ -From b88042cfb32866a00d39b678bb224eb55ecf53c1 Mon Sep 17 00:00:00 2001 -From: Lumir Balhar -Date: Tue, 22 Jun 2021 22:10:17 +0200 +From 668b7c6df40795c27ee9d7069a23afaf3a861144 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= +Date: Thu, 7 Nov 2024 14:31:40 +0100 Subject: [PATCH] Preserve any existing PYTHONPATH in tests - + --- - tests/conftest.py | 10 ++++++++-- - 1 file changed, 8 insertions(+), 2 deletions(-) - + tests/conftest.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + diff --git a/tests/conftest.py b/tests/conftest.py -index 4ad1ff23..7200d286 100644 +index f05fd84..a29950e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py -@@ -118,9 +118,15 @@ def dev_server(xprocess, request, tmp_path): - class Starter(ProcessStarter): - args = [sys.executable, run_path, name, json.dumps(kwargs)] - # Extend the existing env, otherwise Windows and CI fails. -- # Modules will be imported from tmp_path for the reloader. -+ # Modules will be imported from tmp_path for the reloader -+ # but any existing PYTHONPATH is preserved. - # Unbuffered output so the logs update immediately. -- env = {**os.environ, "PYTHONPATH": str(tmp_path), "PYTHONUNBUFFERED": "1"} -+ original_python_path = os.getenv("PYTHONPATH") -+ if original_python_path: -+ new_python_path = os.pathsep.join((original_python_path, str(tmp_path))) -+ else: -+ new_python_path = str(tmp_path) -+ env = {**os.environ, "PYTHONPATH": new_python_path, "PYTHONUNBUFFERED": "1"} - - @cached_property - def pattern(self): +@@ -99,6 +99,7 @@ class DevServerClient: + self._log_write = open(log_path, "wb") + self._log_read = open(log_path, encoding="utf8", errors="surrogateescape") + tmp_dir = os.fspath(self._tmp_path) ++ pth_dir = os.pathsep.join((os.getenv("PYTHONPATH"), str(tmp_dir))) if os.getenv("PYTHONPATH") else tmp_dir + self._proc = subprocess.Popen( + [ + sys.executable, +@@ -106,7 +107,7 @@ class DevServerClient: + self._app_name, + json.dumps(self._server_kwargs), + ], +- env={**os.environ, "PYTHONUNBUFFERED": "1", "PYTHONPATH": tmp_dir}, ++ env={**os.environ, "PYTHONUNBUFFERED": "1", "PYTHONPATH": pth_dir}, + cwd=tmp_dir, + close_fds=True, + stdout=self._log_write, -- -2.31.1 - +2.47.0 diff --git a/python-werkzeug.spec b/python-werkzeug.spec index a5a6513bb12a092431e8349621acdc6fc6cc5904..aa82b5d03b462810b6964e6a68a1efa6b2eda71d 100644 --- a/python-werkzeug.spec +++ b/python-werkzeug.spec @@ -2,12 +2,13 @@ %global pypi_name werkzeug Name: python-werkzeug -Version: 3.0.6 +Version: 3.1.3 Release: 1 Summary: The comprehensive WSGI web application library. License: BSD-3-Clause URL: https://github.com/pallets/werkzeug Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz + Patch0: preserve-any-existing-PYTHONPATH-in-tests.patch BuildArch: noarch @@ -168,6 +169,13 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k 'not (test_serving)' %{_docdir}/* %changelog +* Thu Dec 05 2024 xu_ping <707078654@qq.com> - 3.1.3-1 +- Update package to version 3.1.3 + * Drop support for Python 3.8. + * Remove previously deprecated code. + * Add 421 MisdirectedRequest HTTP exception. + * Fix an issue that caused str(Request.headers) to always appear empty. + * Thu Oct 31 2024 Dongxing Wang - 3.0.6-1 - Update package to version 3.0.6 Fix how max_form_memory_size is applied when parsing large non-file fields. diff --git a/werkzeug-3.0.6.tar.gz b/werkzeug-3.0.6.tar.gz deleted file mode 100644 index 5013b259c42e0f9e9d5bfa59d8ecb6d1dd45f5b2..0000000000000000000000000000000000000000 Binary files a/werkzeug-3.0.6.tar.gz and /dev/null differ diff --git a/werkzeug-3.1.3.tar.gz b/werkzeug-3.1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..41d2be49431c2d335447d0a7e670848ce45dc099 Binary files /dev/null and b/werkzeug-3.1.3.tar.gz differ