Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-import-export for
openSUSE:Factory checked in at 2025-02-26 17:19:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-import-export (Old)
and /work/SRC/openSUSE:Factory/.python-django-import-export.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-import-export"
Wed Feb 26 17:19:40 2025 rev:8 rq:1248528 version:4.3.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-import-export/python-django-import-export.changes
2024-11-14 16:10:40.899748738 +0100
+++
/work/SRC/openSUSE:Factory/.python-django-import-export.new.1873/python-django-import-export.changes
2025-02-26 17:20:34.276355694 +0100
@@ -1,0 +2,21 @@
+Wed Feb 26 00:36:22 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Update to 4.3.7:
+ * Update French translation
+ * Add flag to ignore empty rows in XLSX import
+ * Add support for Django 5.2
+ * Fix Chinese translation
+ * Clarify documentation on creating non-existent relations
+ * Update Turkish translations
+ * Handle QuerySets called with values() on export
+ * Update all translations
+ * Updated Farsi translation
+ * Updated German translation
+ * Fix imports for openpyxl
+ * Addition of import & export management commands
+ * Handle IllegalCharacterError in xlsx exports
+ * Add __repr__ method to InvalidRow for improved debugging
+- Add patch override-x-csv.patch:
+ * Hackily override CSV mimetype.
+
+-------------------------------------------------------------------
Old:
----
django_import_export-4.2.1.tar.gz
New:
----
django_import_export-4.3.7.tar.gz
override-x-csv.patch
BETA DEBUG BEGIN:
New: * Add __repr__ method to InvalidRow for improved debugging
- Add patch override-x-csv.patch:
* Hackily override CSV mimetype.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-import-export.spec ++++++
--- /var/tmp/diff_new_pack.RqJYnc/_old 2025-02-26 17:20:34.900381809 +0100
+++ /var/tmp/diff_new_pack.RqJYnc/_new 2025-02-26 17:20:34.904381977 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-django-import-export
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,15 @@
%{?sle15_python_module_pythons}
Name: python-django-import-export
-Version: 4.2.1
+Version: 4.3.7
Release: 0
Summary: Django data importing and exporting
License: BSD-2-Clause
URL: https://github.com/django-import-export/django-import-export
Source:
https://files.pythonhosted.org/packages/source/d/django-import-export/django_import_export-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Override x-comma-seperated-values to csv
+Patch0: override-x-csv.patch
+BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
@@ -35,11 +38,18 @@
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Django >= 4.2}
+BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module diff-match-patch}
+BuildRequires: %{python_module odfpy}
+BuildRequires: %{python_module openpyxl >= 2.6}
+BuildRequires: %{python_module pandas}
BuildRequires: %{python_module psycopg2}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module tablib >= 3.7}
+BuildRequires: %{python_module tabulate}
+BuildRequires: %{python_module xlrd}
+BuildRequires: %{python_module xlwt}
# /SECTION
%python_subpackages
@@ -47,7 +57,7 @@
Django application and library for importing and exporting data with included
admin integration.
%prep
-%setup -q -n django_import_export-%{version}
+%autosetup -p1 -n django_import_export-%{version}
# Fix postgres specific field
sed -i '/data_field/d' tests/core/migrations/0004_bookwithchapters.py
++++++ django_import_export-4.2.1.tar.gz -> django_import_export-4.3.7.tar.gz
++++++
++++ 7147 lines of diff (skipped)
++++++ override-x-csv.patch ++++++
Index: django_import_export-4.3.7/import_export/command_utils.py
===================================================================
--- django_import_export-4.3.7.orig/import_export/command_utils.py
+++ django_import_export-4.3.7/import_export/command_utils.py
@@ -59,6 +59,8 @@ def get_format_class(format_name, file_n
else:
# Determine MIME type from file name
mimetype, file_encoding = mimetypes.guess_type(file_name)
+ if mimetype == "text/x-comma-separated-values":
+ mimetype = "text/csv"
if not mimetype:
raise CommandError(