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..da77c17 100644 --- a/python-Beaker.changes +++ b/python-Beaker.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +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 + +- 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..dbe6f1b 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,15 @@ Features include: %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} +# gh#bbangert/beaker#172 +%python_expand nosetests-%{$python_bin_suffix} -v -I 'test_database' tests +} %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