From 89d08b6ed04aa430e08eb857c6d5eeb94db5de82b8a5927658ff9366057dc151 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 4 Aug 2022 04:23:28 +0000 Subject: [PATCH] Accepting request 992636 from home:benoit_monin:branches:devel:languages:python - update to version 0.12.23: bugfix release - drop fix_cookie_test.patch: fixed upstream - run the tests with unittest OBS-URL: https://build.opensuse.org/request/show/992636 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=39 --- bottle-0.12.21.tar.gz | 3 --- bottle-0.12.23.tar.gz | 3 +++ fix_cookie_test.patch | 11 ----------- python-bottle.changes | 17 +++++++++++++++++ python-bottle.spec | 7 ++----- 5 files changed, 22 insertions(+), 19 deletions(-) delete mode 100644 bottle-0.12.21.tar.gz create mode 100644 bottle-0.12.23.tar.gz delete mode 100644 fix_cookie_test.patch diff --git a/bottle-0.12.21.tar.gz b/bottle-0.12.21.tar.gz deleted file mode 100644 index 3bdc867..0000000 --- a/bottle-0.12.21.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:787c61b6cc02b9c229bf2663011fac53dd8fc197f7f8ad2eeede29d888d7887e -size 74229 diff --git a/bottle-0.12.23.tar.gz b/bottle-0.12.23.tar.gz new file mode 100644 index 0000000..01595a6 --- /dev/null +++ b/bottle-0.12.23.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:683de3aa399fb26e87b274dbcf70b1a651385d459131716387abdc3792e04167 +size 73965 diff --git a/fix_cookie_test.patch b/fix_cookie_test.patch deleted file mode 100644 index 8f617cb..0000000 --- a/fix_cookie_test.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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() diff --git a/python-bottle.changes b/python-bottle.changes index df4a696..636e342 100644 --- a/python-bottle.changes +++ b/python-bottle.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Aug 3 20:24:55 UTC 2022 - Benoît Monin + +- update to version 0.12.23: bugfix release + * fix: Include keyword-only-args in getarcspec() polyfill +- additional changes from version 0.12.22: + * fix: Jinja2 and mako test path issues + * getargspec is gone in python 3.11: so use getfullargspec on all + 3.x versions instead + * fix: view decorator does not forward default values if route + result is None + * fix: Make tests runnable with both unittest and pytest + * fix: Cookie test falsely reports a failure for some python + versions +- drop fix_cookie_test.patch: fixed upstream +- run the tests with unittest + ------------------------------------------------------------------- Thu May 26 20:41:56 UTC 2022 - Benoît Monin diff --git a/python-bottle.spec b/python-bottle.spec index 1624f12..c9eb7bb 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -18,15 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-bottle -Version: 0.12.21 +Version: 0.12.23 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 -# partial import of upstream commit 8342490 -Patch0: fix_cookie_test.patch BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -56,7 +54,6 @@ This subpackage contains the PDF documentation for %{name}. %prep %setup -q -n bottle-%{version} -%autopatch -p1 cp %{SOURCE1} . @@ -68,7 +65,7 @@ cp %{SOURCE1} . %python_clone -a %{buildroot}%{_bindir}/bottle.py %check -%python_exec test/testall.py +%pyunittest -v %post %python_install_alternative bottle.py