Skip to content

Commit 31daaa6

Browse files
committed
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](python-attrs/cattrs#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](python-attrs/cattrs#717)) - Fix structuring of nested generic classes with stringified annotations. ([#688](python-attrs/cattrs#688)) - Python 3.9 is no longer supported, as it is end-of-life. Use previous versions on this Python version. ([#698](python-attrs/cattrs#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](python-attrs/cattrs#696)) - Use the optional `_value_` type hint to structure and unstructure enums if present. ([#699](python-attrs/cattrs#699)) - Aliases (when in use) now properly generate rename metadata in generated hooks. ([#706](python-attrs/cattrs#706) [#710](python-attrs/cattrs#710)) - _cattrs_ now tracks performance using [codspeed](https://codspeed.io/python-attrs/cattrs). ([#703](python-attrs/cattrs#703)) - The {mod}`tomlkit <cattrs.preconf.tomlkit>` preconf converter now properly handles native `date` objects when structuring. ([#707](python-attrs/cattrs#707) [#708](python-attrs/cattrs#708)) - The {mod}`tomlkit <cattrs.preconf.tomlkit>` preconf converter now passes date objects directly to _tomlkit_ for unstructuring. ([#707](python-attrs/cattrs#707) [#708](python-attrs/cattrs#708)) - Enum handling has been optimized by switching to hook factories, improving performance especially for plain enums. ([#705](python-attrs/cattrs#705)) - Fix {func}`cattrs.strategies.include_subclasses` when used with {func}`cattrs.strategies.configure_tagged_union` and classes using diamond inheritance. ([#685](python-attrs/cattrs#685) [#713](python-attrs/cattrs#713)) - Fix {func}`cattrs.strategies.configure_tagged_union` when used with recursive type aliases. ([#678](python-attrs/cattrs#678) [#714](python-attrs/cattrs#714))
1 parent 58deca9 commit 31daaa6

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

devel/py-cattrs/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.14 2025/10/12 17:55:12 wiz Exp $
1+
# $NetBSD: Makefile,v 1.15 2026/02/22 11:10:44 wiz Exp $
22

3-
DISTNAME= cattrs-25.3.0
3+
DISTNAME= cattrs-26.1.0
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
55
CATEGORIES= devel python
66
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cattrs/}
@@ -20,6 +20,7 @@ DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.12.2:../../devel/py-typing-extensi
2020
TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=7.6.1:../../devel/py-coverage
2121
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=6.111.2:../../devel/py-hypothesis
2222
TEST_DEPENDS+= ${PYPKGPREFIX}-immutables>=0.20:../../misc/py-immutables
23+
TEST_DEPENDS+= ${PYPKGPREFIX}-orjson>=0:../../textproc/py-orjson
2324
TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark>=4.0.0:../../devel/py-test-benchmark
2425
TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist>=3.6.1:../../devel/py-test-xdist
2526
# not listed in pyproject but used

devel/py-cattrs/PLIST

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.7 2025/10/12 17:55:12 wiz Exp $
1+
@comment $NetBSD: PLIST,v 1.8 2026/02/22 11:10:44 wiz Exp $
22
${PYSITELIB}/cattr/__init__.py
33
${PYSITELIB}/cattr/__init__.pyc
44
${PYSITELIB}/cattr/__init__.pyo
@@ -67,6 +67,9 @@ ${PYSITELIB}/cattrs/disambiguators.pyo
6767
${PYSITELIB}/cattrs/dispatch.py
6868
${PYSITELIB}/cattrs/dispatch.pyc
6969
${PYSITELIB}/cattrs/dispatch.pyo
70+
${PYSITELIB}/cattrs/enums.py
71+
${PYSITELIB}/cattrs/enums.pyc
72+
${PYSITELIB}/cattrs/enums.pyo
7073
${PYSITELIB}/cattrs/errors.py
7174
${PYSITELIB}/cattrs/errors.pyc
7275
${PYSITELIB}/cattrs/errors.pyo
@@ -121,6 +124,9 @@ ${PYSITELIB}/cattrs/preconf/pyyaml.pyo
121124
${PYSITELIB}/cattrs/preconf/tomlkit.py
122125
${PYSITELIB}/cattrs/preconf/tomlkit.pyc
123126
${PYSITELIB}/cattrs/preconf/tomlkit.pyo
127+
${PYSITELIB}/cattrs/preconf/tomllib.py
128+
${PYSITELIB}/cattrs/preconf/tomllib.pyc
129+
${PYSITELIB}/cattrs/preconf/tomllib.pyo
124130
${PYSITELIB}/cattrs/preconf/ujson.py
125131
${PYSITELIB}/cattrs/preconf/ujson.pyc
126132
${PYSITELIB}/cattrs/preconf/ujson.pyo

devel/py-cattrs/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.12 2025/10/12 17:55:12 wiz Exp $
1+
$NetBSD: distinfo,v 1.13 2026/02/22 11:10:44 wiz Exp $
22

3-
BLAKE2s (cattrs-25.3.0.tar.gz) = e9155b4790dda0a5f3685ade8fd1587f2efb9a9249548e344bc9dd2fea6be6f1
4-
SHA512 (cattrs-25.3.0.tar.gz) = b82a77d9d2c3d33c75ebbdd064e434bcc10948ce171bdabeffdaef460f7fb41a4ee9391e0e0479f8186d55ec9d82877039f601e253d3e9c36a46cfccd6092a27
5-
Size (cattrs-25.3.0.tar.gz) = 509321 bytes
3+
BLAKE2s (cattrs-26.1.0.tar.gz) = 584c97d27ba615d2a1f8ee5a47ef53c6c43f9a2baf7a6cb93d603a7241c13bf5
4+
SHA512 (cattrs-26.1.0.tar.gz) = 4040d9d9d41a2ceaf3c13cc6b35a8b30549a3a61f23d81cb5935c1cb74a9ed8465bbc7e720b5de8bbdfc8d71341bf063a096848be374bef1af3c3f844105b6cd
5+
Size (cattrs-26.1.0.tar.gz) = 495672 bytes

0 commit comments

Comments
 (0)