pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-cattrs



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Feb 22 11:10:44 UTC 2026

Modified Files:
        pkgsrc/devel/py-cattrs: Makefile PLIST distinfo

Log Message:
py-cattrs: update to 26.1.0.

## 26.1.0 (2026-02-18)

- Add the {mod}`tomllib <cattrs.preconf.tomllib>` preconf converter.
  See [here](https://catt.rs/en/latest/preconf.html#tomllib) for details.
  ([#716](https://github.com/python-attrs/cattrs/pull/716))
- Customizing un/structuring of _attrs_ classes, dataclasses, TypedDicts and dict NamedTuples is now possible by using `Annotated[T, override()]` on fields.
  See [here](https://catt.rs/en/stable/customizing.html#using-typing-annotated-t-override) for more details.
  ([#717](https://github.com/python-attrs/cattrs/pull/717))
- Fix structuring of nested generic classes with stringified annotations.
  ([#688](https://github.com/python-attrs/cattrs/pull/688))
- Python 3.9 is no longer supported, as it is end-of-life. Use previous versions on this Python version.
  ([#698](https://github.com/python-attrs/cattrs/pull/698))
- Apply the attrs converter to the default value before checking if it is equal to the attribute's value, when `omit_if_default` is true and an attrs converter is specified.
  ([#696](https://github.com/python-attrs/cattrs/pull/696))
- Use the optional `_value_` type hint to structure and unstructure enums if present.
  ([#699](https://github.com/python-attrs/cattrs/issues/699))
- Aliases (when in use) now properly generate rename metadata in generated hooks.
  ([#706](https://github.com/python-attrs/cattrs/issues/706) [#710](https://github.com/python-attrs/cattrs/pull/710))
- _cattrs_ now tracks performance using [codspeed](https://codspeed.io/python-attrs/cattrs).
  ([#703](https://github.com/python-attrs/cattrs/pull/703))
- The {mod}`tomlkit <cattrs.preconf.tomlkit>` preconf converter now properly handles native `date` objects when structuring.
  ([#707](https://github.com/python-attrs/cattrs/issues/707) [#708](https://github.com/python-attrs/cattrs/pull/708))
- The {mod}`tomlkit <cattrs.preconf.tomlkit>` preconf converter now passes date objects directly to _tomlkit_ for unstructuring.
  ([#707](https://github.com/python-attrs/cattrs/issues/707) [#708](https://github.com/python-attrs/cattrs/pull/708))
- Enum handling has been optimized by switching to hook factories, improving performance especially for plain enums.
  ([#705](https://github.com/python-attrs/cattrs/pull/705))
- Fix {func}`cattrs.strategies.include_subclasses` when used with {func}`cattrs.strategies.configure_tagged_union` and classes using diamond inheritance.
  ([#685](https://github.com/python-attrs/cattrs/issues/685) [#713](https://github.com/python-attrs/cattrs/pull/713))
- Fix {func}`cattrs.strategies.configure_tagged_union` when used with recursive type aliases.
  ([#678](https://github.com/python-attrs/cattrs/issues/678) [#714](https://github.com/python-attrs/cattrs/pull/714))


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-cattrs/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-cattrs/PLIST
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-cattrs/distinfo

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

Modified files:

Index: pkgsrc/devel/py-cattrs/Makefile
diff -u pkgsrc/devel/py-cattrs/Makefile:1.14 pkgsrc/devel/py-cattrs/Makefile:1.15
--- pkgsrc/devel/py-cattrs/Makefile:1.14        Sun Oct 12 17:55:12 2025
+++ pkgsrc/devel/py-cattrs/Makefile     Sun Feb 22 11:10:44 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2025/10/12 17:55:12 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2026/02/22 11:10:44 wiz Exp $
 
-DISTNAME=      cattrs-25.3.0
+DISTNAME=      cattrs-26.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cattrs/}
@@ -20,6 +20,7 @@ DEPENDS+=     ${PYPKGPREFIX}-typing-extensio
 TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=7.6.1:../../devel/py-coverage
 TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=6.111.2:../../devel/py-hypothesis
 TEST_DEPENDS+= ${PYPKGPREFIX}-immutables>=0.20:../../misc/py-immutables
+TEST_DEPENDS+= ${PYPKGPREFIX}-orjson>=0:../../textproc/py-orjson
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark>=4.0.0:../../devel/py-test-benchmark
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist>=3.6.1:../../devel/py-test-xdist
 # not listed in pyproject but used

Index: pkgsrc/devel/py-cattrs/PLIST
diff -u pkgsrc/devel/py-cattrs/PLIST:1.7 pkgsrc/devel/py-cattrs/PLIST:1.8
--- pkgsrc/devel/py-cattrs/PLIST:1.7    Sun Oct 12 17:55:12 2025
+++ pkgsrc/devel/py-cattrs/PLIST        Sun Feb 22 11:10:44 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2025/10/12 17:55:12 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2026/02/22 11:10:44 wiz Exp $
 ${PYSITELIB}/cattr/__init__.py
 ${PYSITELIB}/cattr/__init__.pyc
 ${PYSITELIB}/cattr/__init__.pyo
@@ -67,6 +67,9 @@ ${PYSITELIB}/cattrs/disambiguators.pyo
 ${PYSITELIB}/cattrs/dispatch.py
 ${PYSITELIB}/cattrs/dispatch.pyc
 ${PYSITELIB}/cattrs/dispatch.pyo
+${PYSITELIB}/cattrs/enums.py
+${PYSITELIB}/cattrs/enums.pyc
+${PYSITELIB}/cattrs/enums.pyo
 ${PYSITELIB}/cattrs/errors.py
 ${PYSITELIB}/cattrs/errors.pyc
 ${PYSITELIB}/cattrs/errors.pyo
@@ -121,6 +124,9 @@ ${PYSITELIB}/cattrs/preconf/pyyaml.pyo
 ${PYSITELIB}/cattrs/preconf/tomlkit.py
 ${PYSITELIB}/cattrs/preconf/tomlkit.pyc
 ${PYSITELIB}/cattrs/preconf/tomlkit.pyo
+${PYSITELIB}/cattrs/preconf/tomllib.py
+${PYSITELIB}/cattrs/preconf/tomllib.pyc
+${PYSITELIB}/cattrs/preconf/tomllib.pyo
 ${PYSITELIB}/cattrs/preconf/ujson.py
 ${PYSITELIB}/cattrs/preconf/ujson.pyc
 ${PYSITELIB}/cattrs/preconf/ujson.pyo

Index: pkgsrc/devel/py-cattrs/distinfo
diff -u pkgsrc/devel/py-cattrs/distinfo:1.12 pkgsrc/devel/py-cattrs/distinfo:1.13
--- pkgsrc/devel/py-cattrs/distinfo:1.12        Sun Oct 12 17:55:12 2025
+++ pkgsrc/devel/py-cattrs/distinfo     Sun Feb 22 11:10:44 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2025/10/12 17:55:12 wiz Exp $
+$NetBSD: distinfo,v 1.13 2026/02/22 11:10:44 wiz Exp $
 
-BLAKE2s (cattrs-25.3.0.tar.gz) = e9155b4790dda0a5f3685ade8fd1587f2efb9a9249548e344bc9dd2fea6be6f1
-SHA512 (cattrs-25.3.0.tar.gz) = b82a77d9d2c3d33c75ebbdd064e434bcc10948ce171bdabeffdaef460f7fb41a4ee9391e0e0479f8186d55ec9d82877039f601e253d3e9c36a46cfccd6092a27
-Size (cattrs-25.3.0.tar.gz) = 509321 bytes
+BLAKE2s (cattrs-26.1.0.tar.gz) = 584c97d27ba615d2a1f8ee5a47ef53c6c43f9a2baf7a6cb93d603a7241c13bf5
+SHA512 (cattrs-26.1.0.tar.gz) = 4040d9d9d41a2ceaf3c13cc6b35a8b30549a3a61f23d81cb5935c1cb74a9ed8465bbc7e720b5de8bbdfc8d71341bf063a096848be374bef1af3c3f844105b6cd
+Size (cattrs-26.1.0.tar.gz) = 495672 bytes



Home | Main Index | Thread Index | Old Index