15
0
forked from pool/python-Beaker

Accepting request 1043858 from devel:languages:python

- Update to 1.12.0:
  * Enabled testing on Python 3.10 and 3.11
  * Fixed issue #122 - Session ignores deserializer json
  * Remove ID generation fallback for when the uuid module is not found
  * Port testing from nose to pytest
  * Fixed issue #180 - KeyError when loading deleted session 
- Remove Python 2 and Python 3 gubbins.
- Remove patch denose.patch, merged upstream.
- Add patch support-pymemcache.patch:
  * Also support pymemcache.
- Fiddle BuildRequires as appropiate.

OBS-URL: https://build.opensuse.org/request/show/1043858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Beaker?expand=0&rev=31
This commit is contained in:
2022-12-20 19:20:48 +00:00
committed by Git OBS Bridge
6 changed files with 50 additions and 1488 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5298f2d3be7b3ad8f299c9cc69b57907613412f397feb8c322896dbc857f5218
size 88597

3
1.12.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e88717be6e81a8668364825e0285bbd776d705182ef493934221a32b628d7f26
size 88745

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Dec 20 06:34:00 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.12.0:
* Enabled testing on Python 3.10 and 3.11
* Fixed issue #122 - Session ignores deserializer json
* Remove ID generation fallback for when the uuid module is not found
* Port testing from nose to pytest
* Fixed issue #180 - KeyError when loading deleted session
- Remove Python 2 and Python 3 gubbins.
- Remove patch denose.patch, merged upstream.
- Add patch support-pymemcache.patch:
* Also support pymemcache.
- Fiddle BuildRequires as appropiate.
-------------------------------------------------------------------
Wed Mar 16 08:44:59 UTC 2022 - pgajdos@suse.com

View File

@@ -16,19 +16,15 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without python2
Name: python-Beaker
Version: 1.11.0
Version: 1.12.0
Release: 0
Summary: A Session and Caching library with WSGI Middleware
License: BSD-3-Clause
URL: https://github.com/bbangert/beaker
Source: https://github.com/bbangert/beaker/archive/%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM denose.patch gh#bbangert/beaker#192 mcepl@suse.com
# Port tests to pytest
Patch0: denose.patch
# PATCH-FIX-OPENSUSE Support pymemcache
Patch0: support-pymemcache.patch
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module coverage}
@@ -44,27 +40,17 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: glibc-locale
BuildRequires: python-rpm-macros
Requires: python-dbm
Requires: python-pylibmc
Requires: python-setuptools
Recommends: python-SQLAlchemy
Recommends: python-cryptography
Recommends: python-pycrypto
Recommends: python-pycryptopp >= 0.5.12
Recommends: python-pymemcache
Recommends: python-pymongo
Recommends: python-python-memcached
Recommends: python-redis
BuildArch: noarch
%if %{with python2}
BuildRequires: python-funcsigs
%endif
%ifpython2
Requires: python-funcsigs
Provides: %{oldpython}-beaker = %{version}
Obsoletes: %{oldpython}-beaker < %{version}
%endif
%if %{python_version_nodots} >= 30
Requires: python-dbm
%endif
%python_subpackages
%description
@@ -99,8 +85,7 @@ Features include:
* Fine-grained toggling of back-ends, keys, and expiration per Cache object
%prep
%setup -q -n beaker-%{version}
%autopatch -p1
%autosetup -p1 -n beaker-%{version}
%build
%python_build

26
support-pymemcache.patch Normal file
View File

@@ -0,0 +1,26 @@
Index: beaker-1.12.0/beaker/ext/memcached.py
===================================================================
--- beaker-1.12.0.orig/beaker/ext/memcached.py
+++ beaker-1.12.0/beaker/ext/memcached.py
@@ -39,8 +39,12 @@ def _load_client(name='auto'):
import bmemcached
return bmemcached
+ def _pymemcache():
+ from pymemcache.client.base import Client
+ return Client
+
def _auto():
- for _client in (_pylibmc, _cmemcache, _memcache, _bmemcached):
+ for _client in (_pymemcache, _pylibmc, _cmemcache, _memcache, _bmemcached):
try:
return _client()
except ImportError:
@@ -52,6 +56,7 @@ def _load_client(name='auto'):
clients = {
'pylibmc': _pylibmc,
+ 'pymemcache': _pymemcache,
'cmemcache': _cmemcache,
'memcache': _memcache,
'bmemcached': _bmemcached,