Hello community,

here is the log from the commit of package python-Werkzeug for openSUSE:Factory 
checked in at 2019-09-23 12:16:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Werkzeug (Old)
 and      /work/SRC/openSUSE:Factory/.python-Werkzeug.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Werkzeug"

Mon Sep 23 12:16:53 2019 rev:26 rq:730725 version:0.15.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Werkzeug/python-Werkzeug.changes  
2019-08-15 12:28:50.126523813 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Werkzeug.new.7948/python-Werkzeug.changes    
    2019-09-23 12:16:54.721811646 +0200
@@ -1,0 +2,8 @@
+Fri Sep 13 13:06:32 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.15.6:
+  * Work around a bug in pip that caused the reloader to fail on Windows when
+    the script was an entry point.
+  * ProxyFix trusts the X-Forwarded-Proto header by default. :issue:`1630`
+
+-------------------------------------------------------------------

Old:
----
  Werkzeug-0.15.5.tar.gz

New:
----
  Werkzeug-0.15.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Werkzeug.spec ++++++
--- /var/tmp/diff_new_pack.qeu6Ts/_old  2019-09-23 12:16:55.129811580 +0200
+++ /var/tmp/diff_new_pack.qeu6Ts/_new  2019-09-23 12:16:55.129811580 +0200
@@ -19,7 +19,7 @@
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Werkzeug
-Version:        0.15.5
+Version:        0.15.6
 Release:        0
 Summary:        The Swiss Army knife of Python web development
 License:        BSD-3-Clause
@@ -28,21 +28,20 @@
 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
-%if 0%{?suse_version} < 1500
-BuildRequires:  python
-%endif
 BuildRequires:  %{python_module hypothesis}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildArch:      noarch
 Recommends:     python-termcolor
 Recommends:     python-watchdog
 Obsoletes:      python-Werkzeug-doc < %{version}
 Provides:       python-Werkzeug-doc = %{version}
-
+BuildArch:      noarch
+%if 0%{?suse_version} < 1500
+BuildRequires:  python
+%endif
 %ifpython2
 Provides:       %{oldpython}-werkzeug = %{version}
 Obsoletes:      %{oldpython}-werkzeug < %{version}

++++++ Werkzeug-0.15.5.tar.gz -> Werkzeug-0.15.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/CHANGES.rst 
new/Werkzeug-0.15.6/CHANGES.rst
--- old/Werkzeug-0.15.5/CHANGES.rst     2019-07-17 17:27:49.000000000 +0200
+++ new/Werkzeug-0.15.6/CHANGES.rst     2019-09-04 21:57:26.000000000 +0200
@@ -1,5 +1,22 @@
 .. currentmodule:: werkzeug
 
+Version 0.15.6
+--------------
+
+Released 2019-09-04
+
+-   Work around a bug in pip that caused the reloader to fail on
+    Windows when the script was an entry point. This fixes the issue
+    with Flask's `flask run` command failing with "No module named
+    Scripts\flask". :issue:`1614`
+-   ``ProxyFix`` trusts the ``X-Forwarded-Proto`` header by default.
+    :issue:`1630`
+-   The deprecated ``num_proxies`` argument to ``ProxyFix`` sets
+    ``x_for``, ``x_proto``, and ``x_host`` to match 0.14 behavior. This
+    is intended to make intermediate upgrades less disruptive, but the
+    argument will still be removed in 1.0. :issue:`1630`
+
+
 Version 0.15.5
 --------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/PKG-INFO new/Werkzeug-0.15.6/PKG-INFO
--- old/Werkzeug-0.15.5/PKG-INFO        2019-07-17 17:29:49.000000000 +0200
+++ new/Werkzeug-0.15.6/PKG-INFO        2019-09-04 22:08:14.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Werkzeug
-Version: 0.15.5
+Version: 0.15.6
 Summary: The comprehensive WSGI web application library.
 Home-page: https://palletsprojects.com/p/werkzeug/
 Author: Armin Ronacher
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/src/Werkzeug.egg-info/PKG-INFO 
new/Werkzeug-0.15.6/src/Werkzeug.egg-info/PKG-INFO
--- old/Werkzeug-0.15.5/src/Werkzeug.egg-info/PKG-INFO  2019-07-17 
17:29:49.000000000 +0200
+++ new/Werkzeug-0.15.6/src/Werkzeug.egg-info/PKG-INFO  2019-09-04 
22:08:14.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Werkzeug
-Version: 0.15.5
+Version: 0.15.6
 Summary: The comprehensive WSGI web application library.
 Home-page: https://palletsprojects.com/p/werkzeug/
 Author: Armin Ronacher
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/src/werkzeug/__init__.py 
new/Werkzeug-0.15.6/src/werkzeug/__init__.py
--- old/Werkzeug-0.15.5/src/werkzeug/__init__.py        2019-07-17 
17:27:49.000000000 +0200
+++ new/Werkzeug-0.15.6/src/werkzeug/__init__.py        2019-09-04 
21:57:26.000000000 +0200
@@ -17,7 +17,7 @@
 import sys
 from types import ModuleType
 
-__version__ = "0.15.5"
+__version__ = "0.15.6"
 
 # This import magic raises concerns quite often which is why the implementation
 # and motivation is explained here in detail now.
@@ -66,8 +66,6 @@
         "redirect",
         "cached_property",
         "import_string",
-        "dump_cookie",
-        "parse_cookie",
         "unescape",
         "format_string",
         "find_modules",
@@ -146,6 +144,8 @@
         "unquote_header_value",
         "quote_header_value",
         "HTTP_STATUS_CODES",
+        "dump_cookie",
+        "parse_cookie",
     ],
     "werkzeug.wrappers": [
         "BaseResponse",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/src/werkzeug/_reloader.py 
new/Werkzeug-0.15.6/src/werkzeug/_reloader.py
--- old/Werkzeug-0.15.5/src/werkzeug/_reloader.py       2019-07-15 
23:35:43.000000000 +0200
+++ new/Werkzeug-0.15.6/src/werkzeug/_reloader.py       2019-09-04 
21:57:22.000000000 +0200
@@ -71,8 +71,14 @@
     __main__ = sys.modules["__main__"]
 
     # The value of __package__ indicates how Python was called. It may
-    # not exist if a setuptools script is installed as an egg.
-    if getattr(__main__, "__package__", None) is None:
+    # not exist if a setuptools script is installed as an egg. It may be
+    # set incorrectly for entry points created with pip on Windows.
+    if getattr(__main__, "__package__", None) is None or (
+        os.name == "nt"
+        and __main__.__package__ == ""
+        and not os.path.exists(py_script)
+        and os.path.exists(py_script + ".exe")
+    ):
         # Executed a file, like "python app.py".
         py_script = os.path.abspath(py_script)
 
@@ -83,7 +89,7 @@
                 py_script += ".exe"
 
             if (
-                os.path.splitext(rv[0])[1] == ".exe"
+                os.path.splitext(sys.executable)[1] == ".exe"
                 and os.path.splitext(py_script)[1] == ".exe"
             ):
                 rv.pop(0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/src/werkzeug/middleware/proxy_fix.py 
new/Werkzeug-0.15.6/src/werkzeug/middleware/proxy_fix.py
--- old/Werkzeug-0.15.5/src/werkzeug/middleware/proxy_fix.py    2019-07-15 
23:36:34.000000000 +0200
+++ new/Werkzeug-0.15.6/src/werkzeug/middleware/proxy_fix.py    2019-09-04 
21:57:24.000000000 +0200
@@ -77,7 +77,7 @@
     """
 
     def __init__(
-        self, app, num_proxies=None, x_for=1, x_proto=0, x_host=0, x_port=0, 
x_prefix=0
+        self, app, num_proxies=None, x_for=1, x_proto=1, x_host=0, x_port=0, 
x_prefix=0
     ):
         self.app = app
         self.x_for = x_for
@@ -112,11 +112,15 @@
         if value is not None:
             warnings.warn(
                 "'num_proxies' is deprecated as of version 0.15 and"
-                " will be removed in version 1.0. Use 'x_for' instead.",
+                " will be removed in version 1.0. Use"
+                " 'x_for={value}, x_proto={value}, x_host={value}'"
+                " instead.".format(value=value),
                 DeprecationWarning,
                 stacklevel=2,
             )
             self.x_for = value
+            self.x_proto = value
+            self.x_host = value
 
     def get_remote_addr(self, forwarded_for):
         """Get the real ``remote_addr`` by looking backwards ``x_for``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Werkzeug-0.15.5/tests/middleware/test_proxy_fix.py 
new/Werkzeug-0.15.6/tests/middleware/test_proxy_fix.py
--- old/Werkzeug-0.15.5/tests/middleware/test_proxy_fix.py      2019-07-15 
23:36:34.000000000 +0200
+++ new/Werkzeug-0.15.6/tests/middleware/test_proxy_fix.py      2019-09-04 
21:57:24.000000000 +0200
@@ -18,8 +18,9 @@
                 "REMOTE_ADDR": "192.168.0.2",
                 "HTTP_HOST": "spam",
                 "HTTP_X_FORWARDED_FOR": "192.168.0.1",
+                "HTTP_X_FORWARDED_PROTO": "https",
             },
-            "http://spam/";,
+            "https://spam/";,
             id="for",
         ),
         pytest.param(
@@ -178,6 +179,8 @@
 def test_proxy_fix_deprecations():
     app = pytest.deprecated_call(ProxyFix, None, 2)
     assert app.x_for == 2
+    assert app.x_proto == 2
+    assert app.x_host == 2
 
     with pytest.deprecated_call():
         assert app.num_proxies == 2


Reply via email to