Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-reversion for openSUSE:Factory checked in at 2021-12-29 21:10:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-reversion (Old) and /work/SRC/openSUSE:Factory/.python-django-reversion.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-reversion" Wed Dec 29 21:10:50 2021 rev:13 rq:942944 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-reversion/python-django-reversion.changes 2020-02-20 14:59:31.378775770 +0100 +++ /work/SRC/openSUSE:Factory/.python-django-reversion.new.2520/python-django-reversion.changes 2021-12-29 21:11:18.454302837 +0100 @@ -1,0 +2,27 @@ +Tue Dec 28 01:29:24 UTC 2021 - John Vandenberg <jay...@gmail.com> + +- Activate test suite using only-sqlite-test-db.patch +- Remove build dependencies mysqlclient & psycopg2 +- Update to v4.0.1 + * Django 4.0b support + * Optimized VersionQuerySet.get_deleted +- from v4.0.0 + * Breaking: The create_revision view decorator and RevisionMiddleware + no longer roll back the revision and database transaction on + response status code >= 400. It's the responsibility of the + view to use transaction.atomic() to roll back any invalid data. + This can be enabled globally by setting ATOMIC_REQUESTS=True. + * Fixing gettext plural forms with Django + * Deprecation removals + * Documentation fixes +- from v3.0.9 + * Significant speedup to Version.objects.get_deleted(...) + database query for PostgreSQL + * Testing against Django 3.1 + * Django 4.0 compatibility improvements +- from v3.0.8 + * Added use_natural_foreign_keys option to reversion.register() + * Documentation improvments and minor fixes + * Dropped support for Django 1.11 LTS. + +------------------------------------------------------------------- Old: ---- django-reversion-3.0.7.tar.gz New: ---- django-reversion-4.0.1.tar.gz only-sqlite-test-db.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-reversion.spec ++++++ --- /var/tmp/diff_new_pack.CT9v06/_old 2021-12-29 21:11:18.914303215 +0100 +++ /var/tmp/diff_new_pack.CT9v06/_new 2021-12-29 21:11:18.918303218 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-django-reversion # -# 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 @@ -19,19 +19,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-django-reversion -Version: 3.0.7 +Version: 4.0.1 Release: 0 Summary: A Django extension that provides version control for model instances License: BSD-3-Clause URL: https://github.com/etianen/django-reversion Source: https://files.pythonhosted.org/packages/source/d/django-reversion/django-reversion-%{version}.tar.gz -BuildRequires: %{python_module Django > 1.11} -BuildRequires: %{python_module mysqlclient} -BuildRequires: %{python_module psycopg2} +Patch0: only-sqlite-test-db.patch +BuildRequires: %{python_module Django > 2.0} +BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Django > 1.11 +Requires: python-Django > 2.0 Obsoletes: python-django-reversion-doc Obsoletes: python-django-reversion-lang BuildArch: noarch @@ -47,6 +47,10 @@ %prep %setup -q -n django-reversion-%{version} +# Tests need running PGSQL and MYSQL +# https://github.com/etianen/django-reversion/issues/902 +%patch0 -p1 +sed -i 's/databases = {"default", .*"postgres"}/databases = {"default"}/' tests/test_app/tests/test_*.py %build %python_build @@ -56,12 +60,13 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Tests need running PGSQL and MYSQL -#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/manage.py test tests +cd tests +export DJANGO_SETTINGS_MODULE=test_project.settings +%pytest -k 'not (testAddMetaMultDb or MultiDb or MySQL or MySql or Postgres or testCreateInitialRevisionsDb or testCreateInitialRevisionsModelDb or testDeleteRevisionsDb or testGetForModelDb or testGetForObjectDb or testGetForObjectModelDb or testGetForObjectReferenceModelDb or testGetDeletedDb or testGetDeletedModelDb or testDeleteRevisionsModelDb)' %files %{python_files} %doc README.rst CHANGELOG.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/*reversion*/ %changelog ++++++ django-reversion-3.0.7.tar.gz -> django-reversion-4.0.1.tar.gz ++++++ ++++ 1677 lines of diff (skipped) ++++++ only-sqlite-test-db.patch ++++++ commit 89982858fd1d7b070acba079dac8d35872541d4e Author: John Vandenberg <jay...@gmail.com> Date: Tue Dec 28 09:52:48 2021 +0800 Remove mysql and postgres databases diff --git a/tests/test_project/settings.py b/tests/test_project/settings.py index dc346d9..f07e648 100644 --- a/tests/test_project/settings.py +++ b/tests/test_project/settings.py @@ -81,20 +81,6 @@ DATABASES = { "ENGINE": "django.db.backends.sqlite3", "NAME": os.path.join(BASE_DIR, "db.sqlite3"), }, - "postgres": { - "ENGINE": "django.db.backends.postgresql_psycopg2", - "HOST": os.environ.get("DJANGO_DATABASE_HOST_POSTGRES", ""), - "NAME": os.environ.get("DJANGO_DATABASE_NAME_POSTGRES", "test_project"), - "USER": os.environ.get("DJANGO_DATABASE_USER_POSTGRES", getpass.getuser()), - "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_POSTGRES", ""), - }, - "mysql": { - "ENGINE": "django.db.backends.mysql", - "HOST": os.environ.get("DJANGO_DATABASE_HOST_MYSQL", ""), - "NAME": os.environ.get("DJANGO_DATABASE_NAME_MYSQL", "test_project"), - "USER": os.environ.get("DJANGO_DATABASE_USER_MYSQL", getpass.getuser()), - "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_MYSQL", ""), - }, }