Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-diskcache for
openSUSE:Factory checked in at 2023-09-04 22:54:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-diskcache (Old)
and /work/SRC/openSUSE:Factory/.python-diskcache.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-diskcache"
Mon Sep 4 22:54:05 2023 rev:11 rq:1108927 version:5.6.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-diskcache/python-diskcache.changes
2023-04-26 17:25:29.353667983 +0200
+++
/work/SRC/openSUSE:Factory/.python-diskcache.new.1766/python-diskcache.changes
2023-09-04 22:55:04.670939578 +0200
@@ -1,0 +2,6 @@
+Mon Sep 4 15:58:51 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 5.6.3:
+ * Fix peek when value is so large that a file is used
+
+-------------------------------------------------------------------
Old:
----
diskcache-5.6.1.tar.gz
New:
----
diskcache-5.6.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-diskcache.spec ++++++
--- /var/tmp/diff_new_pack.M8QOka/_old 2023-09-04 22:55:05.630973514 +0200
+++ /var/tmp/diff_new_pack.M8QOka/_new 2023-09-04 22:55:05.634973655 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-diskcache
-Version: 5.6.1
+Version: 5.6.3
Release: 0
Summary: Disk and file backed cache
License: Apache-2.0
++++++ diskcache-5.6.1.tar.gz -> diskcache-5.6.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-diskcache-5.6.1/.github/workflows/release.yml
new/python-diskcache-5.6.3/.github/workflows/release.yml
--- old/python-diskcache-5.6.1/.github/workflows/release.yml 2023-04-18
07:47:22.000000000 +0200
+++ new/python-diskcache-5.6.3/.github/workflows/release.yml 2023-08-31
08:10:27.000000000 +0200
@@ -9,35 +9,22 @@
upload:
runs-on: ubuntu-latest
+ permissions:
+ id-token: write
steps:
- uses: actions/checkout@v3
- - name: Install libmemcached-dev
- run: |
- sudo apt-get update
- sudo apt-get install libmemcached-dev
-
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- - name: Install dependencies
- run: |
- pip install --upgrade pip
- pip install -r requirements-dev.txt
-
- - name: Create source dist
- run: python setup.py sdist
-
- - name: Create wheel dist
- run: python setup.py bdist_wheel
-
- - name: Upload with twine
- env:
- TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
- TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- run: |
- ls -l dist/*
- twine upload dist/*
+ - name: Install build
+ run: pip install build
+
+ - name: Create build
+ run: python -m build
+
+ - name: Publish package distributions to PyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-diskcache-5.6.1/diskcache/__init__.py
new/python-diskcache-5.6.3/diskcache/__init__.py
--- old/python-diskcache-5.6.1/diskcache/__init__.py 2023-04-18
07:47:22.000000000 +0200
+++ new/python-diskcache-5.6.3/diskcache/__init__.py 2023-08-31
08:10:27.000000000 +0200
@@ -61,8 +61,8 @@
pass
__title__ = 'diskcache'
-__version__ = '5.6.1'
-__build__ = 0x050601
+__version__ = '5.6.3'
+__build__ = 0x050603
__author__ = 'Grant Jenks'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2016-2023 Grant Jenks'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-diskcache-5.6.1/diskcache/core.py
new/python-diskcache-5.6.3/diskcache/core.py
--- old/python-diskcache-5.6.1/diskcache/core.py 2023-04-18
07:47:22.000000000 +0200
+++ new/python-diskcache-5.6.3/diskcache/core.py 2023-08-31
08:10:27.000000000 +0200
@@ -1703,9 +1703,6 @@
except IOError:
# Key was deleted before we could retrieve result.
continue
- finally:
- if name is not None:
- self._disk.remove(name)
break
if expire_time and tag:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-diskcache-5.6.1/tests/test_deque.py
new/python-diskcache-5.6.3/tests/test_deque.py
--- old/python-diskcache-5.6.1/tests/test_deque.py 2023-04-18
07:47:22.000000000 +0200
+++ new/python-diskcache-5.6.3/tests/test_deque.py 2023-08-31
08:10:27.000000000 +0200
@@ -302,3 +302,13 @@
with mock.patch.object(deque, '_cache', cache):
deque.rotate(-1)
+
+
+def test_peek(deque):
+ value = b'x' * 100_000
+ deque.append(value)
+ assert len(deque) == 1
+ assert deque.peek() == value
+ assert len(deque) == 1
+ assert deque.peek() == value
+ assert len(deque) == 1