commit python-django-redis for openSUSE:Factory

2023-10-31 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2023-10-31 20:25:33

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.17445 (New)


Package is "python-django-redis"

Tue Oct 31 20:25:33 2023 rev:13 rq:1121341 version:5.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2023-07-03 17:42:17.280542871 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.17445/python-django-redis.changes
   2023-10-31 20:25:47.406139137 +0100
@@ -1,0 +2,11 @@
+Tue Oct 31 02:05:32 UTC 2023 - Steve Kowalik 
+
+- Update to 5.4.0:
+  * Connection factory goes to cache options
+  * Added note in docs for correctly configuring hiredis parser when
+using redis-py version 5.
+- Add missing BuildRequires on redis
+- Stop using globs in %files
+- Switch to pyproject macros
+
+---

Old:

  django-redis-5.3.0.tar.gz

New:

  django-redis-5.4.0.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.kilmaE/_old  2023-10-31 20:25:47.954159266 +0100
+++ /var/tmp/diff_new_pack.kilmaE/_new  2023-10-31 20:25:47.954159266 +0100
@@ -18,27 +18,30 @@
 
 %{?sle15_python_module_pythons}
 Name:   python-django-redis
-Version:5.3.0
+Version:5.4.0
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause
 URL:https://github.com/jazzband/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
-BuildRequires:  %{python_module Django >= 2.2}
+BuildRequires:  %{python_module Django >= 3.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module msgpack >= 0.4.6}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module pytest-mock >= 3.0}
 BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module redis >= 2.10.0}
+BuildRequires:  %{python_module redis >= 3}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  psmisc
 BuildRequires:  python-rpm-macros
-Requires:   python-Django >= 2.2
+BuildRequires:  redis
+Requires:   python-Django >= 3.2
 Requires:   python-lz4 >= 0.15
 Requires:   python-msgpack >= 0.4.6
-Requires:   python-redis >= 2.10.0
+Requires:   python-redis >= 3
 BuildArch:  noarch
 %python_subpackages
 
@@ -50,10 +53,10 @@
 sed -i '/addopts/d' setup.cfg
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -72,5 +75,6 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/django[-_]redis*/
+%{python_sitelib}/django_redis
+%{python_sitelib}/django_redis-%{version}.dist-info
 

++ django-redis-5.3.0.tar.gz -> django-redis-5.4.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-redis-5.3.0/PKG-INFO 
new/django-redis-5.4.0/PKG-INFO
--- old/django-redis-5.3.0/PKG-INFO 2023-06-16 14:13:06.367214400 +0200
+++ new/django-redis-5.4.0/PKG-INFO 2023-10-01 22:18:13.252378500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: django-redis
-Version: 5.3.0
+Version: 5.4.0
 Summary: Full featured redis cache backend for Django.
 Home-page: https://github.com/jazzband/django-redis
 Author: Andrei Antoukh
@@ -29,9 +29,12 @@
 Classifier: Topic :: Utilities
 Requires-Python: >=3.6
 Description-Content-Type: text/x-rst
-Provides-Extra: hiredis
 License-File: LICENSE
 License-File: AUTHORS.rst
+Requires-Dist: Django>=3.2
+Requires-Dist: redis!=4.0.0,!=4.0.1,>=3
+Provides-Extra: hiredis
+Requires-Dist: redis[hiredis]!=4.0.0,!=4.0.1,>=3; extra == "hiredis"
 
 ==
 Redis cache backend for Django
@@ -771,6 +774,35 @@
 },
 }
 
+It is also possible to set some caches as sentinels and some as not:
+
+.. code-block:: python
+
+SENTINELS = [
+('sentinel-1', 26379),
+('sentinel-2', 26379),
+('sentinel-3', 26379),
+]
+CACHES = {
+"sentinel": {
+"BACKEND": "django_redis.cache.RedisCache",
+"LOCATION": "redis://service_name/db",
+"OPTIONS": {
+"CLIENT_CLASS": "django_redis.client.SentinelClient",
+"SENTINELS": SENTINELS,
+"CONNECTION_POOL_CLASS": 
"redis.sentinel.SentinelConnectionPo

commit python-django-redis for openSUSE:Factory

2023-07-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2023-07-03 17:42:15

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.13546 (New)


Package is "python-django-redis"

Mon Jul  3 17:42:15 2023 rev:12 rq:1096317 version:5.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2023-06-26 18:17:01.802719908 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.13546/python-django-redis.changes
   2023-07-03 17:42:17.280542871 +0200
@@ -1,0 +2,19 @@
+Sat Jul  1 20:30:43 UTC 2023 - Dirk Müller 
+
+- update to 5.3.0:
+  * Add support for django 4 
+  * Access `django_redis.cache.DJANGO_REDIS_SCAN_ITERSIZE` and
+`django_redis.client.herd.CACHE_HERD_TIMEOUT` in runtime to
+not read Django settings in import time. 
+  * Skipping pickle serializer test for django >= 4.2 
+  * Speed up deleting multiple keys by a pattern with pipelines
+and larger itersize 
+  * Print full exception traceback when logging ignored
+exceptions 
+  * Fix mypy linting 
+  * Added support for python 3.11 
+  * Fix CI, running tox<4 to still support Python 3.6. 
+  * Dropped support for django 2.2 and 3.1 
+  * Run actions & tox against Django 4..2 
+
+---

Old:

  django-redis-5.2.0.tar.gz

New:

  django-redis-5.3.0.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.BWqMFN/_old  2023-07-03 17:42:17.968546922 +0200
+++ /var/tmp/diff_new_pack.BWqMFN/_new  2023-07-03 17:42:17.972546945 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:   python-django-redis
-Version:5.2.0
+Version:5.3.0
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause

++ django-redis-5.2.0.tar.gz -> django-redis-5.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-redis-5.2.0/AUTHORS.rst 
new/django-redis-5.3.0/AUTHORS.rst
--- old/django-redis-5.2.0/AUTHORS.rst  2021-12-22 16:08:32.0 +0100
+++ new/django-redis-5.3.0/AUTHORS.rst  2023-06-16 14:12:53.0 +0200
@@ -1,10 +1,10 @@
 Andrei Antoukh / niwibe 
-Sean Bleier 
-Matt Dennewitz 
-Jannis Leidel 
-S. Angel / Twidi 
-Noah Kantrowitz / coderanger 
-Martin Mahner / bartTC 
+Sean Bleier 
+Matt Dennewitz 
+Jannis Leidel 
+S. Angel / Twidi 
+Noah Kantrowitz / coderanger 
+Martin Mahner / bartTC 
 Timothée Peignier / cyberdelia 
 Lior Sion / liorsion 
 Ales Zoulek / aleszoulek 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-redis-5.2.0/PKG-INFO 
new/django-redis-5.3.0/PKG-INFO
--- old/django-redis-5.2.0/PKG-INFO 2021-12-22 16:08:41.102405300 +0100
+++ new/django-redis-5.3.0/PKG-INFO 2023-06-16 14:13:06.367214400 +0200
@@ -1,19 +1,18 @@
 Metadata-Version: 2.1
 Name: django-redis
-Version: 5.2.0
+Version: 5.3.0
 Summary: Full featured redis cache backend for Django.
 Home-page: https://github.com/jazzband/django-redis
 Author: Andrei Antoukh
 Author-email: n...@niwi.nz
 License: BSD-3-Clause
-Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
 Classifier: Framework :: Django
-Classifier: Framework :: Django :: 2.2
-Classifier: Framework :: Django :: 3.1
 Classifier: Framework :: Django :: 3.2
 Classifier: Framework :: Django :: 4.0
+Classifier: Framework :: Django :: 4.1
+Classifier: Framework :: Django :: 4.2
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
@@ -25,6 +24,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Utilities
 Requires-Python: >=3.6
@@ -518,6 +518,15 @@
 >>> from django.core.cache import cache
 >>> cache.delete_pattern("foo_*")
 
+

commit python-django-redis for openSUSE:Factory

2023-06-26 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2023-06-26 18:16:42

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.15902 (New)


Package is "python-django-redis"

Mon Jun 26 18:16:42 2023 rev:11 rq:1095399 version:5.2.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2022-10-11 18:05:50.394112944 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.15902/python-django-redis.changes
   2023-06-26 18:17:01.802719908 +0200
@@ -1,0 +2,5 @@
+Mon Jun 26 07:06:58 UTC 2023 - Andreas Schneider 
+
+- Use sle15_python_module_pythons
+
+---



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.mymCUm/_old  2023-06-26 18:17:02.318722201 +0200
+++ /var/tmp/diff_new_pack.mymCUm/_new  2023-06-26 18:17:02.322722219 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-redis
 #
-# 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,9 +16,7 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
+%{?sle15_python_module_pythons}
 Name:   python-django-redis
 Version:5.2.0
 Release:0
@@ -29,9 +27,9 @@
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module msgpack >= 0.4.6}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module pytest-mock >= 3.0}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module redis >= 2.10.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes


commit python-django-redis for openSUSE:Factory

2022-10-11 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2022-10-11 18:03:24

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.2275 (New)


Package is "python-django-redis"

Tue Oct 11 18:03:24 2022 rev:10 rq:1009757 version:5.2.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2022-05-12 23:00:10.912782425 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.2275/python-django-redis.changes
2022-10-11 18:05:50.394112944 +0200
@@ -1,0 +2,42 @@
+Tue Oct 11 09:30:19 UTC 2022 - John Vandenberg 
+
+- Drop unnecessary clean-cache.patch
+- Update to v5.2.0
+  * Block use with broken redis-py 4.0.0 and 4.0.1
+  * Add support for django 4
+- from v5.1.0
+  * Add Python 3.10 to CI
+  * Configured towncrier to generate the changelog.
+  * Added django_redis.compressors.zstd.ZStdCompressor to provide
+pyzstd cache value compression
+  * Change pickle default version to Python default instead of
+highest version
+  * Add hiredis extra dependency to request redis[hiredis]
+  * Add pexpireat to allow setting 'expire at' with millisecond
+precision
+  * Make expire, pexpire, expireat and persist return the redis
+client value
+  * Convert most unittest class tests to pytest tests
+  * Update type comments to type annotations
+  * Pin redis-py to 3.x until 4.x breaking changes can be addressed
+  * Clarify redis primary name in sentinel documentation
+  * Add documentation on configuring self signed SSL certificates
+- from v5.0.0
+  * supporting django 3.1 and django 3.2
+  * dropped support for python 3.5
+  * added support for python 3.9
+  * started type hinting the codebase
+  * ensure connections are closed
+  * fixed ShardClient .clear() method
+  * .delete() now returns boolean from django 3.1 onwards
+  * disconnect connection pools on .close()
+  * added support for redis sentinel
+  * added .expire_at() method
+  * fixed .incr() when ttl is None or when the number is larger than 64 bit
+  * fixed .incr_version() when ttl is None
+  * added .pttl() method to the clients to support milli-second precision
+for ttl of a key
+  * added .pexpire() method to the clients to support milli-second
+precision for setting expiry of a key
+
+---

Old:

  clean-cache.patch
  django-redis-4.12.1.tar.gz

New:

  django-redis-5.2.0.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.BTgDoi/_old  2022-10-11 18:05:50.790113584 +0200
+++ /var/tmp/diff_new_pack.BTgDoi/_new  2022-10-11 18:05:50.794113590 +0200
@@ -18,19 +18,20 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
+%define skip_python36 1
 Name:   python-django-redis
-Version:4.12.1
+Version:5.2.0
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause
 URL:https://github.com/jazzband/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
-# minimal patch to fix the testsuite, see 
https://github.com/jazzband/django-redis/pull/492 for reference
-Patch0: clean-cache.patch
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module msgpack >= 0.4.6}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytest-django}
+BuildRequires:  %{python_module pytest-mock >= 3.0}
 BuildRequires:  %{python_module redis >= 2.10.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -48,7 +49,7 @@
 
 %prep
 %setup -q -n django-redis-%{version}
-%autopatch -p1
+sed -i '/addopts/d' setup.cfg
 
 %build
 %python_build
@@ -59,30 +60,20 @@
 
 %check
 /usr/sbin/redis-server --port 6379 &
-export PYTHONPATH=.:tests
-%python_exec tests/runtests.py
-# The first four are errors on Python 2
-# The last three tests tests raise NotImplementedError
-%{python_expand DJANGO_SETTINGS_MODULE=tests.test_sqlite_sharding \
-  $python -m pytest \
---deselect 
tests/test_backend.py::DjangoRedisCacheTestEscapePrefix::test_keys \
---deselect 
tests/test_backend.py::DjangoRedisCacheTests::test_delete_pattern \
---deselect 
tests/test_backend.py::DjangoRedisCacheTests::test_touch_missed_key \
---deselect 
tests/test_backend.py::DjangoRedisCacheTests::test_touch_negative_timeout \
---deselect 
tests/test_backend.py::DjangoRedisCacheTests::test_touch_positive_timeout \
---deselect

commit python-django-redis for openSUSE:Factory

2022-05-12 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2022-05-12 22:59:46

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.1538 (New)


Package is "python-django-redis"

Thu May 12 22:59:46 2022 rev:9 rq:976367 version:4.12.1

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2021-03-15 10:54:44.577203269 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.1538/python-django-redis.changes
2022-05-12 23:00:10.912782425 +0200
@@ -1,0 +2,5 @@
+Wed May 11 11:04:57 UTC 2022 - pgaj...@suse.com
+
+- python-mock is not required for build
+
+---



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.f8i2rj/_old  2022-05-12 23:00:11.396783074 +0200
+++ /var/tmp/diff_new_pack.f8i2rj/_new  2022-05-12 23:00:11.400783080 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-redis
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,7 +29,6 @@
 Patch0: clean-cache.patch
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module msgpack >= 0.4.6}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module redis >= 2.10.0}


commit python-django-redis for openSUSE:Factory

2021-03-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2021-03-15 10:54:43

Comparing /work/SRC/openSUSE:Factory/python-django-redis (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-redis.new.2401 (New)


Package is "python-django-redis"

Mon Mar 15 10:54:43 2021 rev:8 rq:878601 version:4.12.1

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2020-08-15 21:19:28.975592607 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.2401/python-django-redis.changes
2021-03-15 10:54:44.577203269 +0100
@@ -1,0 +2,5 @@
+Fri Mar 12 12:00:39 UTC 2021 - Mark??ta Machov?? 
+
+- Fix recent build failure with clean-cache.patch
+
+---

New:

  clean-cache.patch



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.9S5Mg1/_old  2021-03-15 10:54:45.093204061 +0100
+++ /var/tmp/diff_new_pack.9S5Mg1/_new  2021-03-15 10:54:45.097204068 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-redis
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:BSD-3-Clause
 URL:https://github.com/jazzband/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
+# minimal patch to fix the testsuite, see 
https://github.com/jazzband/django-redis/pull/492 for reference
+Patch0: clean-cache.patch
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module mock}
@@ -47,6 +49,7 @@
 
 %prep
 %setup -q -n django-redis-%{version}
+%autopatch -p1
 
 %build
 %python_build

++ clean-cache.patch ++
Index: django-redis-4.12.1/tests/test_backend.py
===
--- django-redis-4.12.1.orig/tests/test_backend.py
+++ django-redis-4.12.1/tests/test_backend.py
@@ -288,7 +288,7 @@ class DjangoRedisCacheTests(unittest.Tes
 
 res = cache.get("add_key")
 self.assertEqual(res, "Initial value")
-
+cache.delete("other_key")
 res = self.cache.add("other_key", "New value")
 self.assertIs(res, True)