diff --git a/0001_create_a_thread_to_reap_death_process.patch b/0001_create_a_thread_to_reap_death_process.patch index 51b0403..cd84620 100644 --- a/0001_create_a_thread_to_reap_death_process.patch +++ b/0001_create_a_thread_to_reap_death_process.patch @@ -19,29 +19,28 @@ Fixes #810 werkzeug/serving.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) -Index: Werkzeug-0.12.1/werkzeug/serving.py +Index: Werkzeug-0.15.4/src/werkzeug/serving.py =================================================================== ---- Werkzeug-0.12.1.orig/werkzeug/serving.py -+++ Werkzeug-0.12.1/werkzeug/serving.py -@@ -41,6 +41,7 @@ import os +--- Werkzeug-0.15.4.orig/src/werkzeug/serving.py ++++ Werkzeug-0.15.4/src/werkzeug/serving.py +@@ -41,6 +41,7 @@ import signal import socket import sys - import signal + +import threading - - - can_fork = hasattr(os, "fork") -@@ -562,13 +563,31 @@ class ForkingWSGIServer(ForkingMixIn, Ba - multiprocess = True - - def __init__(self, host, port, app, processes=40, handler=None, -- passthrough_errors=False, ssl_context=None, fd=None): -+ passthrough_errors=False, ssl_context=None, fd=None, -+ frequency=5): + import werkzeug + from ._compat import PY2 + from ._compat import reraise +@@ -775,6 +776,7 @@ class ForkingWSGIServer(ForkingMixIn, Ba + passthrough_errors=False, + ssl_context=None, + fd=None, ++ frequency=5, + ): if not can_fork: - raise ValueError('Your platform does not support forking.') - BaseWSGIServer.__init__(self, host, port, app, handler, - passthrough_errors, ssl_context, fd) + raise ValueError("Your platform does not support forking.") +@@ -783,6 +785,23 @@ class ForkingWSGIServer(ForkingMixIn, Ba + ) self.max_children = processes + if frequency: @@ -62,5 +61,5 @@ Index: Werkzeug-0.12.1/werkzeug/serving.py + self.setup_reap_children() + - def make_server(host=None, port=None, app=None, threaded=False, processes=1, - request_handler=None, passthrough_errors=False, + def make_server( + host=None, diff --git a/Werkzeug-0.14.1.tar.gz b/Werkzeug-0.14.1.tar.gz deleted file mode 100644 index 6b43dec..0000000 --- a/Werkzeug-0.14.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c -size 1185546 diff --git a/Werkzeug-0.15.4.tar.gz b/Werkzeug-0.15.4.tar.gz new file mode 100644 index 0000000..532be9c --- /dev/null +++ b/Werkzeug-0.15.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0b915f0815982fb2a09161cb8f31708052d0951c3ba433ccc5e1aa276507ca6 +size 925334 diff --git a/python-Werkzeug-doc.changes b/python-Werkzeug-doc.changes index 049e1a5..6b00e35 100644 --- a/python-Werkzeug-doc.changes +++ b/python-Werkzeug-doc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 27 08:43:40 UTC 2019 - Ondřej Súkup + +- update to 0.15.4 + ------------------------------------------------------------------- Wed Jan 3 23:07:03 UTC 2018 - arun@gmx.de diff --git a/python-Werkzeug-doc.spec b/python-Werkzeug-doc.spec index 8dbd11d..b87fac6 100644 --- a/python-Werkzeug-doc.spec +++ b/python-Werkzeug-doc.spec @@ -1,7 +1,7 @@ # # spec file for package python-Werkzeug-doc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Werkzeug-doc -Version: 0.14.1 +Version: 0.15.4 Release: 0 Summary: Documentation for python-Werkzeug License: BSD-3-Clause @@ -36,7 +36,6 @@ Documentation and examples for python-Werkzeug %prep %setup -q -n Werkzeug-%{version} -sed -i "s/\r//" LICENSE # Fix wrong EOL-encoding sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylike,plnt,coolmagic}.py # Fix non-executable scripts %build @@ -46,8 +45,8 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik cd docs && make html && rm -rf _build/html/.buildinfo # Build HTML Documentation %files -%license LICENSE -%doc AUTHORS README.rst CHANGES.rst +%license LICENSE.rst +%doc README.rst CHANGES.rst %doc docs/_build/html %doc examples diff --git a/python-Werkzeug.changes b/python-Werkzeug.changes index 4006bcf..ec257e0 100644 --- a/python-Werkzeug.changes +++ b/python-Werkzeug.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 27 08:43:55 UTC 2019 - Ondřej Súkup + +- update to 0.15.4 +- refreshed 0001_create_a_thread_to_reap_death_process.patch +- last stable update with long Changelog -> please see CHANGELOG.rst + ------------------------------------------------------------------- Thu May 10 15:44:58 UTC 2018 - toddrme2178@gmail.com diff --git a/python-Werkzeug.spec b/python-Werkzeug.spec index 273da9c..78321e8 100644 --- a/python-Werkzeug.spec +++ b/python-Werkzeug.spec @@ -1,7 +1,7 @@ # # spec file for package python-Werkzeug # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,14 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Werkzeug -Version: 0.14.1 +Version: 0.15.4 Release: 0 Summary: The Swiss Army knife of Python web development License: BSD-3-Clause @@ -32,15 +32,12 @@ BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2 BuildArch: noarch -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Recommends: python-termcolor Recommends: python-watchdog -%endif %ifpython2 -Requires: python2 Provides: %{oldpython}-werkzeug = %{version} Obsoletes: %{oldpython}-werkzeug < %{version} %endif @@ -63,7 +60,6 @@ bulletin boards, etc.). %prep %setup -q -n Werkzeug-%{version} -sed -i "s/\r//" LICENSE # Fix wrong EOL-encoding sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylike,plnt,coolmagic}.py # Fix non-executable scripts %patch0 -p1 @@ -72,17 +68,16 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export LANG=en_US.UTF-8 +export LANG=en_US.UTF-8 export PYTHONDONTWRITEBYTECODE=1 -export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -m pytest -} +%pytest %files %{python_files} -%license LICENSE -%doc AUTHORS CHANGES.rst +%license LICENSE.rst +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog