#1108408 python3-django-import-export: does not ship templates or translations

#1108408#5
Date:
2025-06-27 19:49:08 UTC
From:
To:
Dear Maintainer,

The binary package is missing the HTML templates and the translations.
Without the templates, the Django admin integration, perhaps the main
feature of django-import-export, is completely broken.
---------------8<------------------8<------------------8<------------------
# from the source package
$ find import_export/ -type f | sort > /tmp/expected
$ find /usr/lib/python3/dist-packages/import_export/ -type f -and -not -name \*.pyc | cut -d / -f 6- | sort > /tmp/actual
$ diff -u /tmp/expected /tmp/actual
--- /tmp/expected	2025-06-27 16:42:08.028934497 -0300
+++ /tmp/actual	2025-06-27 16:42:18.989000028 -0300
@@ -8,48 +8,6 @@
 import_export/forms.py
 import_export/__init__.py
 import_export/instance_loaders.py
-import_export/locale/ar/LC_MESSAGES/django.mo
-import_export/locale/ar/LC_MESSAGES/django.po
-import_export/locale/bg/LC_MESSAGES/django.mo
-import_export/locale/bg/LC_MESSAGES/django.po
-import_export/locale/ca/LC_MESSAGES/django.mo
-import_export/locale/ca/LC_MESSAGES/django.po
-import_export/locale/cs/LC_MESSAGES/django.mo
-import_export/locale/cs/LC_MESSAGES/django.po
-import_export/locale/de/LC_MESSAGES/django.mo
-import_export/locale/de/LC_MESSAGES/django.po
-import_export/locale/es_AR/LC_MESSAGES/django.mo
-import_export/locale/es_AR/LC_MESSAGES/django.po
-import_export/locale/es/LC_MESSAGES/django.mo
-import_export/locale/es/LC_MESSAGES/django.po
-import_export/locale/fa/LC_MESSAGES/django.mo
-import_export/locale/fa/LC_MESSAGES/django.po
-import_export/locale/fi/LC_MESSAGES/django.mo
-import_export/locale/fi/LC_MESSAGES/django.po
-import_export/locale/fr/LC_MESSAGES/django.mo
-import_export/locale/fr/LC_MESSAGES/django.po
-import_export/locale/it/LC_MESSAGES/django.mo
-import_export/locale/it/LC_MESSAGES/django.po
-import_export/locale/ja/LC_MESSAGES/django.mo
-import_export/locale/ja/LC_MESSAGES/django.po
-import_export/locale/ko/LC_MESSAGES/django.mo
-import_export/locale/ko/LC_MESSAGES/django.po
-import_export/locale/kz/LC_MESSAGES/django.mo
-import_export/locale/kz/LC_MESSAGES/django.po
-import_export/locale/nl/LC_MESSAGES/django.mo
-import_export/locale/nl/LC_MESSAGES/django.po
-import_export/locale/pl/LC_MESSAGES/django.mo
-import_export/locale/pl/LC_MESSAGES/django.po
-import_export/locale/pt_BR/LC_MESSAGES/django.mo
-import_export/locale/pt_BR/LC_MESSAGES/django.po
-import_export/locale/ru/LC_MESSAGES/django.mo
-import_export/locale/ru/LC_MESSAGES/django.po
-import_export/locale/sk/LC_MESSAGES/django.mo
-import_export/locale/sk/LC_MESSAGES/django.po
-import_export/locale/tr/LC_MESSAGES/django.mo
-import_export/locale/tr/LC_MESSAGES/django.po
-import_export/locale/zh_Hans/LC_MESSAGES/django.mo
-import_export/locale/zh_Hans/LC_MESSAGES/django.po
 import_export/management/commands/export.py
 import_export/management/commands/import.py
 import_export/management/commands/__init__.py
@@ -59,23 +17,9 @@
 import_export/resources.py
 import_export/results.py
 import_export/signals.py
-import_export/static/import_export/export.css
-import_export/static/import_export/export_selectable_fields.js
-import_export/static/import_export/guess_format.js
-import_export/static/import_export/import.css
-import_export/templates/admin/import_export/base.html
-import_export/templates/admin/import_export/change_form.html
-import_export/templates/admin/import_export/change_list_export.html
-import_export/templates/admin/import_export/change_list_export_item.html
-import_export/templates/admin/import_export/change_list.html
-import_export/templates/admin/import_export/change_list_import_export.html
-import_export/templates/admin/import_export/change_list_import.html
-import_export/templates/admin/import_export/change_list_import_item.html
-import_export/templates/admin/import_export/export.html
-import_export/templates/admin/import_export/import.html
-import_export/templates/admin/import_export/resource_fields_list.html
 import_export/templatetags/import_export_tags.py
 import_export/templatetags/__init__.py
 import_export/tmp_storages.py
 import_export/utils.py
+import_export/_version.py
 import_export/widgets.py
---------------8<------------------8<------------------8<------------------

This is caused by the fact that the package uses setuptools_scm to
manage the contents of the package, and since during the build there is
no git repository, it only collects the *.py files to install.

I'm looking into a solution.

#1108408#8
Date:
2025-06-28 02:14:52 UTC
From:
To:
Hello,

Bug #1108408 in python-django-import-export reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-django-import-export/-/commit/429c2803888877b16d418cc5814fb69f60ef6cad
------------------------------------------------------------------------
debian/rules: build a MANIFEST.in from import_export/

This works around the fact that setuptools_scm won't install
translations or templates without a git repository present.

Closes: #1108408
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1108408

#1108408#15
Date:
2025-06-28 02:24:04 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-django-import-export, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1108408@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Terceiro <terceiro@debian.org> (supplier of updated python-django-import-export package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 27 Jun 2025 23:08:00 -0300
Source: python-django-import-export
Architecture: source
Version: 4.3.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Antonio Terceiro <terceiro@debian.org>
Closes: 1108408
Changes:
 python-django-import-export (4.3.5-2) unstable; urgency=medium
 .
   * debian/rules: provide correct PYBUILD_NAME
   * autopkgtest: replace dummy tests with a real integration test
   * debian/rules: build a MANIFEST.in from import_export/ (Closes: #1108408)
   * Run tests during build and under autopkgtest
Checksums-Sha1:
 9034d265372f76324199f4ff33b229228493f1f0 2423 python-django-import-export_4.3.5-2.dsc
 8f8a81f875e86d46480d8813967dfc20b793ba9f 3460 python-django-import-export_4.3.5-2.debian.tar.xz
 2e38a5104580a219b52fac4e8ea95a0fcb185afa 8152 python-django-import-export_4.3.5-2_arm64.buildinfo
Checksums-Sha256:
 9730e0c216300390c81d3d1d8ad3510306cfc94907fda80dd69130e8fb7518e2 2423 python-django-import-export_4.3.5-2.dsc
 e815ba2af9f36239aa7a3f726adf159e79df36bf3d125d8cb30f1caba0cab7f3 3460 python-django-import-export_4.3.5-2.debian.tar.xz
 76f0b90c4e20c3787c3ee5e75de054be6221a5d101b7324450c83e766176a981 8152 python-django-import-export_4.3.5-2_arm64.buildinfo
Files:
 6078de89d0ac3d1b2a446dbf3e683479 2423 python optional python-django-import-export_4.3.5-2.dsc
 e936ac942bd30b9059b9bef28471f479 3460 python optional python-django-import-export_4.3.5-2.debian.tar.xz
 f0b87a6eab3508098b7e9e2226a31714 8152 python optional python-django-import-export_4.3.5-2_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmhfT9MACgkQ/A2xu81G
C97PJhAAoBf0zAg5dH+Zt/cWuxgGEkgic8ivadQ6qWgxygroXIm3AxrEB5QKHcaX
To7IJnCqdm3NKrrm5mIJyQGMTA/PcfRK4798kQrOebWGLCTaVteAz/RNc2Kvgf2f
dktyIvI3lGClDz3qD3XVx+APUVQyp7Oor7XjijQ8fTslLeQTSGPJ8aKz+HvkRdXI
JMkh6P8IjZ9etrAGyBUCXv3FfnYR2ixDX9pJo0oSpeB8r4ZPUW7ZynzCsyC7WWNG
FMj5+G/3tcl2OZt3Jm2yvIgS0K5N+9ai0WysP2H3vonjI6dfq4plBHj+mjBgxXD6
+/GPOoz6LRRc8nRmK1iaI7U6OKaGgbvgLpmpp+8htEO22It+xCWTxTkGMZ4oyRo2
HX6UAM4hW3OGWf+H5xfkCB/z557pBhpsA35jLA6ji0q0rdKXu2uUpX1tDPC7qC1v
Z42Ctg/LeuSikv2orb3X2JSbQFTmal0A+ketB/ptnpv47Fn80GFH/ZDcr0TKWv8U
cd5HajNRSqPjoSW5yyiHhpOt+RJ6UCXLDoH2aCDMaaByyieeL0Q9epF7tywnmKB0
Ss4b0NeR1+1BLIILMpV53ukvfcazicRYB1roDRhJcmLMedf7ql8jBwfFYB8mgoK7
EWBrTjcZXOI+7TXwX7szbFm5uKWImbKsh65ezfjlIbcpiwrWw7I=
=swj+
-----END PGP SIGNATURE-----