commit python-django-redis for openSUSE:Factory

2020-08-15 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2020-08-15 21:18:49

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


Package is "python-django-redis"

Sat Aug 15 21:18:49 2020 rev:7 rq:825346 version:4.12.1

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2020-04-25 20:35:23.946897384 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.3399/python-django-redis.changes
2020-08-15 21:19:28.975592607 +0200
@@ -1,0 +2,16 @@
+Fri Jun 12 11:15:44 UTC 2020 - Ondřej Súkup 
+
+- update to 4.12.1
+- drop msgpack-1.patch
+ * moved under jazzband.co
+ * Removed support for end-of-life Django
+ * Removed support for unmaintained redis-py 2.X.
+ *  Changed uses of deprecated smart_text() to smart_str().
+ * Fixed deprecation warning with the msgpack serializer.
+ * The .touch() method now uses the default timeout, to cache forever pass 
None.
+ * Subclasses of JSONSerializer can now override the encoder_class attribute
+to change the JSON encoder. It defaults to DjangoJSONEncoder.
+ * Fixed DefaultClient.set() to work with empty Pipeline.
+ * The thread_local parameter is now forwarded to the Redis client.
+
+---

Old:

  django-redis-4.11.0.tar.gz
  msgpack-1.patch

New:

  django-redis-4.12.1.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.UtR7sc/_old  2020-08-15 21:19:29.595592961 +0200
+++ /var/tmp/diff_new_pack.UtR7sc/_new  2020-08-15 21:19:29.599592963 +0200
@@ -19,13 +19,12 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-django-redis
-Version:4.11.0
+Version:4.12.1
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause
-URL:https://github.com/niwibe/django-redis
+URL:https://github.com/jazzband/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
-Patch0: msgpack-1.patch
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module mock}
@@ -48,7 +47,6 @@
 
 %prep
 %setup -q -n django-redis-%{version}
-%patch0 -p1
 
 %build
 %python_build
@@ -81,7 +79,7 @@
 killall redis-server
 
 %files %{python_files}
-%doc CHANGES.txt README.rst
+%doc README.rst
 %license LICENSE
 %{python_sitelib}/*
 

++ django-redis-4.11.0.tar.gz -> django-redis-4.12.1.tar.gz ++
 3837 lines of diff (skipped)




commit python-django-redis for openSUSE:Factory

2020-04-25 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2020-04-25 20:30:04

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


Package is "python-django-redis"

Sat Apr 25 20:30:04 2020 rev:6 rq:796789 version:4.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2020-01-07 23:54:40.484072462 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.2738/python-django-redis.changes
2020-04-25 20:35:23.946897384 +0200
@@ -1,0 +2,6 @@
+Fri Apr 24 07:21:30 UTC 2020 - Tomáš Chvátal 
+
+- Fix build with new msgpack:
+  * msgpack-1.patch
+
+---

New:

  msgpack-1.patch



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.PoeQYi/_old  2020-04-25 20:35:25.814901236 +0200
+++ /var/tmp/diff_new_pack.PoeQYi/_new  2020-04-25 20:35:25.814901236 +0200
@@ -23,9 +23,9 @@
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause
-Group:  Development/Languages/Python
 URL:https://github.com/niwibe/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
+Patch0: msgpack-1.patch
 BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module mock}
@@ -48,6 +48,7 @@
 
 %prep
 %setup -q -n django-redis-%{version}
+%patch0 -p1
 
 %build
 %python_build

++ msgpack-1.patch ++
>From 7aad69ed11c84c4c1ea1f992b01b652ba173a2b1 Mon Sep 17 00:00:00 2001
From: Jon Dufresne 
Date: Sun, 15 Dec 2019 11:14:13 -0800
Subject: [PATCH] Fix msgpack deprecation warning:

DeprecationWarning: encoding is deprecated, Use raw=False instead.
---
 django_redis/serializers/msgpack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_redis/serializers/msgpack.py 
b/django_redis/serializers/msgpack.py
index 43d5e9e..7f25824 100644
--- a/django_redis/serializers/msgpack.py
+++ b/django_redis/serializers/msgpack.py
@@ -8,4 +8,4 @@ def dumps(self, value):
 return msgpack.dumps(value)
 
 def loads(self, value):
-return msgpack.loads(value, encoding="utf-8")
+return msgpack.loads(value, raw=False)



commit python-django-redis for openSUSE:Factory

2020-01-07 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2020-01-07 23:54:13

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


Package is "python-django-redis"

Tue Jan  7 23:54:13 2020 rev:5 rq:761365 version:4.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2019-02-24 17:15:57.14652 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.6675/python-django-redis.changes
2020-01-07 23:54:40.484072462 +0100
@@ -1,0 +2,12 @@
+Tue Jan  7 09:06:59 UTC 2020 - Tomáš Chvátal 
+
+- Update to 4.11.0:
+  * Added support for Python 3.8.
+  * Added support for Django 2.2 and 3.0.
+  * Changed msgpack-python soft dependency to msgpack.
+  * Fixed .touch() method for sharded client.
+  * Fixed prefix escaping for the sharded client.
+  * Fixed .add() method to return a bool.
+- Remove merged tests-fix-urls.patch
+
+---

Old:

  django-redis-4.10.0.tar.gz
  tests-fix-urls.patch

New:

  django-redis-4.11.0.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.C5Aef6/_old  2020-01-07 23:54:40.908072682 +0100
+++ /var/tmp/diff_new_pack.C5Aef6/_new  2020-01-07 23:54:40.912072684 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-redis
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,16 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:   python-django-redis
-Version:4.10.0
+Version:4.11.0
 Release:0
 Summary:A redis cache backend for Django
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/niwibe/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
-# Fix tests to be compatible with Python 3 url parser.
-Patch0: tests-fix-urls.patch
-BuildRequires:  %{python_module Django >= 1.11}
+BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module lz4 >= 0.15}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module msgpack >= 0.4.6}
@@ -37,7 +36,7 @@
 BuildRequires:  fdupes
 BuildRequires:  psmisc
 BuildRequires:  python-rpm-macros
-Requires:   python-Django >= 1.11
+Requires:   python-Django >= 2.2
 Requires:   python-lz4 >= 0.15
 Requires:   python-msgpack >= 0.4.6
 Requires:   python-redis >= 2.10.0
@@ -49,7 +48,6 @@
 
 %prep
 %setup -q -n django-redis-%{version}
-%patch0 -p1
 
 %build
 %python_build

++ django-redis-4.10.0.tar.gz -> django-redis-4.11.0.tar.gz ++
 4182 lines of diff (skipped)




commit python-django-redis for openSUSE:Factory

2019-02-24 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2019-02-24 17:15:44

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


Package is "python-django-redis"

Sun Feb 24 17:15:44 2019 rev:4 rq:677660 version:4.10.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2018-12-11 15:49:59.898062985 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.28833/python-django-redis.changes
   2019-02-24 17:15:57.14652 +0100
@@ -1,0 +2,7 @@
+Wed Feb 20 11:11:17 UTC 2019 - John Vandenberg 
+
+- Add tests-fix-urls.patch fixing failing tests, which were using
+  URLs not able to be parsed correctly on Python 3 as a URL.
+  See https://github.com/andymccurdy/redis-py/issues/961
+
+---

New:

  tests-fix-urls.patch



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.EacSXS/_old  2019-02-24 17:15:57.848444527 +0100
+++ /var/tmp/diff_new_pack.EacSXS/_new  2019-02-24 17:15:57.856444525 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-redis
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,13 @@
 Group:  Development/Languages/Python
 URL:https://github.com/niwibe/django-redis
 Source: 
https://files.pythonhosted.org/packages/source/d/django-redis/django-redis-%{version}.tar.gz
+# Fix tests to be compatible with Python 3 url parser.
+Patch0: tests-fix-urls.patch
 BuildRequires:  %{python_module Django >= 1.11}
 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}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -46,6 +49,7 @@
 
 %prep
 %setup -q -n django-redis-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -56,9 +60,20 @@
 
 %check
 /usr/sbin/redis-server --port 6379 &
+export PYTHONPATH=.:tests
 %python_exec tests/runtests.py
-# The tests fail on python3 here
-#%%python_exec tests/runtests-sharded.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 
tests/test_backend.py::DjangoRedisCacheTests::test_touch_zero_timeout \
+tests
+}
 %python_exec tests/runtests-herd.py
 %python_exec tests/runtests-json.py
 %python_exec tests/runtests-msgpack.py

++ tests-fix-urls.patch ++
diff -u django-redis-4.10.0-orig/tests/test_sqlite_herd.py 
django-redis-4.10.0/tests/test_sqlite_herd.py
--- django-redis-4.10.0-orig/tests/test_sqlite_herd.py  2018-11-19 
15:48:56.0 +0700
+++ django-redis-4.10.0/tests/test_sqlite_herd.py   2019-02-20 
18:07:26.878110390 +0700
@@ -4,7 +4,7 @@
 'default': {
 'BACKEND': 'django_redis.cache.RedisCache',
 'LOCATION': [
-'127.0.0.1:6379:5',
+'redis://127.0.0.1:6379?db=5',
 ],
 'OPTIONS': {
 'CLIENT_CLASS': 'django_redis.client.HerdClient',
@@ -19,7 +19,7 @@
 },
 'sample': {
 'BACKEND': 'django_redis.cache.RedisCache',
-'LOCATION': '127.0.0.1:6379:1,127.0.0.1:6379:1',
+'LOCATION': 'redis://127.0.0.1:6379?db=1,redis://127.0.0.1:6379?db=1',
 'OPTIONS': {
 'CLIENT_CLASS': 'django_redis.client.HerdClient',
 }
diff -u django-redis-4.10.0-orig/tests/test_sqlite_json.py 
django-redis-4.10.0/tests/test_sqlite_json.py
--- django-redis-4.10.0-orig/tests/test_sqlite_json.py  2018-11-19 
15:48:56.0 +0700
+++ django-redis-4.10.0/tests/test_sqlite_json.py   2019-02-20 
18:04:29.728741763 +0700
@@ -22,7 +22,7 @@
 },
 "sample": {
 "BACKEND": "django_redis.cache.RedisCache",
-"LOCATION": 

commit python-django-redis for openSUSE:Factory

2018-12-11 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2018-12-11 15:49:56

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


Package is "python-django-redis"

Tue Dec 11 15:49:56 2018 rev:3 rq:657155 version:4.10.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2018-09-03 10:35:59.860808113 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new.19453/python-django-redis.changes
   2018-12-11 15:49:59.898062985 +0100
@@ -1,0 +2,6 @@
+Tue Dec 11 11:47:34 UTC 2018 - Tomáš Chvátal 
+
+- Update to 4.10.0:
+  * support for redis-py 3.0
+
+---

Old:

  django-redis-4.9.0.tar.gz

New:

  django-redis-4.10.0.tar.gz



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.83Zw5N/_old  2018-12-11 15:50:01.674061023 +0100
+++ /var/tmp/diff_new_pack.83Zw5N/_new  2018-12-11 15:50:01.674061023 +0100
@@ -12,15 +12,15 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-django-redis
-Version:4.9.0
+Version:4.10.0
 Release:0
-Summary:redis cache backend for Django
+Summary:A redis cache backend for Django
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/niwibe/django-redis

++ django-redis-4.9.0.tar.gz -> django-redis-4.10.0.tar.gz ++
 1736 lines of diff (skipped)




commit python-django-redis for openSUSE:Factory

2018-09-03 Thread root
Hello community,

here is the log from the commit of package python-django-redis for 
openSUSE:Factory checked in at 2018-09-03 10:35:58

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


Package is "python-django-redis"

Mon Sep  3 10:35:58 2018 rev:2 rq:632621 version:4.9.0

Changes:

--- /work/SRC/openSUSE:Factory/python-django-redis/python-django-redis.changes  
2018-08-31 10:45:04.851248366 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-redis.new/python-django-redis.changes 
2018-09-03 10:35:59.860808113 +0200
@@ -1,0 +2,5 @@
+Fri Aug 31 20:54:39 UTC 2018 - Jan Engelhardt 
+
+- Trim marketing wording from description.
+
+---



Other differences:
--
++ python-django-redis.spec ++
--- /var/tmp/diff_new_pack.qyF6UK/_old  2018-09-03 10:36:00.264809158 +0200
+++ /var/tmp/diff_new_pack.qyF6UK/_new  2018-09-03 10:36:00.264809158 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -20,7 +20,7 @@
 Name:   python-django-redis
 Version:4.9.0
 Release:0
-Summary:Full featured redis cache backend for Django
+Summary:redis cache backend for Django
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/niwibe/django-redis
@@ -31,7 +31,8 @@
 BuildRequires:  %{python_module msgpack >= 0.4.6}
 BuildRequires:  %{python_module redis >= 2.10.0}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  fdupes psmisc
+BuildRequires:  fdupes
+BuildRequires:  psmisc
 BuildRequires:  python-rpm-macros
 Requires:   python-Django >= 1.11
 Requires:   python-lz4 >= 0.15
@@ -41,7 +42,7 @@
 %python_subpackages
 
 %description
-Full featured redis cache backend for Django.
+A redis cache backend for Django.
 
 %prep
 %setup -q -n django-redis-%{version}