forked from pool/python-Beaker
- Update to 1.10.1:
* Fix issue with Redis namespace manager TTL
* Fix for SameSite cookie option not being set in some cases
* Fix for memcached tests on Python3
* Redis namespace manager now supports providing a TTL for session entries that had a ``timeout`` provided.
This will remove the need to manually clear expired sessions from the redis storage.
* ``nsscrypto`` backend is now properly identified as providing AES support.
* When a crypto backend doesn't support AES it will no longer crash if the ``encrypt_key`` is ``None``.
* Session cookies will now provide support for ``SameSite`` through the ``samesite`` option.
By default this will be ``Lax``, but can be set to ``Strict`` or ``None`` to disable it.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=36
This commit is contained in:
committed by
Git OBS Bridge
parent
6e4f1663a7
commit
44c079a628
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Beaker
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,26 +12,20 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
# Test files not in source archive
|
||||
%bcond_with test
|
||||
Name: python-Beaker
|
||||
Version: 1.9.0
|
||||
Version: 1.10.1
|
||||
Release: 0
|
||||
Summary: A Session and Caching library with WSGI Middleware
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/bbangert/beaker
|
||||
Source: https://files.pythonhosted.org/packages/source/B/Beaker/Beaker-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
URL: https://github.com/bbangert/beaker
|
||||
Source: https://github.com/bbangert/beaker/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module SQLAlchemy}
|
||||
BuildRequires: %{python_module WebTest}
|
||||
BuildRequires: %{python_module coverage}
|
||||
@@ -40,20 +34,26 @@ BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pycryptodome}
|
||||
BuildRequires: %{python_module pylibmc}
|
||||
BuildRequires: %{python_module python-memcached}
|
||||
BuildRequires: %{python_module pymongo}
|
||||
BuildRequires: %{python_module python-memcached}
|
||||
BuildRequires: %{python_module redis}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-funcsigs
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-dbm
|
||||
Requires: python-pylibmc
|
||||
Requires: python-python-memcached
|
||||
Recommends: python-SQLAlchemy
|
||||
Recommends: python-cryptography
|
||||
Recommends: python-pycryptopp >= 0.5.12
|
||||
Recommends: python-pycrypto
|
||||
Recommends: python-pycryptopp >= 0.5.12
|
||||
Recommends: python-pymongo
|
||||
Recommends: python-redis
|
||||
BuildArch: noarch
|
||||
%ifpython3
|
||||
Requires: python3-dbm
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: python-funcsigs
|
||||
Provides: %{oldpython}-beaker = %{version}
|
||||
@@ -93,7 +93,11 @@ Features include:
|
||||
* Fine-grained toggling of back-ends, keys, and expiration per Cache object
|
||||
|
||||
%prep
|
||||
%setup -q -n Beaker-%{version}
|
||||
%setup -q -n beaker-%{version}
|
||||
# needs mongo and redis running
|
||||
rm -r tests/test_managers
|
||||
rm tests/test_memcached.py
|
||||
rm tests/test_cachemanager.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -102,14 +106,12 @@ Features include:
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%doc README.rst CHANGELOG
|
||||
%{python_sitelib}/beaker/
|
||||
%{python_sitelib}/Beaker-%{version}-py*.egg-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user