- update to 0.15.4

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Werkzeug?expand=0&rev=36
This commit is contained in:
Ondřej Súkup 2019-05-27 08:50:31 +00:00 committed by Git OBS Bridge
parent 8086eb5337
commit 855dabbfc5
7 changed files with 48 additions and 43 deletions

View File

@ -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,

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c
size 1185546

3
Werkzeug-0.15.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0b915f0815982fb2a09161cb8f31708052d0951c3ba433ccc5e1aa276507ca6
size 925334

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 27 08:43:40 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.15.4
-------------------------------------------------------------------
Wed Jan 3 23:07:03 UTC 2018 - arun@gmx.de

View File

@ -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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 27 08:43:55 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- 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

View File

@ -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