pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-itemloaders



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Oct  5 05:10:13 UTC 2026

Modified Files:
        pkgsrc/textproc/py-itemloaders: Makefile distinfo

Log Message:
py-itemloaders: updated to 1.5.0

itemloaders 1.5.0 (2026-09-29)

- **Backward-incompatible change:** when an Item Loader instantiates the
  item itself, from :attr:`~ItemLoader.default_item_class`, the field
  defaults of that item are no longer treated as collected data, so they no
  longer go through processors and no longer get combined with the values
  you add. They still reach the loaded item for fields that get no data.

  To get the old behavior, pass the item yourself, e.g.
  ``ItemLoader(item=MyItem())``.

- **Backward-incompatible change:** sets and iterators other than generators,
  such as the result of :func:`map`, are now collected value by value, like
  lists, tuples and generators already were, instead of as a single value.

  To collect one of them as a single value, wrap it in a list, e.g.
  ``loader.add_value("tags", [{"a", "b"}])``.

- Added a *stats* parameter to :class:`ItemLoader` to count how often each
  parsing rule matches, to find rules that are no longer needed. See
  :ref:`rule-usage`.

- :ref:`Nested loaders <nested-loaders>` now inherit the
  :ref:`context <loaders-context>` of their parent loader, with keyword
  arguments passed to :meth:`~ItemLoader.nested_xpath` and
  :meth:`~ItemLoader.nested_css` taking precedence.

- Fixed :func:`functools.partial` processors missing their
  ``loader_context`` when the value of a positionally-bound argument matched
  the name of an unbound parameter, e.g. ``partial(func, "loader_context")``.

- Improved performance.

- Documentation improvements.

- CI and test improvements.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/textproc/py-itemloaders/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/py-itemloaders/distinfo

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

Modified files:

Index: pkgsrc/textproc/py-itemloaders/Makefile
diff -u pkgsrc/textproc/py-itemloaders/Makefile:1.14 pkgsrc/textproc/py-itemloaders/Makefile:1.15
--- pkgsrc/textproc/py-itemloaders/Makefile:1.14        Sun Jun 28 15:41:39 2026
+++ pkgsrc/textproc/py-itemloaders/Makefile     Mon Oct  5 05:10:13 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2026/06/28 15:41:39 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2026/10/05 05:10:13 adam Exp $
 
-DISTNAME=      itemloaders-1.4.0
+DISTNAME=      itemloaders-1.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=i/itemloaders/}

Index: pkgsrc/textproc/py-itemloaders/distinfo
diff -u pkgsrc/textproc/py-itemloaders/distinfo:1.9 pkgsrc/textproc/py-itemloaders/distinfo:1.10
--- pkgsrc/textproc/py-itemloaders/distinfo:1.9 Mon Feb  9 12:58:47 2026
+++ pkgsrc/textproc/py-itemloaders/distinfo     Mon Oct  5 05:10:13 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2026/02/09 12:58:47 adam Exp $
+$NetBSD: distinfo,v 1.10 2026/10/05 05:10:13 adam Exp $
 
-BLAKE2s (itemloaders-1.4.0.tar.gz) = 4f3c4171fb57797655ae9500187900fb97125f92ad51e0772ae53850ebb4961c
-SHA512 (itemloaders-1.4.0.tar.gz) = cb5b70584043a33b92bf54d669c9f302ea8951f014663b889e0abc2d37c6877cf464bdc32f2c4356232aa3236a84a823b5641ed4e540f4b81b4a365c5f5f36df
-Size (itemloaders-1.4.0.tar.gz) = 29740 bytes
+BLAKE2s (itemloaders-1.5.0.tar.gz) = b88b53728c19435145a92ccd9be74530b7600501524718609514bdf50abeb339
+SHA512 (itemloaders-1.5.0.tar.gz) = 738eed580cffff7d6b5ce1007ae9e86cc8eafdade392cb81a8a55bbe44b11f4f63c66f2719c6a5f003aebc6e2484f1bff308e3ad0b0bb296d72d281f94edbdf3
+Size (itemloaders-1.5.0.tar.gz) = 36360 bytes



Home | Main Index | Thread Index | Old Index