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: Wed Sep 3 07:54:43 UTC 2025
Modified Files:
pkgsrc/devel/py-cattrs: Makefile distinfo
Log Message:
py-cattrs: updated to 25.2.0
25.2.0 (2025-08-31)
- **Potentially breaking**: Sequences are now structured into tuples.
This allows hashability, better immutability and is more consistent with the [`collections.abc.Sequence`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence) type.
See [Migrations](https://catt.rs/en/latest/migrations.html#sequences-structuring-into-tuples) for steps to restore legacy behavior.
- Add a `use_alias` parameter to {class}`cattrs.Converter`.
{func}`cattrs.gen.make_dict_unstructure_fn_from_attrs`, {func}`cattrs.gen.make_dict_unstructure_fn`,
{func}`cattrs.gen.make_dict_structure_fn_from_attrs`, {func}`cattrs.gen.make_dict_structure_fn`
and {func}`cattrs.gen.typeddicts.make_dict_structure_fn` will use the value for the `use_alias` parameter from the given converter by default now.
If you're using these functions directly, the old behavior can be restored by passing in the desired value directly.
- The [union passthrough strategy](https://catt.rs/en/stable/strategies.html#union-passthrough) now by default accepts ints for unions that contain floats but not ints,
when configured to be able to handle both ints and floats.
This more closely matches the [current typing behavior](https://typing.python.org/en/latest/spec/special-types.html#special-cases-for-float-and-complex).
- Fix unstructuring of generic classes with stringified annotations.
- For {class}`cattrs.errors.StructureHandlerNotFoundError` and {class}`cattrs.errors.ForbiddenExtraKeysError`
correctly set {attr}`BaseException.args` in `super()` and hence make them pickable.
- The default disambiguation hook factory is now only enabled for converters with `unstructure_strat=AS_DICT` (the default).
Since the strategy doesn't support tuples, it is skipped for `unstructure_strat=AS_TUPLE` converters.
- Switch to [`uv`](https://docs.astral.sh/uv/) and [`just`](https://just.systems/man/en/) in lieu of PDM, tox and Make.
See [the Contributing section](https://catt.rs/en/v25.2.0/contributing.html#get-started) for new workflow instructions.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-cattrs/Makefile
cvs rdiff -u -r1.10 -r1.11 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.12 pkgsrc/devel/py-cattrs/Makefile:1.13
--- pkgsrc/devel/py-cattrs/Makefile:1.12 Sat Jun 7 22:03:32 2025
+++ pkgsrc/devel/py-cattrs/Makefile Wed Sep 3 07:54:43 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2025/06/07 22:03:32 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2025/09/03 07:54:43 adam Exp $
-DISTNAME= cattrs-25.1.1
+DISTNAME= cattrs-25.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cattrs/}
@@ -13,7 +13,7 @@ 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.1.0:../../devel/py-typing-extensions
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.12.2:../../devel/py-typing-extensions
# optional dependency
# https://github.com/py-bson/bson/issues/122
#TEST_DEPENDS+= ${PYPKGPREFIX}-bson>=0:../../wip/py-bson
Index: pkgsrc/devel/py-cattrs/distinfo
diff -u pkgsrc/devel/py-cattrs/distinfo:1.10 pkgsrc/devel/py-cattrs/distinfo:1.11
--- pkgsrc/devel/py-cattrs/distinfo:1.10 Sat Jun 7 22:03:32 2025
+++ pkgsrc/devel/py-cattrs/distinfo Wed Sep 3 07:54:43 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2025/06/07 22:03:32 wiz Exp $
+$NetBSD: distinfo,v 1.11 2025/09/03 07:54:43 adam Exp $
-BLAKE2s (cattrs-25.1.1.tar.gz) = d0d74b95b4599e2db2dad6a092b3b71bd9fe529c193b610f9d9d46801ea342fa
-SHA512 (cattrs-25.1.1.tar.gz) = 1d503032e1fbd921cd28db02b05b0c6d3ec329317acc1493613ebc1fde2666727d3a57b917a6e786de3c504ad3081c21e66d47cdf38b58d695b80fb767c6fdcf
-Size (cattrs-25.1.1.tar.gz) = 435016 bytes
+BLAKE2s (cattrs-25.2.0.tar.gz) = b4d1d5c8a42ea57d1c313c804f36e08229ceabed3c23d1c0be998e24f89d311d
+SHA512 (cattrs-25.2.0.tar.gz) = 53c77ff0ee3ab1ee174cba167da54dd27b7bda4abdcfc83e948fdaf58ca5dba0c42d1f42a28d99431bb90ae07f05d98b81a9f2339d11ad6cb98927e80ec677be
+Size (cattrs-25.2.0.tar.gz) = 506531 bytes
Home |
Main Index |
Thread Index |
Old Index