pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-django-import-export



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon May  6 08:13:24 UTC 2024

Modified Files:
        pkgsrc/www/py-django-import-export: Makefile PLIST distinfo

Log Message:
py-django-import-export: updated to 4.0.0

4.0.0 (2024-04-27)

Version 4 introduces breaking changes.  Please refer to :doc:`release notes<release_notes>`.

Deprecations

- Removed v3 deprecations
- Deprecation of ``ExportViewFormMixin``

Enhancements

- Refactor ordering logic

  - Refactor 'diff' logic to avoid calling dehydrate methods

  - Refactor declarations of ``fields``, ``import_order`` and ``export_order`` to fix ordering issues

- refactor to export HTML / formulae escaping updates
- removed unused variable ``Result.new_record``
- Refactor ``resources.py`` to standardise method args
- added specific check for missing ``import_id_fields``
- Enable optional tablib dependencies
- added :meth:`~import_export.widgets.ForeignKeyWidget.get_lookup_kwargs` to make it easier to override object lookup
- Standardised interface of :meth:`~import_export.widgets.Widget.render`
- Fix declaring existing model field(s) in ModelResource altering export order
- Added :meth:`~import_export.resources.Resource.do_instance_save` helper method
- Enable defining Resource model as a string
- Support multiple Resources for export
- Support export from model change form
- Import form defaults to read-only field if only one format defined
- Updated Admin UI to track deleted and skipped Imports
- Added customizable ``MediaStorage``
- Added customization of Admin UI import error messages
- Improve output of error messages
- Added feature: selectable fields for admin export view
- Added specific check for declared :attr:`~import_export.options.ResourceOptions.import_id_fields` not in dataset
- added try / catch to :meth:`~import_export.results.RowResult.add_instance_info` to handle unserializable instances
- Add form error if source file contains invalid header
- Remove unneeded format method overrides
- Support dynamic selection of Resource class based on request property

Fixes

- dynamic widget parameters for CharField fixes 'NOT NULL constraint' error in xlsx
- fix cooperation with adminsortable2
- Removed unused method ``utils.original()``
- Fix deprecated ``log_action`` method
- fix multiple inheritance not setting options
- Fix issue where declared Resource fields not defined in ``fields`` are still imported
- Fixed handling of :attr:`~import_export.exceptions.FieldError` during Admin import
- Fixed handling of django ``FieldError`` during Admin export
- Add check for type to :meth:`~import_export.widgets.Widget.render`
- fix: YAML export does not work with SafeString
- fix: :meth:`~import_export.widgets.SimpleArrayWidget.render` crashes if value is ``None``
- fix form not being passed to ``get_import_resource_kwargs()``
- Fix: Missing default widget for ``PositiveBigIntegerField``

Development

- Refactor build process
- Refactored ``test_admin_integration()``: split into smaller test modules
- Refactored ``test_resources()``: split into smaller test modules
- Updated ``docker-compose`` command with latest version syntax in ``runtests.sh``
- Refactored :mod:`~import_export.resources` into separate modules for ``declarative`` and ``options``
- Refactored tests to remove dependencies between tests
- Handle python3.12 datetime deprecations
- Refactor ``test_resources.py`` into smaller modules
- Updated test coverage to include error row when ``collect_failed_rows`` is ``True``
- Removed support for django 3.2
- Added test for widgets generating by model fields

Documentation

- Clarified ``skip_diff`` documentation
- Improved documentation relating to validation on import
- Added FAQ entry for exporting large datasets
- Relocated admin integration section from advanced_usage.rst into new file
- Updated Admin integration documentation to clarify how to save custom form values

Performance

- Fix slow export with ForeignKey id

i18n

- updated translations for release-4


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/www/py-django-import-export/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/www/py-django-import-export/PLIST
cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/py-django-import-export/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-django-import-export/Makefile
diff -u pkgsrc/www/py-django-import-export/Makefile:1.24 pkgsrc/www/py-django-import-export/Makefile:1.25
--- pkgsrc/www/py-django-import-export/Makefile:1.24    Wed Apr 10 08:50:33 2024
+++ pkgsrc/www/py-django-import-export/Makefile Mon May  6 08:13:24 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2024/04/10 08:50:33 adam Exp $
+# $NetBSD: Makefile,v 1.25 2024/05/06 08:13:24 adam Exp $
 
-DISTNAME=      django-import-export-3.3.8
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+DISTNAME=      django_import_export-4.0.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-import-export/}
 
@@ -10,7 +10,8 @@ HOMEPAGE=     https://github.com/django-impo
 COMMENT=       Django application and library for importing and exporting data
 LICENSE=       modified-bsd
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=60:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=7.1.0:../../devel/py-setuptools_scm
 TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-diff-match-patch-[0-9]*:../../textproc/py-diff-match-patch
 DEPENDS+=      ${PYPKGPREFIX}-django>=3.2:../../www/py-django

Index: pkgsrc/www/py-django-import-export/PLIST
diff -u pkgsrc/www/py-django-import-export/PLIST:1.10 pkgsrc/www/py-django-import-export/PLIST:1.11
--- pkgsrc/www/py-django-import-export/PLIST:1.10       Thu Dec 14 10:47:19 2023
+++ pkgsrc/www/py-django-import-export/PLIST    Mon May  6 08:13:24 2024
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.10 2023/12/14 10:47:19 adam Exp $
+@comment $NetBSD: PLIST,v 1.11 2024/05/06 08:13:24 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -7,9 +8,15 @@ ${PYSITELIB}/${WHEEL_INFODIR}/top_level.
 ${PYSITELIB}/import_export/__init__.py
 ${PYSITELIB}/import_export/__init__.pyc
 ${PYSITELIB}/import_export/__init__.pyo
+${PYSITELIB}/import_export/_version.py
+${PYSITELIB}/import_export/_version.pyc
+${PYSITELIB}/import_export/_version.pyo
 ${PYSITELIB}/import_export/admin.py
 ${PYSITELIB}/import_export/admin.pyc
 ${PYSITELIB}/import_export/admin.pyo
+${PYSITELIB}/import_export/declarative.py
+${PYSITELIB}/import_export/declarative.pyc
+${PYSITELIB}/import_export/declarative.pyo
 ${PYSITELIB}/import_export/exceptions.py
 ${PYSITELIB}/import_export/exceptions.pyc
 ${PYSITELIB}/import_export/exceptions.pyo
@@ -73,6 +80,9 @@ ${PYSITELIB}/import_export/locale/zh_Han
 ${PYSITELIB}/import_export/mixins.py
 ${PYSITELIB}/import_export/mixins.pyc
 ${PYSITELIB}/import_export/mixins.pyo
+${PYSITELIB}/import_export/options.py
+${PYSITELIB}/import_export/options.pyc
+${PYSITELIB}/import_export/options.pyo
 ${PYSITELIB}/import_export/resources.py
 ${PYSITELIB}/import_export/resources.pyc
 ${PYSITELIB}/import_export/resources.pyo
@@ -82,10 +92,12 @@ ${PYSITELIB}/import_export/results.pyo
 ${PYSITELIB}/import_export/signals.py
 ${PYSITELIB}/import_export/signals.pyc
 ${PYSITELIB}/import_export/signals.pyo
-${PYSITELIB}/import_export/static/import_export/action_formats.js
+${PYSITELIB}/import_export/static/import_export/export.css
+${PYSITELIB}/import_export/static/import_export/export_selectable_fields.js
 ${PYSITELIB}/import_export/static/import_export/guess_format.js
 ${PYSITELIB}/import_export/static/import_export/import.css
 ${PYSITELIB}/import_export/templates/admin/import_export/base.html
+${PYSITELIB}/import_export/templates/admin/import_export/change_form.html
 ${PYSITELIB}/import_export/templates/admin/import_export/change_list.html
 ${PYSITELIB}/import_export/templates/admin/import_export/change_list_export.html
 ${PYSITELIB}/import_export/templates/admin/import_export/change_list_export_item.html

Index: pkgsrc/www/py-django-import-export/distinfo
diff -u pkgsrc/www/py-django-import-export/distinfo:1.21 pkgsrc/www/py-django-import-export/distinfo:1.22
--- pkgsrc/www/py-django-import-export/distinfo:1.21    Wed Apr 10 08:50:33 2024
+++ pkgsrc/www/py-django-import-export/distinfo Mon May  6 08:13:24 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2024/04/10 08:50:33 adam Exp $
+$NetBSD: distinfo,v 1.22 2024/05/06 08:13:24 adam Exp $
 
-BLAKE2s (django-import-export-3.3.8.tar.gz) = 7700b675f3dfad27b05a4ed8919b4859b59146cce5b35edd943330e7cc7feb65
-SHA512 (django-import-export-3.3.8.tar.gz) = 0bb19da6e6f4f62fa3735ca208b3efa008c517591e85df9b1a0990f7893437edf362923859e8f2d1bdb272ae4926cb8eca804d1b7971d5ee01b01629da445b7a
-Size (django-import-export-3.3.8.tar.gz) = 63833 bytes
+BLAKE2s (django_import_export-4.0.0.tar.gz) = 69fc461ddbe9bc85cd0e01a24a49919007bc10f27517b6b05aa8ac49b0bedb2d
+SHA512 (django_import_export-4.0.0.tar.gz) = c0206aaf9c97f280250f03c1d648e744b77ed11b0b986481f21971737879cd25d7cc4c9b8aaca9a1235630278b7008570ba8e69f517b4932115c699ad5e2f5fa
+Size (django_import_export-4.0.0.tar.gz) = 550528 bytes



Home | Main Index | Thread Index | Old Index