Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-model-utils for 
openSUSE:Factory checked in at 2021-12-26 13:30:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-model-utils (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-model-utils.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-model-utils"

Sun Dec 26 13:30:28 2021 rev:6 rq:942515 version:4.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-model-utils/python-django-model-utils.changes
      2020-09-03 01:18:35.324568396 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-model-utils.new.2520/python-django-model-utils.changes
    2021-12-26 13:30:45.986970255 +0100
@@ -1,0 +2,36 @@
+Sun Dec 26 04:35:03 UTC 2021 - John Vandenberg <jay...@gmail.com>
+
+- Update to v4.2.0
+  * Add support for Django 3.2
+  * Drop support for Django 3.0
+  * Add support for Python 3.10
+  * Added urlsafe token field.
+  * Introduce context manager for FieldTracker state reset
+  * Fix performance regression of FieldTracker on FileField subclasses
+    on Django 3.1+
+- from v4.1.1
+  * Applied isort to codebase
+  * Fix TypeError in save when model inherits from both
+    TimeStampModel and StatusModel.
+- from v4.1.0
+  * FieldTracker now marks fields as not changed after
+    refresh_from_db respecting fields argument
+  * FieldTracker now respects update_fields changed in overridden
+    save() method
+  * FieldTracker now resets states after pre_save() and not anymore
+    save() signals, possibly altering the behaviour of overridden
+    save() methods
+  * Update InheritanceQuerySetMixin to avoid querying too much tables
+  * TimeStampedModel now automatically adds 'modified' field as an
+    update_fields parameter even if it is forgotten while using save()
+  * Replace ugettext_lazy with gettext_lazy
+  * Add available_objects manager to SoftDeletableModel and add
+    deprecation warning to objects manager.
+  * StatusModel now automatically adds 'status_changed' field during
+    save as an update_fieldsparameter when 'status' is present in it
+    to make sure it is not forgotten.
+  * Drop support for Django 2.1
+  * Add support for Python 3.9
+  * Add support for Django 3.1
+
+-------------------------------------------------------------------

Old:
----
  django-model-utils-4.0.0.tar.gz

New:
----
  django-model-utils-4.2.0.tar.gz

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

Other differences:
------------------
++++++ python-django-model-utils.spec ++++++
--- /var/tmp/diff_new_pack.rLbbJB/_old  2021-12-26 13:30:46.510970619 +0100
+++ /var/tmp/diff_new_pack.rLbbJB/_new  2021-12-26 13:30:46.518970625 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-model-utils
 #
-# 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
@@ -18,19 +18,20 @@
 
 %define skip_python2 1
 Name:           python-django-model-utils
-Version:        4.0.0
+Version:        4.2.0
 Release:        0
 Summary:        Django model mixins and utilities
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-URL:            http://github.com/carljm/django-model-utils/
-Source:         
https://github.com/jazzband/django-model-utils/archive/%{version}.tar.gz#/django-model-utils-%{version}.tar.gz
-# PATCH-FIX-SUSE switch to sqlite from pgsql during testing
+URL:            https://github.com/jazzband/django-model-utils
+Source:         
https://files.pythonhosted.org/packages/source/d/django-model-utils/django-model-utils-%{version}.tar.gz
+# Upstreamed to https://github.com/jazzband/django-model-utils/pull/516
 Patch0:         use-sqlite.patch
 BuildRequires:  %{python_module Django >= 2.0}
 BuildRequires:  %{python_module freezegun}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  fdupes
 Requires:       python-Django >= 2.0
 BuildArch:      noarch
@@ -53,6 +54,7 @@
 %check
 # skip JoinManagerTest tests as they need proper DB (pgsql/mysql)
 export PYTHONPATH=.
+export SQLITE=1
 %pytest -k 'not JoinManagerTest'
 
 %files %{python_files}

++++++ django-model-utils-4.0.0.tar.gz -> django-model-utils-4.2.0.tar.gz ++++++
++++ 3419 lines of diff (skipped)

++++++ use-sqlite.patch ++++++
--- /var/tmp/diff_new_pack.rLbbJB/_old  2021-12-26 13:30:46.634970706 +0100
+++ /var/tmp/diff_new_pack.rLbbJB/_new  2021-12-26 13:30:46.638970708 +0100
@@ -1,20 +1,47 @@
-Index: django-model-utils-3.2.0/tests/settings.py
-===================================================================
---- django-model-utils-3.2.0.orig/tests/settings.py
-+++ django-model-utils-3.2.0/tests/settings.py
-@@ -5,12 +5,8 @@ INSTALLED_APPS = (
+commit e6833a2d52849e01dfeb3fe4a88093678fd88d93
+Author: John Vandenberg <jay...@gmail.com>
+Date:   Sun Dec 26 12:31:12 2021 +0800
+
+    Allow running tests using sqlite
+
+diff --git a/tests/settings.py b/tests/settings.py
+index 4ead542..83946b3 100644
+--- a/tests/settings.py
++++ b/tests/settings.py
+@@ -4,16 +4,25 @@ INSTALLED_APPS = (
+     'model_utils',
      'tests',
  )
- DATABASES = {
+-DATABASES = {
 -    "default": {
 -        "ENGINE": "django.db.backends.postgresql_psycopg2",
--        "NAME": os.environ.get("DJANGO_DATABASE_NAME_POSTGRES", "modelutils"),
--        "USER": os.environ.get("DJANGO_DATABASE_USER_POSTGRES", 'postgres'),
--        "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_POSTGRES", ""),
--        "HOST": os.environ.get("DJANGO_DATABASE_HOST_POSTGRES", ""),
-+    'default': {
-+        'ENGINE': 'django.db.backends.sqlite3'
-     },
- }
+-        "NAME": os.environ.get("DB_NAME", "modelutils"),
+-        "USER": os.environ.get("DB_USER", 'postgres'),
+-        "PASSWORD": os.environ.get("DB_PASSWORD", ""),
+-        "HOST": os.environ.get("DB_HOST", "localhost"),
+-        "PORT": os.environ.get("DB_PORT", 5432)
+-    },
+-}
++
++if os.environ.get('SQLITE'):
++    DATABASES = {
++        'default': {
++            'ENGINE': 'django.db.backends.sqlite3',
++        },
++    }
++else:
++    DATABASES = {
++        "default": {
++            "ENGINE": "django.db.backends.postgresql_psycopg2",
++            "NAME": os.environ.get("DB_NAME", "modelutils"),
++            "USER": os.environ.get("DB_USER", 'postgres'),
++            "PASSWORD": os.environ.get("DB_PASSWORD", ""),
++            "HOST": os.environ.get("DB_HOST", "localhost"),
++            "PORT": os.environ.get("DB_PORT", 5432)
++        },
++    }
++
  SECRET_KEY = 'dummy'
+ 
+ CACHES = {
 

Reply via email to