From 44c079a6289b2f1d2b1bdeb55167b49f24c65779625833fa2ec4963ec01d34eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 Mar 2019 19:05:41 +0000 Subject: [PATCH 1/2] - 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 --- 1.10.1.tar.gz | 3 +++ Beaker-1.9.0.tar.gz | 3 --- python-Beaker.changes | 14 ++++++++++++++ python-Beaker.spec | 40 +++++++++++++++++++++------------------- 4 files changed, 38 insertions(+), 22 deletions(-) create mode 100644 1.10.1.tar.gz delete mode 100644 Beaker-1.9.0.tar.gz diff --git a/1.10.1.tar.gz b/1.10.1.tar.gz new file mode 100644 index 0000000..1f56d1b --- /dev/null +++ b/1.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce07f15e1ed50fc38bed51039f94e859d696bc05c42dbf384078b12658e891ec +size 87654 diff --git a/Beaker-1.9.0.tar.gz b/Beaker-1.9.0.tar.gz deleted file mode 100644 index f3e45c3..0000000 --- a/Beaker-1.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:317d0f9a3618364a4ce447d227b698bd7cdcad57301326ce8013d200abd695bf -size 39817 diff --git a/python-Beaker.changes b/python-Beaker.changes index d375d81..40bc020 100644 --- a/python-Beaker.changes +++ b/python-Beaker.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Mar 1 09:08:58 UTC 2019 - Tomáš Chvátal + +- 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. + ------------------------------------------------------------------- Thu Sep 7 16:55:30 UTC 2017 - toddrme2178@gmail.com diff --git a/python-Beaker.spec b/python-Beaker.spec index 229f699..af253ef 100644 --- a/python-Beaker.spec +++ b/python-Beaker.spec @@ -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 From 1bf1ac4a8215cc635ba35f43058499d996afd442c670d3d27410ed0691e921a2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 1 Apr 2019 13:50:10 +0000 Subject: [PATCH 2/2] Accepting request 690383 from home:mcepl:branches:devel:languages:python - Ignore test_database tests to avoid gh#bbangert/beaker#172 OBS-URL: https://build.opensuse.org/request/show/690383 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=37 --- python-Beaker.changes | 5 +++++ python-Beaker.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-Beaker.changes b/python-Beaker.changes index 40bc020..da77c17 100644 --- a/python-Beaker.changes +++ b/python-Beaker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 1 13:36:58 UTC 2019 - Matej Cepl + +- Ignore test_database tests to avoid gh#bbangert/beaker#172 + ------------------------------------------------------------------- Fri Mar 1 09:08:58 UTC 2019 - Tomáš Chvátal diff --git a/python-Beaker.spec b/python-Beaker.spec index af253ef..dbe6f1b 100644 --- a/python-Beaker.spec +++ b/python-Beaker.spec @@ -107,7 +107,10 @@ rm tests/test_cachemanager.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} +# gh#bbangert/beaker#172 +%python_expand nosetests-%{$python_bin_suffix} -v -I 'test_database' tests +} %files %{python_files} %license LICENSE