Hello community,
here is the log from the commit of package python-django-model-utils for openSUSE:Factory checked in at 2019-07-03 15:14:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-model-utils (Old)
and /work/SRC/openSUSE:Factory/.python-django-model-utils.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-model-utils"
Wed Jul 3 15:14:58 2019 rev:3 rq:713052 version:3.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-django-model-utils/python-django-model-utils.changes 2019-04-30 13:01:20.982156784 +0200
+++ /work/SRC/openSUSE:Factory/.python-django-model-utils.new.4615/python-django-model-utils.changes 2019-07-03 15:14:59.990963927 +0200
@@ -1,0 +2,24 @@
+Tue Jul 2 12:20:16 UTC 2019 - Tomáš Chvátal
+
+- Add patch use-sqlite.patch to use sqlite for testing and not
+ postgresql
+
+-------------------------------------------------------------------
+Tue Jul 2 12:13:32 UTC 2019 - Tomáš Chvátal
+
+- Update to 3.2.0:
+ * Catch AttributeError for deferred abstract fields, fixes GH-331.
+ * Update documentation to explain usage of timeframed model manager, fixes GH-118
+ * Honor OneToOneField.parent_link=False.
+ * Fix handling of deferred attributes on Django 1.10+, fixes GH-278
+ * Fix FieldTracker.has_changed() and FieldTracker.previous() to return correct responses for deferred fields.
+ * Add Simplified Chinese translations.
+ * Update AutoLastModifiedField so that at instance creation it will always be set equal to created to make querying easier. Fixes GH-254
+ * Support reversed for all kinds of Choices objects, fixes GH-309
+ * Fix Model instance non picklable GH-330
+ * Fix patched save in FieldTracker
+ * Upgrades test requirements (pytest, pytest-django, pytest-cov) and skips tox test with Python 3.5 and Django (trunk)
+ * Add UUIDModel and UUIDField support.
+- Remove upstream merged fix-deferred.patch
+
+-------------------------------------------------------------------
Old:
----
django-model-utils-3.1.2.tar.gz
fix-deferred.patch
New:
----
django-model-utils-3.2.0.tar.gz
use-sqlite.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-model-utils.spec ++++++
--- /var/tmp/diff_new_pack.aAstrw/_old 2019-07-03 15:15:00.950965880 +0200
+++ /var/tmp/diff_new_pack.aAstrw/_new 2019-07-03 15:15:00.954965888 +0200
@@ -17,16 +17,15 @@
Name: python-django-model-utils
-Version: 3.1.2
+Version: 3.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/3.1.2.tar.gz#/django-model-utils-%{version}.tar.gz
-# Slightly modified https://github.com/jazzband/django-model-utils/commit/15f9393.patch
-# to patch cleanly against 3.1.2
-Patch0: fix-deferred.patch
+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
+Patch0: use-sqlite.patch
BuildRequires: %{python_module Django >= 1.4.2}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest-django}
@@ -51,8 +50,8 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-export PYTHONPATH=.
-%python_expand django-admin-%{$python_bin_suffix} test --settings=tests.settings
+# skip JoinManagerTest tests as they need proper DB (pgsql/mysql)
+%pytest -k 'not JoinManagerTest'
%files %{python_files}
%license LICENSE.txt
++++++ django-model-utils-3.1.2.tar.gz -> django-model-utils-3.2.0.tar.gz ++++++
++++ 2502 lines of diff (skipped)
++++++ use-sqlite.patch ++++++
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 = (
'tests',
)
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'
},
}
SECRET_KEY = 'dummy'