public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-glanceclient] rawhide: Update to v4.14.0
@ 2026-11-26 9:28 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-11-26 9:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-glanceclient
Branch : rawhide
Commit : 98977218b39f6979472ad71a5c9e2dc9059f1bd2
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-11-26T10:28:11+01:00
Stats : +41/-54 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-glanceclient/c/98977218b39f6979472ad71a5c9e2dc9059f1bd2?branch=rawhide
Log:
Update to v4.14.0
---
diff --git a/.gitignore b/.gitignore
index 828f89a..1f09e95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,3 +49,6 @@
/python_glanceclient-4.12.0.tar.gz.asc
/python_glanceclient-4.13.0.tar.gz
/python_glanceclient-4.13.0.tar.gz.asc
+/0x7f0f63951535b4d12d3fa55dece58d3984d688d7.txt
+/python_glanceclient-4.14.0.tar.gz
+/python_glanceclient-4.14.0.tar.gz.asc
diff --git a/0001-fix-hashlib-ValueError-message-check-for-py3.15.patch b/0001-fix-hashlib-ValueError-message-check-for-py3.15.patch
index e0df9dd..dd1bcf0 100644
--- a/0001-fix-hashlib-ValueError-message-check-for-py3.15.patch
+++ b/0001-fix-hashlib-ValueError-message-check-for-py3.15.patch
@@ -1,52 +1,38 @@
-From 79b67274a73bc116ed0400b0b99faf01de19201c Mon Sep 17 00:00:00 2001
-From: Steve Traylen <steve.traylen@cern.ch>
-Date: Sun, 26 Apr 2026 16:49:34 +0200
+From e0063b88b172a43315bd64911ab9aae6ff3c853d Mon Sep 17 00:00:00 2001
+From: rpm-build <rpm-build>
+Date: Thu, 26 Nov 2026 10:22:53 +0100
Subject: [PATCH] fix hashlib ValueError message check for py3.15
-I realise python3.15 is is not supported yet but this allows tests
-to pass on 3.15a8.
-
-Python 3.15 changed the ValueError message raised by hashlib.new() for
-unknown algorithms from "unsupported hash type <name>" to "unsupported
-hash algorithm <name>",
-
-Replace the prefix check with a test for the algorithm name in
-the exception message
-
-Python change:
-
-https: //github.com/python/cpython/commit/6be49ee517258281357aa6846d2564bc5626b7ca
-Change-Id: I69b1b0fb2ac18c0a590b9d375b88030361251935
---
- glanceclient/tests/unit/v2/test_images.py | 8 ++++++--
- glanceclient/v2/images.py | 2 +-
- 2 files changed, 7 insertions(+), 3 deletions(-)
+ glanceclient/tests/unit/v2/test_images.py | 15 +++++++--------
+ glanceclient/v2/images.py | 2 +-
+ 2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/glanceclient/tests/unit/v2/test_images.py b/glanceclient/tests/unit/v2/test_images.py
-index 33626fd..c12b323 100644
+index 22d8a2d..d605ad4 100644
--- a/glanceclient/tests/unit/v2/test_images.py
+++ b/glanceclient/tests/unit/v2/test_images.py
-@@ -15,6 +15,7 @@
-
- import errno
- import hashlib
-+import sys
- import testtools
- from unittest import mock
-
-@@ -1188,7 +1189,10 @@ class TestController(testtools.TestCase):
- body = self.controller.data('badalgo-db27-11e1-a1eb-080027cbe205')
- self.fail('bad os_hash_algo did not raise an error.')
- except ValueError as e:
+@@ -1246,13 +1246,12 @@ class TestController(testtools.TestCase):
+ do_checksum=False)
+ body = ''.join([b for b in body])
+ self.assertEqual('BB', body)
+- try:
+- body = self.controller.data('badalgo-db27-11e1-a1eb-080027cbe205')
+- self.fail('bad os_hash_algo did not raise an error.')
+- except ValueError as e:
- msg = 'unsupported hash type not_an_algo'
-+ if sys.version_info >= (3, 15):
-+ msg = 'unsupported hash algorithm not_an_algo'
-+ else:
-+ msg = 'unsupported hash type not_an_algo'
- self.assertIn(msg, str(e))
-
+- self.assertIn(msg, str(e))
+-
++ self.assertRaisesRegex(
++ ValueError,
++ r'unsupported hash (type|algorithm) not_an_algo',
++ self.controller.data,
++ 'badalgo-db27-11e1-a1eb-080027cbe205'
++ )
def test_data_with_checksum(self):
-@@ -1207,7 +1211,7 @@ class TestController(testtools.TestCase):
+ for prefix in ['headeronly', 'chkonly', 'multihash']:
+ body = self.controller.data(prefix +
+@@ -1269,7 +1268,7 @@ class TestController(testtools.TestCase):
@ddt.data('headeronly', 'chkonly', 'multihash')
def test_data_with_checksum_but_no_md5_algo(self, prefix):
with mock.patch('hashlib.new', mock.MagicMock(
@@ -56,10 +42,10 @@ index 33626fd..c12b323 100644
'-dd57-11e1-af0f-02163e68b1d8',
allow_md5_fallback=True)
diff --git a/glanceclient/v2/images.py b/glanceclient/v2/images.py
-index 3c658fa..6cff610 100644
+index 04ba8b2..09d0fe8 100644
--- a/glanceclient/v2/images.py
+++ b/glanceclient/v2/images.py
-@@ -278,7 +278,7 @@ class Controller(object):
+@@ -280,7 +280,7 @@ class Controller(object):
meta_hash_value)
check_md5sum = False
except ValueError as ve:
@@ -69,5 +55,5 @@ index 3c658fa..6cff610 100644
check_md5sum = True
else:
--
-2.47.3
+2.56.1
diff --git a/python-glanceclient.spec b/python-glanceclient.spec
index 82a110f..cf0d764 100644
--- a/python-glanceclient.spec
+++ b/python-glanceclient.spec
@@ -1,5 +1,5 @@
%global sources_gpg 1
-%global sources_gpg_sign 0x30566c450e41d7c91e442dfb231f942f608ddeff
+%global sources_gpg_sign 0x7f0f63951535b4d12d3fa55dece58d3984d688d7
%global sname glanceclient
%global with_doc 1
@@ -12,7 +12,7 @@ glanceclient module), and a command-line script (glance). Each implements
Name: python-glanceclient
Epoch: 1
-Version: 4.13.0
+Version: 4.14.0
Release: %autorelease
Summary: Python API and CLI for OpenStack Glance
@@ -67,12 +67,10 @@ This package contains auto-generated documentation.
sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
-sed -i \
- -e "/^hacking[[:space:]]*[><=]/d" \
- -e "/^coverage[[:space:]]*[><=]/d" \
- -e "/^reno[[:space:]]*[><=]/d" \
- -e "/^tempest[[:space:]]*[><=]/d" \
- test-requirements.txt doc/requirements.txt
+%pyproject_patch_dependency hacking:ignore
+%pyproject_patch_dependency coverage:ignore
+%pyproject_patch_dependency reno:ignore
+%pyproject_patch_dependency tempest:ignore
%generate_buildrequires
diff --git a/sources b/sources
index 7699aae..70bccbc 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (0x30566c450e41d7c91e442dfb231f942f608ddeff.txt) = 8a8ec343aa8a03aef957efde28c50454ddb911382c912189783ba0f49cd1b6f15fbe2506d30a167468f944ea970fdefe8eec4d2be2c5683c37be000babfb802d
-SHA512 (python_glanceclient-4.13.0.tar.gz) = c49f60ba05ca2ba4e001ff3a8d9962db9336e20d35fa22bc29ce47f9375a10272a584c737d4edd2516dd49ed833cf1305c0e81029c0c8673073bf4ffc47ddf79
-SHA512 (python_glanceclient-4.13.0.tar.gz.asc) = 1216e82e8a1700d4893749f33cf7060fa68e96788e4c006b5659a23105632d915fa6c099a5d2b18daa3faf24d1d3d63ec0e36a665acaffa5a2dbc5e389330148
+SHA512 (0x7f0f63951535b4d12d3fa55dece58d3984d688d7.txt) = 087c7f4b600610ccfb6ab9427d8658c4c7d85b386352af0393bac0e3c1b89ed07aa0a0e728c246702a6d68d9fc50d2c32b177d1c42b614c5b7d0feffe97406cb
+SHA512 (python_glanceclient-4.14.0.tar.gz) = cac1deda51715d68cc24cfc1e9f365af063ebf0a28539dcfce54a2385c752cea1a2d03ad4af3526d137fdf00965fe4256c2a212776ebe2716873de84ca78100c
+SHA512 (python_glanceclient-4.14.0.tar.gz.asc) = 909ab55a67e6312205bbbb310dc5e8f49aa226a1b4477cacce66f7d357978c6995847d30131df767fcc1a2aec1ca29f39438852c08af2e3830f8f76d360960a4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 9:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 9:28 [rpms/python-glanceclient] rawhide: Update to v4.14.0 Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox