Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-cachelib for openSUSE:Factory checked in at 2023-02-08 17:20:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cachelib (Old) and /work/SRC/openSUSE:Factory/.python-cachelib.new.4462 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cachelib" Wed Feb 8 17:20:48 2023 rev:3 rq:1063823 version:0.10.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cachelib/python-cachelib.changes 2022-08-23 14:30:40.875742358 +0200 +++ /work/SRC/openSUSE:Factory/.python-cachelib.new.4462/python-cachelib.changes 2023-02-08 17:21:14.130220708 +0100 @@ -1,0 +2,11 @@ +Tue Feb 7 14:29:01 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Update to 0.10.2: + - Fix logging pollution due to DynamoDB logging handler + - Improve error message when FileSystemCache methods are called + with non-str keys. + - Added DynamoDb as a cache backend +- Add skip-failing-tests.patch to skip failing tests requiring + network access (gh#pallets-eco/cachelib#228). + +------------------------------------------------------------------- Old: ---- cachelib-0.9.0.tar.gz New: ---- cachelib-0.10.2.tar.gz skip-failing-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cachelib.spec ++++++ --- /var/tmp/diff_new_pack.kpBnSv/_old 2023-02-08 17:21:14.646223241 +0100 +++ /var/tmp/diff_new_pack.kpBnSv/_new 2023-02-08 17:21:14.650223261 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-cachelib # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,33 +16,45 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cachelib -Version: 0.9.0 +Version: 0.10.2 Release: 0 Summary: A collection of cache libraries in the same API interface License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pallets-eco/cachelib Source: https://files.pythonhosted.org/packages/source/c/cachelib/cachelib-%{version}.tar.gz +# PATCH-FIX-UPSTREAM skip-failing-tests.patch gh#pallets-eco/cachelib#228 mc...@suse.com +# skip failing tests +Patch0: skip-failing-tests.patch BuildRequires: %{python_module pylibmc} -BuildRequires: %{python_module pytest-xprocess} BuildRequires: %{python_module redis} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: memcached BuildRequires: python-rpm-macros BuildRequires: redis Recommends: python-pylibmc Recommends: python-redis BuildArch: noarch +# SECTION test +BuildRequires: %{python_module boto3} +BuildRequires: %{python_module pluggy} +BuildRequires: %{python_module pylibmc} +BuildRequires: %{python_module pyparsing} +BuildRequires: %{python_module pytest-xprocess} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module redis} +BuildRequires: %{python_module urllib3} +BuildRequires: memcached +# /SECTION %python_subpackages %description A collection of cache libraries in the same API interface. %prep -%setup -q -n cachelib-%{version} +%autosetup -p1 -n cachelib-%{version} %build %python_build @@ -52,14 +64,21 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# set up working directory +export BASETEMP=$(mktemp -d -t cachelib_test.XXXXXX) +trap "rm -rf ${BASETEMP}" EXIT # Allow finding memcached export PATH="%{_sbindir}/:$PATH" -%{_sbindir}/redis-server & -%pytest -rs +PYTEST_ADDOPTS="--capture=tee-sys --tb=short --basetemp=${BASETEMP}" +PYTEST_ADDOPTS="$PYTEST_ADDOPTS --ignore=tests/test_redis_cache.py" +PYTEST_ADDOPTS="$PYTEST_ADDOPTS --ignore=tests/test_memcached_cache.py" +export PYTEST_ADDOPTS +%pytest -rs -k "not network" %files %{python_files} %license LICENSE.rst %doc README.rst -%{python_sitelib}/*cachelib*/ +%{python_sitelib}/cachelib +%{python_sitelib}/cachelib-%{version}*-info %changelog ++++++ cachelib-0.9.0.tar.gz -> cachelib-0.10.2.tar.gz ++++++ ++++ 1776 lines of diff (skipped) ++++++ skip-failing-tests.patch ++++++ --- setup.cfg | 3 +++ tests/test_dynamodb_cache.py | 1 + tests/test_interface_uniformity.py | 1 + tests/test_redis_cache.py | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) --- a/setup.cfg +++ b/setup.cfg @@ -34,11 +34,14 @@ python_requires = >= 3.7 where = src [tool:pytest] +addopts = --strict-markers testpaths = tests filterwarnings = error default::DeprecationWarning:cachelib.uwsgi default::DeprecationWarning:cachelib.redis +markers = + network: mark a test which requires net access [coverage:run] branch = True --- a/tests/test_dynamodb_cache.py +++ b/tests/test_dynamodb_cache.py @@ -29,5 +29,6 @@ def cache_factory(request): request.cls.cache_factory = _factory +@pytest.mark.network class TestDynamoDbCache(CommonTests, ClearTests, HasTests): pass --- a/tests/test_interface_uniformity.py +++ b/tests/test_interface_uniformity.py @@ -19,6 +19,7 @@ def create_cache_list(request, tmpdir): request.cls.cache_list = [FileSystemCache(tmpdir), mc, rc, SimpleCache()] +@pytest.mark.network @pytest.mark.usefixtures("redis_server", "memcached_server") class TestInterfaceUniformity: def test_types_have_all_base_methods(self):