forked from pool/python-bottle
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
This commit is contained in:
parent
749e2dcaeb
commit
89d08b6ed0
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:787c61b6cc02b9c229bf2663011fac53dd8fc197f7f8ad2eeede29d888d7887e
|
||||
size 74229
|
3
bottle-0.12.23.tar.gz
Normal file
3
bottle-0.12.23.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:683de3aa399fb26e87b274dbcf70b1a651385d459131716387abdc3792e04167
|
||||
size 73965
|
@ -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()
|
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 3 20:24:55 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
- 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 <benoit.monin@gmx.fr>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user