Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-localflavor for openSUSE:Factory checked in at 2024-11-12 19:21:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-localflavor (Old) and /work/SRC/openSUSE:Factory/.python-django-localflavor.new.2017 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-localflavor" Tue Nov 12 19:21:54 2024 rev:5 rq:1223457 version:4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-localflavor/python-django-localflavor.changes 2023-04-24 22:31:09.515491145 +0200 +++ /work/SRC/openSUSE:Factory/.python-django-localflavor.new.2017/python-django-localflavor.changes 2024-11-12 19:22:48.186939879 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 12:16:21 UTC 2024 - Markéta Machová <mmach...@suse.com> + +- Add upstream dj5.patch to fix tests with new Django + +------------------------------------------------------------------- New: ---- dj5.patch BETA DEBUG BEGIN: New: - Add upstream dj5.patch to fix tests with new Django BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-localflavor.spec ++++++ --- /var/tmp/diff_new_pack.6m4FLd/_old 2024-11-12 19:22:49.286985811 +0100 +++ /var/tmp/diff_new_pack.6m4FLd/_new 2024-11-12 19:22:49.286985811 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-django-localflavor # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 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,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 Name: python-django-localflavor Version: 4.0 Release: 0 @@ -27,6 +24,8 @@ Group: Development/Languages/Python URL: https://github.com/django/django-localflavor Source: https://github.com/django/django-localflavor/archive/%{version}.tar.gz#/django-localflavor-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/django/django-localflavor/commit/a0bb1b5b56be1d3f1a4ebb886621961b458ab74e Fix # 502 -- Update Python and Django versions +Patch0: dj5.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,7 +44,7 @@ Country-specific Django helpers. %prep -%setup -q -n django-localflavor-%{version} +%autosetup -p1 -n django-localflavor-%{version} %build %python_build @@ -60,5 +59,6 @@ %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/*localflavor*/ +%{python_sitelib}/localflavor +%{python_sitelib}/django_localflavor-%{version}*info ++++++ dj5.patch ++++++ >From a0bb1b5b56be1d3f1a4ebb886621961b458ab74e Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre <pa...@melchiorre.org> Date: Sun, 26 Nov 2023 17:24:18 +0100 Subject: [PATCH] Fix # 502 -- Update Python and Django versions --- .github/workflows/test.yml | 11 ++++++----- docs/authors.rst | 1 + docs/changelog.rst | 3 +++ setup.py | 3 ++- tests/test_by/tests.py | 2 +- tox.ini | 7 ++++--- 6 files changed, 17 insertions(+), 10 deletions(-) diff --git a/tests/test_by/tests.py b/tests/test_by/tests.py index 0074bf34..c21c03ad 100644 --- a/tests/test_by/tests.py +++ b/tests/test_by/tests.py @@ -53,7 +53,7 @@ def test_form_fields(self): def test_BYRegions_select(self): """Test that BYRegionField has valid choices""" choices = self.form.fields.get('region').choices - self.assertEqual(tuple(choices[1:]), forms.BY_REGIONS_CHOICES) + self.assertEqual(tuple(choices)[1:], forms.BY_REGIONS_CHOICES) def test_BYRegionSelect(self): self.maxDiff = None