Accepting request 486169 from devel:languages:python:singlespec

- update to 0.12.1
- use python3-Sphinx for build

- update for singlespec
- update to 0.12.1
  * deprecate werkzeug.script
  * Use `inspect.getfullargspec` internally when available as
    `inspect.getargspec` is gone in 3.6
  * Added support for status code 451 and 423
  * Improved the build error suggestions.  In particular only if
    someone stringifies the error will the suggestions be calculated.
  * Added support for uWSGI's caching backend.
  * Fix a bug where iterating over a `FileStorage` would result in an infinite
    loop.
  * Datastructures now inherit from the relevant baseclasses from the
    `collections` module in the stdlib. See #794.
  * Add support for recognizing NetBSD, OpenBSD, FreeBSD, DragonFlyBSD platforms
    in the user agent string.
  * Recognize SeaMonkey browser name and version correctly
  * Recognize Baiduspider, and bingbot user agents
  * If `LocalProxy`'s wrapped object is a function, refer to it with __wrapped__
    attribute.
  * The defaults of ``generate_password_hash`` have been changed to more secure
    ones, see pull request ``#753``.
  * Add support for encoding in options header parsing, see pull request
    ``#933``.
  * ``test.Client`` now properly handles Location headers with relative URLs, see
    pull request ``#879``.
  * When `HTTPException` is raised, it now prints the description, for easier
    debugging.

OBS-URL: https://build.opensuse.org/request/show/486169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Werkzeug?expand=0&rev=24
This commit is contained in:
Jan Matejek 2017-04-06 15:05:56 +00:00 committed by Git OBS Bridge
parent cea97ae4ab
commit 12ae1efe13
7 changed files with 96 additions and 36 deletions

View File

@ -19,28 +19,29 @@ Fixes #810
werkzeug/serving.py | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/werkzeug/serving.py b/werkzeug/serving.py
index 15b6cd7..778df2d 100644
--- a/werkzeug/serving.py
+++ b/werkzeug/serving.py
@@ -41,6 +41,7 @@
Index: Werkzeug-0.12.1/werkzeug/serving.py
===================================================================
--- Werkzeug-0.12.1.orig/werkzeug/serving.py
+++ Werkzeug-0.12.1/werkzeug/serving.py
@@ -41,6 +41,7 @@ import os
import socket
import sys
import signal
+import threading
try:
import ssl
@@ -524,11 +525,29 @@
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):
if not can_fork:
raise ValueError('Your platform does not support forking.')
BaseWSGIServer.__init__(self, host, port, app, handler,
passthrough_errors, ssl_context, fd)
passthrough_errors, ssl_context, fd)
self.max_children = processes
+ if frequency:

View File

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

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

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 4 15:47:05 UTC 2017 - jmatejek@suse.com
- update to 0.12.1
- use python3-Sphinx for build
-------------------------------------------------------------------
Thu Sep 15 23:08:05 UTC 2016 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-Werkzeug-doc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,23 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Werkzeug-doc
Version: 0.11.11
Version: 0.12.1
Release: 0
Url: http://werkzeug.pocoo.org/
Summary: Documentation for python3-Werkzeug
Summary: Documentation for python-Werkzeug
License: BSD-3-Clause
Group: Documentation/Other
Source: https://files.pythonhosted.org/packages/source/W/Werkzeug/Werkzeug-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Sphinx
BuildRequires: python-Werkzeug = %{version}
BuildRequires: python-setuptools
BuildRequires: python3-Sphinx
BuildRequires: python3-Werkzeug = %{version}
BuildRequires: python3-setuptools
BuildArch: noarch
Requires: python-Werkzeug = %{version}
Provides: %{python_module Werkzeug-doc = %{version}}
%description
Documentation and examples for python3-Werkzeug
Documentation and examples for python-Werkzeug
%prep
%setup -q -n Werkzeug-%{version}

View File

@ -1,3 +1,52 @@
-------------------------------------------------------------------
Tue Apr 4 15:26:59 UTC 2017 - jmatejek@suse.com
- update for singlespec
- update to 0.12.1
* deprecate werkzeug.script
* Use `inspect.getfullargspec` internally when available as
`inspect.getargspec` is gone in 3.6
* Added support for status code 451 and 423
* Improved the build error suggestions. In particular only if
someone stringifies the error will the suggestions be calculated.
* Added support for uWSGI's caching backend.
* Fix a bug where iterating over a `FileStorage` would result in an infinite
loop.
* Datastructures now inherit from the relevant baseclasses from the
`collections` module in the stdlib. See #794.
* Add support for recognizing NetBSD, OpenBSD, FreeBSD, DragonFlyBSD platforms
in the user agent string.
* Recognize SeaMonkey browser name and version correctly
* Recognize Baiduspider, and bingbot user agents
* If `LocalProxy`'s wrapped object is a function, refer to it with __wrapped__
attribute.
* The defaults of ``generate_password_hash`` have been changed to more secure
ones, see pull request ``#753``.
* Add support for encoding in options header parsing, see pull request
``#933``.
* ``test.Client`` now properly handles Location headers with relative URLs, see
pull request ``#879``.
* When `HTTPException` is raised, it now prints the description, for easier
debugging.
* Werkzeug's dict-like datastructures now have ``view``-methods under Python 2,
see pull request ``#968``.
* Fix a bug in ``MultiPartParser`` when no ``stream_factory`` was provided
during initialization, see pull request ``#973``.
* Disable autocorrect and spellchecker in the debugger middleware's Python
prompt, see pull request ``#994``.
* Don't redirect to slash route when method doesn't match, see pull request
``#907``.
* Fix a bug when using ``SharedDataMiddleware`` with frozen packages, see pull
request ``#959``.
* `Range` header parsing function fixed for invalid values ``#974``.
* Add support for byte Range Requests, see pull request ``#978``.
* Use modern cryptographic defaults in the dev servers ``#1004``.
* the post() method of the test client now accept file object through the data
parameter.
* Color run_simple's terminal output based on HTTP codes ``#1013``.
* Fix self-XSS in debugger console, see ``#1031``.
* Fix IPython 5.x shell support, see ``#1033``.
-------------------------------------------------------------------
Thu Nov 17 13:02:10 UTC 2016 - rjschwei@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-Werkzeug
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,27 +16,30 @@
#
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Werkzeug
Version: 0.11.11
Version: 0.12.1
Release: 0
Url: http://werkzeug.pocoo.org/
Summary: The Swiss Army knife of Python web development
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://werkzeug.pocoo.org/
Source: https://files.pythonhosted.org/packages/source/W/Werkzeug/Werkzeug-%{version}.tar.gz
# PATCH-FIX-UPSTREAM 0001_create_a_thread_to_reap_death_process.patch bsc#954591
Patch0: 0001_create_a_thread_to_reap_death_process.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-pytest
BuildRequires: python-setuptools
Provides: python-werkzeug = %{version}
Obsoletes: python-werkzeug < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
Recommends: python-watchdog
Recommends: python-termcolor
%ifpython2
Provides: %{oldpython}-werkzeug = %{version}
Obsoletes: %{oldpython}-werkzeug < %{version}
%endif
%python_subpackages
%description
Werkzeug started as simple collection of various utilities for WSGI
@ -60,15 +63,15 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik
%patch0 -p1
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
python setup.py test
%python_exec setup.py test
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS LICENSE CHANGES
%{python_sitelib}/*