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:   adam
Date:           Mon Sep  7 07:34:07 UTC 2026

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

Log Message:
py-cattrs: updated to 26.2.0

26.2.0 (2026-09-08)

- Fix the `msgpack` and `cbor2` converters unstructuring naive datetimes as local time, which made the serialized value depend on the timezone of the machine doing the unstructuring; naive datetimes 
are now assumed to be UTC, matching what the structure hooks already read back.
- Fix `override(rename=...)` targets containing a quote (or other characters not safe in a bare string literal) crashing code generation with `SyntaxError`; the rename key is now embedded with `repr`.
- Fix `Counter` keys not being unstructured with the key type's own hook; the single-type-arg branch passed the whole type-args tuple to the key hook lookup instead of the key type.
- Fix `create_default_dis_func <cattrs.disambiguators.create_default_dis_func>` (aka `create_uniq_field_dis_func`) failing to disambiguate valid unions depending on the order of the member classes; 
unique fields are now resolved iteratively to a fixpoint.
- Support more recursive types on 3.14+ with specialized factories for [`annotationlib.ForwardRef`](https://docs.python.org/3/library/annotationlib.html#annotationlib.ForwardRef).
- `Converter <cattrs.Converter>` now uses specialized hook factories to generate hooks for tuples, increasing speed.
- Fix an `AttributeError` in `cattrs` internals that could be triggered by using the `include_subclasses` strategy in a `structure_hook_factory`
- Fix TypedDict codegen when keys contain single quotes.
- Add `CattrsError` exception type: all exceptions raised by `cattrs` inherit from this.
  Literal and date-time validation raise this directly, instead of `Exception`.
- Fix the `detailed_validation` parameter being passed under the wrong name in {func}`namedtuple_dict_structure_factory <cattrs.cols.namedtuple_dict_structure_factory>`, causing it to be silently 
ignored.
- _cattrs_ is now autoformatted using Ruff.
- Support running the test suite without `cbor2` installed.
- The [union passthrough strategy](https://catt.rs/en/stable/strategies.html#union-passthrough) now supports PEP 695 type aliases as union members.
- {meth}`BaseConverter.register_structure_hook_factory` and {meth}`BaseConverter.register_unstructure_hook_factory` now properly return the factory when used as decorators.
- The {mod}`msgspec <cattrs.preconf.msgspec>` preconf converter now properly handles recursive classes on Python 3.14+.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/py-cattrs/Makefile
cvs rdiff -u -r1.13 -r1.14 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.15 pkgsrc/devel/py-cattrs/Makefile:1.16
--- pkgsrc/devel/py-cattrs/Makefile:1.15        Sun Feb 22 11:10:44 2026
+++ pkgsrc/devel/py-cattrs/Makefile     Mon Sep  7 07:34:06 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2026/02/22 11:10:44 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2026/09/07 07:34:06 adam Exp $
 
-DISTNAME=      cattrs-26.1.0
+DISTNAME=      cattrs-26.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cattrs/}
@@ -10,19 +10,18 @@ HOMEPAGE=   https://github.com/python-attr
 COMMENT=       Composable complex class support for attrs and dataclasses
 LICENSE=       mit
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>0:../../devel/py-hatch-vcs
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>0:../../devel/py-hatchling
-DEPENDS+=      ${PYPKGPREFIX}-attrs>=24.3.0:../../devel/py-attrs
-DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.12.2:../../devel/py-typing-extensions
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>=0:../../devel/py-hatch-vcs
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=25.4.0:../../devel/py-attrs
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.14.0:../../devel/py-typing-extensions
 # optional dependency
 # https://github.com/py-bson/bson/issues/122
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-bson>=0:../../wip/py-bson
-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
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=7.9.2:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=6.135.26:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-immutables>=0.21:../../misc/py-immutables
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark>=5.1.0:../../devel/py-test-benchmark
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist>=3.8.0:../../devel/py-test-xdist
 # not listed in pyproject but used
 TEST_DEPENDS+= ${PYPKGPREFIX}-msgspec>=0:../../devel/py-msgspec
 TEST_DEPENDS+= ${PYPKGPREFIX}-yaml>=0:../../textproc/py-yaml

Index: pkgsrc/devel/py-cattrs/distinfo
diff -u pkgsrc/devel/py-cattrs/distinfo:1.13 pkgsrc/devel/py-cattrs/distinfo:1.14
--- pkgsrc/devel/py-cattrs/distinfo:1.13        Sun Feb 22 11:10:44 2026
+++ pkgsrc/devel/py-cattrs/distinfo     Mon Sep  7 07:34:06 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2026/02/22 11:10:44 wiz Exp $
+$NetBSD: distinfo,v 1.14 2026/09/07 07:34:06 adam Exp $
 
-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
+BLAKE2s (cattrs-26.2.0.tar.gz) = 5b552085d553ac3f7bd640d31edb52d760cec63784070d543577be7c8da9c55f
+SHA512 (cattrs-26.2.0.tar.gz) = b3661e2089d36a48286004e2fe73ff51f6d2ff7efdabfd6b699b63dd7dc891018e1eb8bcc29c7e4695ab4aec83c54c5de14706eea084e9b23ce4f5c74e237055
+Size (cattrs-26.2.0.tar.gz) = 524993 bytes



Home | Main Index | Thread Index | Old Index