Accepting request 429842 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/429842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Werkzeug?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2016-09-27 11:44:40 +00:00 committed by Git OBS Bridge
commit 3fb5f90567
7 changed files with 178 additions and 23 deletions

View File

@ -29,9 +29,10 @@ index 15b6cd7..778df2d 100644
import signal
+import threading
from ._compat import PY2
try:
import ssl
@@ -522,11 +523,29 @@ class ForkingWSGIServer(ForkingMixIn, BaseWSGIServer):
@@ -524,11 +525,29 @@
multiprocess = True
def __init__(self, host, port, app, processes=40, handler=None,
@ -39,7 +40,7 @@ index 15b6cd7..778df2d 100644
+ passthrough_errors=False, ssl_context=None, fd=None,
+ frequency=5):
BaseWSGIServer.__init__(self, host, port, app, handler,
passthrough_errors, ssl_context, fd)
passthrough_errors, ssl_context, fd)
self.max_children = processes
+ if frequency:

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

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

View File

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

View File

@ -0,0 +1,53 @@
-------------------------------------------------------------------
Thu Sep 15 23:08:05 UTC 2016 - toddrme2178@gmail.com
- update to version 0.11.11:
* Fix JSONRequestMixin for Python3. See #731
* Fix broken string handling in test client when passing
integers. See #852
* Fix a bug in "parse_options_header" where an invalid content type
starting with comma or semi-colon would result in an invalid
return value, see issue "#995".
* Fix a bug in multidicts when passing empty lists as values, see
issue "#979".
* Fix a security issue that allows XSS on the Werkzeug debugger. See
"#1001".
- update to version 0.11.10:
* Fixed a bug that occurs when running on Python 2.6 and using a
broken locale. See pull request #912.
* Fixed a crash when running the debugger on Google App Engine. See
issue #925.
* Fixed an issue with multipart parsing that could cause memory
exhaustion.
- Update to 0.11.9
- Corrected an issue that caused the debugger not to use the
machine GUID on POSIX systems.
- Corrected an Unicode error on Python 3 for the debugger's
PIN usage.
- Corrected the timestamp verification in the pin debug code.
Without this fix the pin was remebered until too long.
- update to version 0.11.8:
* fixed a problem with the machine GUID detection code on OS X on
Python 3.
- changes from version 0.11.7:
* fixed a regression on Python 3 for the debugger.
- changes from version 0.11.6:
* werkzeug.serving: Still show the client address on bad requests.
* improved the PIN based protection for the debugger to make it
harder to brute force via trying cookies. Please keep in mind
that the debugger *is not intended for running on production
environments*
* increased the pin timeout to a week to make it less annoying for
people which should decrease the change that users disable the pin
check entirely.
* werkzeug.serving: Fix broken HTTP_HOST when path starts with
double slash.
- update to version 0.11.5:
* werkzeug.serving: Fix crash when attempting SSL connection to HTTP
server.
- update to version 0.11.4:
* Fixed werkzeug.serving not working from -m flag.
* Fixed incorrect weak etag handling.
- Rebase 0001_create_a_thread_to_reap_death_process.patch
- Split documentation into own subpackage to speed up build.

54
python-Werkzeug-doc.spec Normal file
View File

@ -0,0 +1,54 @@
#
# spec file for package python3-Werkzeug-doc
#
# Copyright (c) 2016 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: python-Werkzeug-doc
Version: 0.11.11
Release: 0
Url: http://werkzeug.pocoo.org/
Summary: Documentation for python3-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
BuildArch: noarch
Requires: python-Werkzeug = %{version}
%description
Documentation and examples for python3-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
# Not needed
%install
cd docs && make html && rm -rf _build/html/.buildinfo # Build HTML Documentation
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE
%doc docs/_build/html
%doc examples
%changelog

View File

@ -1,3 +1,61 @@
-------------------------------------------------------------------
Fri Sep 16 14:25:04 UTC 2016 - toddrme2178@gmail.com
- Fix download url.
-------------------------------------------------------------------
Thu Sep 15 23:08:05 UTC 2016 - toddrme2178@gmail.com
- update to version 0.11.11:
* Fix JSONRequestMixin for Python3. See #731
* Fix broken string handling in test client when passing
integers. See #852
* Fix a bug in "parse_options_header" where an invalid content type
starting with comma or semi-colon would result in an invalid
return value, see issue "#995".
* Fix a bug in multidicts when passing empty lists as values, see
issue "#979".
* Fix a security issue that allows XSS on the Werkzeug debugger. See
"#1001".
- update to version 0.11.10:
* Fixed a bug that occurs when running on Python 2.6 and using a
broken locale. See pull request #912.
* Fixed a crash when running the debugger on Google App Engine. See
issue #925.
* Fixed an issue with multipart parsing that could cause memory
exhaustion.
- Update to 0.11.9
- Corrected an issue that caused the debugger not to use the
machine GUID on POSIX systems.
- Corrected an Unicode error on Python 3 for the debugger's
PIN usage.
- Corrected the timestamp verification in the pin debug code.
Without this fix the pin was remebered until too long.
- update to version 0.11.8:
* fixed a problem with the machine GUID detection code on OS X on
Python 3.
- changes from version 0.11.7:
* fixed a regression on Python 3 for the debugger.
- changes from version 0.11.6:
* werkzeug.serving: Still show the client address on bad requests.
* improved the PIN based protection for the debugger to make it
harder to brute force via trying cookies. Please keep in mind
that the debugger *is not intended for running on production
environments*
* increased the pin timeout to a week to make it less annoying for
people which should decrease the change that users disable the pin
check entirely.
* werkzeug.serving: Fix broken HTTP_HOST when path starts with
double slash.
- update to version 0.11.5:
* werkzeug.serving: Fix crash when attempting SSL connection to HTTP
server.
- update to version 0.11.4:
* Fixed werkzeug.serving not working from -m flag.
* Fixed incorrect weak etag handling.
- Rebase 0001_create_a_thread_to_reap_death_process.patch
- Split documentation into own subpackage to speed up build.
-------------------------------------------------------------------
Mon Feb 8 13:01:58 UTC 2016 - aplanas@suse.com

View File

@ -17,19 +17,18 @@
Name: python-Werkzeug
Version: 0.11.3
Version: 0.11.11
Release: 0
Url: http://werkzeug.pocoo.org/
Summary: The Swiss Army knife of Python web development
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-%{version}.tar.gz
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-pytest
BuildRequires: python-setuptools
Provides: python-werkzeug = %{version}
Obsoletes: python-werkzeug < %{version}
@ -54,14 +53,6 @@ developer. It's most useful for end user applications which should work
on as many server environments as possible (such as blogs, wikis,
bulletin boards, etc.).
%package doc
Summary: Documentation for %{name}
Group: Documentation/Other
Requires: %{name} = %{version}
%description doc
Documentation and examples for %{name}.
%prep
%setup -q -n Werkzeug-%{version}
sed -i "s/\r//" LICENSE # Fix wrong EOL-encoding
@ -70,18 +61,16 @@ sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylik
%build
python setup.py build
cd docs && make html && rm -rf _build/html/.buildinfo # Build HTML Documentation
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE CHANGES
%{python_sitelib}/*
%files doc
%defattr(-,root,root,-)
%doc docs/_build/html examples
%changelog