Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-keystonemiddleware for 
openSUSE:Factory checked in at 2026-08-09 21:35:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-keystonemiddleware (Old)
 and      /work/SRC/openSUSE:Factory/.python-keystonemiddleware.new.16738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-keystonemiddleware"

Sun Aug  9 21:35:17 2026 rev:23 rq:1370132 version:13.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-keystonemiddleware/python-keystonemiddleware.changes
      2026-03-10 17:59:35.303091450 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-keystonemiddleware.new.16738/python-keystonemiddleware.changes
   2026-08-09 21:37:43.135103564 +0200
@@ -1,0 +2,10 @@
+Sun Jun 14 15:37:28 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 13.0.0:
+  * Update master for stable/2026.1
+  * Imported Translations from Zanata
+  * Remove unused Makefile for doc
+  * Remove url tags from README
+- add 0001-Replace-deprecated-timeutils.set_time_override.patch
+
+-------------------------------------------------------------------

Old:
----
  keystonemiddleware-12.0.0.tar.gz

New:
----
  0001-Replace-deprecated-timeutils.set_time_override.patch
  keystonemiddleware-13.0.0.tar.gz

----------(New B)----------
  New:  * Remove url tags from README
- add 0001-Replace-deprecated-timeutils.set_time_override.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-keystonemiddleware.spec ++++++
--- /var/tmp/diff_new_pack.7NJkDy/_old  2026-08-09 21:37:43.615119908 +0200
+++ /var/tmp/diff_new_pack.7NJkDy/_new  2026-08-09 21:37:43.619120044 +0200
@@ -17,20 +17,22 @@
 
 
 Name:           python-keystonemiddleware
-Version:        12.0.0
+Version:        13.0.0
 Release:        0
 Summary:        Middleware for OpenStack Identity
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://docs.openstack.org/keystonemiddleware
 Source0:        
https://files.pythonhosted.org/packages/source/k/keystonemiddleware/keystonemiddleware-%{version}.tar.gz
+Patch1:         0001-Replace-deprecated-timeutils.set_time_override.patch
+BuildRequires:  %{python_module PyJWT >= 2.4.0}
 BuildRequires:  %{python_module WebOb >= 1.7.1}
 BuildRequires:  %{python_module WebTest}
 BuildRequires:  %{python_module cryptography}
 BuildRequires:  %{python_module fixtures}
 BuildRequires:  %{python_module keystoneauth1 >= 3.12.0}
 BuildRequires:  %{python_module keystoneclient >= 3.20.0}
-BuildRequires:  %{python_module oslo.cache >= 1.26.0}
+BuildRequires:  %{python_module oslo.cache >= 3.11.0}
 BuildRequires:  %{python_module oslo.config >= 5.2.0}
 BuildRequires:  %{python_module oslo.context >= 2.19.2}
 BuildRequires:  %{python_module oslo.i18n >= 3.15.3}
@@ -38,6 +40,7 @@
 BuildRequires:  %{python_module oslo.serialization >= 2.18.0}
 BuildRequires:  %{python_module oslo.utils >= 3.33.0}
 BuildRequires:  %{python_module oslotest}
+BuildRequires:  %{python_module pbr >= 6.1.1}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pycadf >= 1.1.0}
 BuildRequires:  %{python_module python-memcached}
@@ -49,10 +52,11 @@
 BuildRequires:  %{python_module testtools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  openstack-macros
+Requires:       python-PyJWT >= 2.4.0
 Requires:       python-WebOb >= 1.7.1
 Requires:       python-keystoneauth1 >= 3.12.0
 Requires:       python-keystoneclient >= 3.20.0
-Requires:       python-oslo.cache >= 1.26.0
+Requires:       python-oslo.cache >= 3.11.0
 Requires:       python-oslo.config >= 5.2.0
 Requires:       python-oslo.context >= 2.19.2
 Requires:       python-oslo.i18n >= 3.15.3

++++++ 0001-Replace-deprecated-timeutils.set_time_override.patch ++++++
>From 65bd80861795471674c6a2eb50baf30d26576205 Mon Sep 17 00:00:00 2001
From: Artem Goncharov <[email protected]>
Date: Wed, 1 Jul 2026 17:07:15 +0200
Subject: [PATCH] Replace deprecated `timeutils.set_time_override`

`timeutils.set_time_override` is deprecated causing the tests failures.
Rewrites TimeFixture to mock timeutils.utcnow + timeutils.utcnow_ts
directly via mock.patch.object

Change-Id: I284683d654a0e5bce344cd094be71f5a1844732d
Signed-off-by: Artem Goncharov <[email protected]>
---
 .../auth_token/test_auth_token_middleware.py  | 21 +++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git 
a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py 
b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
index 33e0912..6c20e7a 100644
--- a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
+++ b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
@@ -12,6 +12,7 @@
 # License for the specific language governing permissions and limitations
 # under the License.
 
+import calendar
 import datetime
 import os
 import time
@@ -136,8 +137,20 @@ class TimeFixture(fixtures.Fixture):
 
     def setUp(self):
         super(TimeFixture, self).setUp()
-        timeutils.set_time_override(self.new_time)
-        self.addCleanup(timeutils.clear_time_override)
+        patcher = mock.patch.object(timeutils, "utcnow", lambda: self.new_time)
+        patcher.start()
+        self.addCleanup(patcher.stop)
+        ts_patcher = mock.patch.object(
+            timeutils,
+            "utcnow_ts",
+            lambda microsecond=False: calendar.timegm(
+                self.new_time.timetuple()),
+        )
+        ts_patcher.start()
+        self.addCleanup(ts_patcher.stop)
+
+    def advance_time_seconds(self, seconds):
+        self.new_time += datetime.timedelta(seconds=seconds)
 
 
 class FakeApp(object):
@@ -606,11 +619,11 @@ class CommonAuthTokenMiddlewareTest(object):
         req.environ.update(extra_environ)
 
         now = datetime.datetime.now(datetime.timezone.utc)
-        self.useFixture(TimeFixture(now))
+        time_fixture = self.useFixture(TimeFixture(now))
         req.get_response(self.middleware)
         self.assertIsNotNone(self._get_cached_token(token))
 
-        timeutils.advance_time_seconds(token_cache_time)
+        time_fixture.advance_time_seconds(token_cache_time)
         self.assertIsNone(self._get_cached_token(token))
 
     def test_swift_memcache_set_expired(self):
-- 
2.55.0


++++++ keystonemiddleware-12.0.0.tar.gz -> keystonemiddleware-13.0.0.tar.gz 
++++++
++++ 2030 lines of diff (skipped)

Reply via email to