Hello community,

here is the log from the commit of package python-bottle for openSUSE:Factory 
checked in at 2020-11-17 21:21:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bottle (Old)
 and      /work/SRC/openSUSE:Factory/.python-bottle.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-bottle"

Tue Nov 17 21:21:15 2020 rev:18 rq:848504 version:0.12.19

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bottle/python-bottle.changes      
2020-04-15 20:08:27.830185500 +0200
+++ /work/SRC/openSUSE:Factory/.python-bottle.new.24930/python-bottle.changes   
2020-11-17 21:21:22.457093955 +0100
@@ -1,0 +2,13 @@
+Fri Nov 13 17:49:59 UTC 2020 - BenoĆ®t Monin <[email protected]>
+
+- update to version 0.12.19: bugfix release
+  * Do not split query strings on `;` anymore.
+  * Fix the Allow: header value in 405 "Method not allowed." 
+    response.
+- add fix_cookie_test.patch: imported from upstream master branch
+- update the documentation pdf
+- remove the separate LICENSE file: now packaged in release
+- drop removing the executable bit from egg-info files: fixed
+- run the tests during build
+
+-------------------------------------------------------------------

Old:
----
  LICENSE
  bottle-0.12.18.tar.gz

New:
----
  bottle-0.12.19.tar.gz
  fix_cookie_test.patch

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

Other differences:
------------------
++++++ python-bottle.spec ++++++
--- /var/tmp/diff_new_pack.4OvbZu/_old  2020-11-17 21:21:23.469095483 +0100
+++ /var/tmp/diff_new_pack.4OvbZu/_new  2020-11-17 21:21:23.473095489 +0100
@@ -18,14 +18,15 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-bottle
-Version:        0.12.18
+Version:        0.12.19
 Release:        0
 Summary:        WSGI framework for small web applications
 License:        MIT
 URL:            https://bottlepy.org/
 Source:         
https://files.pythonhosted.org/packages/source/b/bottle/bottle-%{version}.tar.gz
 Source1:        http://bottlepy.org/docs/0.12/bottle-docs.pdf
-Source2:        
https://raw.githubusercontent.com/bottlepy/bottle/release-0.12/LICENSE
+# partial import of upstream commit 8342490
+Patch0:         fix_cookie_test.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
@@ -55,10 +56,9 @@
 
 %prep
 %setup -q -n bottle-%{version}
-cp %{SOURCE1} %{SOURCE2} .
+%autopatch -p1
 
-# remove executable bit, those are not scripts
-chmod -x bottle.egg-info/*
+cp %{SOURCE1} .
 
 %build
 %python_build
@@ -67,6 +67,9 @@
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/bottle.py
 
+%check
+%python_exec test/testall.py
+
 %post
 %python_install_alternative bottle.py
 

++++++ bottle-0.12.18.tar.gz -> bottle-0.12.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/LICENSE new/bottle-0.12.19/LICENSE
--- old/bottle-0.12.18/LICENSE  1970-01-01 01:00:00.000000000 +0100
+++ new/bottle-0.12.19/LICENSE  2020-11-11 19:34:48.000000000 +0100
@@ -0,0 +1,19 @@
+Copyright (c) 2012, Marcel Hellkamp.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/PKG-INFO new/bottle-0.12.19/PKG-INFO
--- old/bottle-0.12.18/PKG-INFO 2019-12-01 16:39:57.000000000 +0100
+++ new/bottle-0.12.19/PKG-INFO 2020-11-11 19:50:24.091900000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: bottle
-Version: 0.12.18
+Version: 0.12.19
 Summary: Fast and simple WSGI-framework for small web-applications.
 Home-page: http://bottlepy.org/
 Author: Marcel Hellkamp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/bottle.egg-info/PKG-INFO 
new/bottle-0.12.19/bottle.egg-info/PKG-INFO
--- old/bottle-0.12.18/bottle.egg-info/PKG-INFO 2019-12-01 16:39:57.000000000 
+0100
+++ new/bottle-0.12.19/bottle.egg-info/PKG-INFO 2020-11-11 19:50:24.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: bottle
-Version: 0.12.18
+Version: 0.12.19
 Summary: Fast and simple WSGI-framework for small web-applications.
 Home-page: http://bottlepy.org/
 Author: Marcel Hellkamp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/bottle.egg-info/SOURCES.txt 
new/bottle-0.12.19/bottle.egg-info/SOURCES.txt
--- old/bottle-0.12.18/bottle.egg-info/SOURCES.txt      2019-12-01 
16:39:57.000000000 +0100
+++ new/bottle-0.12.19/bottle.egg-info/SOURCES.txt      2020-11-11 
19:50:24.000000000 +0100
@@ -1,3 +1,4 @@
+LICENSE
 MANIFEST.in
 README.rst
 bottle.py
@@ -8,6 +9,7 @@
 bottle.egg-info/top_level.txt
 test/servertest.py
 test/test_auth.py
+test/test_cli.py
 test/test_config.py
 test/test_configdict.py
 test/test_contextlocals.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/bottle.py new/bottle-0.12.19/bottle.py
--- old/bottle-0.12.18/bottle.py        2019-12-01 16:35:08.000000000 +0100
+++ new/bottle-0.12.19/bottle.py        2020-11-11 19:43:12.000000000 +0100
@@ -16,7 +16,7 @@
 from __future__ import with_statement
 
 __author__ = 'Marcel Hellkamp'
-__version__ = '0.12.18'
+__version__ = '0.12.19'
 __license__ = 'MIT'
 
 # The gevent server adapter needs to patch some modules before they are 
imported
@@ -440,7 +440,7 @@
         nocheck = set(methods)
         for method in set(self.static) - nocheck:
             if path in self.static[method]:
-                allowed.add(verb)
+                allowed.add(method)
         for method in set(self.dyna_regexes) - allowed - nocheck:
             for combined, rules in self.dyna_regexes[method]:
                 match = combined(path)
@@ -2585,7 +2585,7 @@
 
 def _parse_qsl(qs):
     r = []
-    for pair in qs.replace(';','&').split('&'):
+    for pair in qs.split('&'):
         if not pair: continue
         nv = pair.split('=', 1)
         if len(nv) != 2: nv.append('')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bottle-0.12.18/test/test_cli.py 
new/bottle-0.12.19/test/test_cli.py
--- old/bottle-0.12.18/test/test_cli.py 1970-01-01 01:00:00.000000000 +0100
+++ new/bottle-0.12.19/test/test_cli.py 2015-08-03 22:57:07.000000000 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+import bottle, unittest
+
+class TestRoutes(unittest.TestCase):
+
+       def setUp(self):
+               # mock bottle.run
+               self.orig_run = bottle.run
+               bottle.run = self.fake_run
+               self.run_calls = []
+
+       def fake_run(self, *a, **ka):
+               self.run_calls.append((a, ka))
+
+       def tearDown(self):
+               bottle.run = self.orig_run
+

++++++ bottle-docs.pdf ++++++
(binary differes)

++++++ fix_cookie_test.patch ++++++
--- bottle-0.12.19.orig/test/test_environ.py
+++ bottle-0.12.19/test/test_environ.py
@@ -624,7 +624,7 @@ class TestResponse(unittest.TestCase):
         response.delete_cookie('name')
         cookies = [value for name, value in response.headerlist
                    if name.title() == 'Set-Cookie']
-        self.assertTrue('name=;' in cookies[0])
+        self.assertTrue('Max-Age=-1' in cookies[0])
 
     def test_set_header(self):
         response = BaseResponse()
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to