Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dogpile.cache for 
openSUSE:Factory checked in at 2024-02-08 19:03:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dogpile.cache (Old)
 and      /work/SRC/openSUSE:Factory/.python-dogpile.cache.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dogpile.cache"

Thu Feb  8 19:03:17 2024 rev:41 rq:1145099 version:1.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dogpile.cache/python-dogpile.cache.changes    
    2024-01-08 23:45:00.325751625 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-dogpile.cache.new.1815/python-dogpile.cache.changes
      2024-02-08 19:03:33.822131284 +0100
@@ -1,0 +2,9 @@
+Thu Feb  8 09:34:47 UTC 2024 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.3.1:
+  * Added new parameter RedisBackend.username to the Redis
+    backend, and RedisSentinelBackend.username to the Redis
+    Sentinel backend. These parameters allow for username
+    authentication in Redis when RBAC is enabled.
+
+-------------------------------------------------------------------

Old:
----
  dogpile.cache-1.3.0.tar.gz

New:
----
  dogpile.cache-1.3.1.tar.gz

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

Other differences:
------------------
++++++ python-dogpile.cache.spec ++++++
--- /var/tmp/diff_new_pack.MDdIx2/_old  2024-02-08 19:03:34.446153870 +0100
+++ /var/tmp/diff_new_pack.MDdIx2/_new  2024-02-08 19:03:34.446153870 +0100
@@ -18,10 +18,10 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-dogpile.cache
-Version:        1.3.0
+Version:        1.3.1
 Release:        0
 %define modname dogpile.cache
-%define modver  1_3_0
+%define modver  1_3_1
 Summary:        A caching front-end based on the Dogpile lock
 License:        BSD-3-Clause
 URL:            https://github.com/sqlalchemy/dogpile.cache

++++++ dogpile.cache-1.3.0.tar.gz -> dogpile.cache-1.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dogpile.cache-rel_1_3_0/LICENSE 
new/dogpile.cache-rel_1_3_1/LICENSE
--- old/dogpile.cache-rel_1_3_0/LICENSE 2023-12-20 15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/LICENSE 2024-02-07 23:54:36.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright 2005-2023 Michael Bayer.
+Copyright 2005-2024 Michael Bayer.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dogpile.cache-rel_1_3_0/docs/build/changelog.rst 
new/dogpile.cache-rel_1_3_1/docs/build/changelog.rst
--- old/dogpile.cache-rel_1_3_0/docs/build/changelog.rst        2023-12-20 
15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/docs/build/changelog.rst        2024-02-07 
23:54:36.000000000 +0100
@@ -3,6 +3,18 @@
 =========
 
 .. changelog::
+    :version: 1.3.1
+    :released: Wed Feb 7 2024
+
+    .. change::
+        :tags: usecase, redis
+
+        Added new parameter :paramref:`.RedisBackend.username` to the Redis
+        backend, and :paramref:`.RedisSentinelBackend.username` to the Redis
+        Sentinel backend.  These parameters allow for username authentication 
in
+        Redis when RBAC is enabled.   Pull request courtesy Takashi Kajinami.
+
+.. changelog::
     :version: 1.3.0
     :released: Wed Dec 20 2023
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dogpile.cache-rel_1_3_0/docs/build/conf.py 
new/dogpile.cache-rel_1_3_1/docs/build/conf.py
--- old/dogpile.cache-rel_1_3_0/docs/build/conf.py      2023-12-20 
15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/docs/build/conf.py      2024-02-07 
23:54:36.000000000 +0100
@@ -65,7 +65,7 @@
 
 # General information about the project.
 project = "dogpile.cache"
-copyright = "2011-2023 Mike Bayer"
+copyright = "2011-2024 Mike Bayer"
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -74,7 +74,7 @@
 # The short X.Y version.
 version = dogpile.__version__
 # The full version, including alpha/beta/rc tags.
-release = "1.3.0"
+release = "1.3.1"
 
 
 # The language for content autogenerated by Sphinx. Refer to documentation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dogpile.cache-rel_1_3_0/dogpile/__init__.py 
new/dogpile.cache-rel_1_3_1/dogpile/__init__.py
--- old/dogpile.cache-rel_1_3_0/dogpile/__init__.py     2023-12-20 
15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/dogpile/__init__.py     2024-02-07 
23:54:36.000000000 +0100
@@ -1,4 +1,4 @@
-__version__ = "1.3.0"
+__version__ = "1.3.1"
 
 from .lock import Lock  # noqa
 from .lock import NeedRegenerationException  # noqa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dogpile.cache-rel_1_3_0/dogpile/cache/backends/redis.py 
new/dogpile.cache-rel_1_3_1/dogpile/cache/backends/redis.py
--- old/dogpile.cache-rel_1_3_0/dogpile/cache/backends/redis.py 2023-12-20 
15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/dogpile/cache/backends/redis.py 2024-02-07 
23:54:36.000000000 +0100
@@ -45,11 +45,13 @@
     Arguments accepted in the arguments dictionary:
 
     :param url: string. If provided, will override separate
-     host/password/port/db params.  The format is that accepted by
+     host/username/password/port/db params.  The format is that accepted by
      ``StrictRedis.from_url()``.
 
     :param host: string, default is ``localhost``.
 
+    :param username: string, default is no username.
+
     :param password: string, default is no password.
 
     :param port: integer, default is ``6379``.
@@ -95,6 +97,8 @@
 
      .. versionadded:: 1.1.6  Added ``connection_kwargs`` parameter.
 
+     .. versionadded:: 1.3.1  Added ``username`` parameter.
+
     """
 
     def __init__(self, arguments):
@@ -102,6 +106,7 @@
         self._imports()
         self.url = arguments.pop("url", None)
         self.host = arguments.pop("host", "localhost")
+        self.username = arguments.pop("username", None)
         self.password = arguments.pop("password", None)
         self.port = arguments.pop("port", 6379)
         self.db = arguments.pop("db", 0)
@@ -149,6 +154,7 @@
             else:
                 args.update(
                     host=self.host,
+                    username=self.username,
                     password=self.password,
                     port=self.port,
                     db=self.db,
@@ -247,6 +253,10 @@
 
     Arguments accepted in the arguments dictionary:
 
+    :param username: string, default is no username.
+
+    :param password: string, default is no password.
+
     :param db: integer, default is ``0``.
 
     :param redis_expiration_time: integer, number of seconds after setting
@@ -292,6 +302,8 @@
      asynchronous runners, as they run in a different thread than the one
      used to create the lock.
 
+     .. versionadded:: 1.3.1  Added ``username`` parameter.
+
     """
 
     def __init__(self, arguments):
@@ -317,10 +329,12 @@
     def _create_client(self):
         sentinel_kwargs = {}
         sentinel_kwargs.update(self.sentinel_kwargs)
+        sentinel_kwargs.setdefault("username", self.username)
         sentinel_kwargs.setdefault("password", self.password)
 
         connection_kwargs = {}
         connection_kwargs.update(self.connection_kwargs)
+        connection_kwargs.setdefault("username", self.username)
         connection_kwargs.setdefault("password", self.password)
 
         if self.db is not None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dogpile.cache-rel_1_3_0/tests/cache/test_redis_backend.py 
new/dogpile.cache-rel_1_3_1/tests/cache/test_redis_backend.py
--- old/dogpile.cache-rel_1_3_0/tests/cache/test_redis_backend.py       
2023-12-20 15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/tests/cache/test_redis_backend.py       
2024-02-07 23:54:36.000000000 +0100
@@ -149,20 +149,22 @@
         # The defaults, used if keys are missing from the arguments dict.
         arguments = {
             "host": "localhost",
-            "password": None,
             "port": 6379,
             "db": 0,
         }
-        self._test_helper(MockStrictRedis, arguments, {})
+        expected = arguments.copy()
+        expected.update({"username": None, "password": None})
+        self._test_helper(MockStrictRedis, expected, arguments)
 
     def test_connect_with_basics(self, MockStrictRedis):
         arguments = {
             "host": "127.0.0.1",
-            "password": None,
             "port": 6379,
             "db": 0,
         }
-        self._test_helper(MockStrictRedis, arguments)
+        expected = arguments.copy()
+        expected.update({"username": None, "password": None})
+        self._test_helper(MockStrictRedis, expected, arguments)
 
     def test_connect_with_password(self, MockStrictRedis):
         arguments = {
@@ -171,6 +173,22 @@
             "port": 6379,
             "db": 0,
         }
+        expected = arguments.copy()
+        expected.update(
+            {
+                "username": None,
+            }
+        )
+        self._test_helper(MockStrictRedis, expected, arguments)
+
+    def test_connect_with_username_and_password(self, MockStrictRedis):
+        arguments = {
+            "host": "127.0.0.1",
+            "username": "redis",
+            "password": "some password",
+            "port": 6379,
+            "db": 0,
+        }
         self._test_helper(MockStrictRedis, arguments)
 
     def test_connect_with_socket_timeout(self, MockStrictRedis):
@@ -178,10 +196,11 @@
             "host": "127.0.0.1",
             "port": 6379,
             "socket_timeout": 0.5,
-            "password": None,
             "db": 0,
         }
-        self._test_helper(MockStrictRedis, arguments)
+        expected = arguments.copy()
+        expected.update({"username": None, "password": None})
+        self._test_helper(MockStrictRedis, expected, arguments)
 
     def test_connect_with_connection_pool(self, MockStrictRedis):
         pool = Mock()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dogpile.cache-rel_1_3_0/tox.ini 
new/dogpile.cache-rel_1_3_1/tox.ini
--- old/dogpile.cache-rel_1_3_0/tox.ini 2023-12-20 15:14:26.000000000 +0100
+++ new/dogpile.cache-rel_1_3_1/tox.ini 2024-02-07 23:54:36.000000000 +0100
@@ -44,8 +44,8 @@
     {memcached}: python-memcached
     {memcached}: python-binary-memcached>=0.29.0
     {memcached}: pymemcache>=3.5.0
-    {redis}: redis
-    {redis_sentinel}: redis
+    {redis}: redis>=3.4.0
+    {redis_sentinel}: redis>=3.4.0
     {cov}: pytest-cov
 
 commands=

Reply via email to