commit: 2f3e57b53538884bb11501999819a78323c771ee
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 8 04:59:54 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 8 06:25:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3e57b5
dev-python/cattrs: Bump to 25.3.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cattrs/Manifest | 1 +
dev-python/cattrs/cattrs-25.3.0.ebuild | 140 +++++++++++++++++++++++++++++++++
2 files changed, 141 insertions(+)
diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest
index 645a7f54791c..9f4b5832aeaa 100644
--- a/dev-python/cattrs/Manifest
+++ b/dev-python/cattrs/Manifest
@@ -1,2 +1,3 @@
DIST cattrs-25.1.1.gh.tar.gz 437481 BLAKE2B
89a79ba56108a819bdfda26c92a23cdcd671bca4c201bf7a78f50972526e6ba2a15555b4583e5a23a0a0ee861a98342662402a21183fe45e857fc685ef475014
SHA512
877a635b0f3db8648dfece8ec4beb98dc4c337b21d5913262634a99e5672665c7815e991aff059d806c9f36c7bf3c97af473669ec0dcf0e67f4b898c181ff83f
DIST cattrs-25.2.0.gh.tar.gz 507566 BLAKE2B
b9b6078976ff347542027908446b021581a30154622429c6e8694e2f6ae1e3b15ac7183ff06310f423af7ff4708756836b23d9037f3a14b7fc40361105724ce9
SHA512
dc06822649085049dee59c7b38d0c299d806b9a789cf837f537822ea1690d9233ced9ce5bd3e8863e145c2383f367c52dd00ab451dca8ccbb06751cf7eff2536
+DIST cattrs-25.3.0.gh.tar.gz 510808 BLAKE2B
b7d57f2568fd118b1534a94f35283b01339c0df2cbd58d87fe6d18d395c491ea23441e8dd1389e9597837e8650d58ab6cc65f5cf6b1e9da57e806c6c0fb302de
SHA512
9c5057a8922590d571ea9f83c459668fd0a9f1b3291dbca7847fe8b5c6617cb56bee590ad9d345eee0c626c01837fb17295b4b9345f8b13c9652ee643051fd42
diff --git a/dev-python/cattrs/cattrs-25.3.0.ebuild
b/dev-python/cattrs/cattrs-25.3.0.ebuild
new file mode 100644
index 000000000000..20a3ea0d36ee
--- /dev/null
+++ b/dev-python/cattrs/cattrs-25.3.0.ebuild
@@ -0,0 +1,140 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Composable complex class support for attrs and dataclasses"
+HOMEPAGE="
+ https://pypi.org/project/cattrs/
+ https://github.com/python-attrs/cattrs/
+"
+SRC_URI="
+ https://github.com/python-attrs/cattrs/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv
~s390 ~sparc ~x86"
+IUSE="test-rust"
+
+RDEPEND="
+ >=dev-python/attrs-25.4.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.14.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/cbor2-5.4.6[${PYTHON_USEDEP}]
+ >=dev-python/immutables-0.20[${PYTHON_USEDEP}]
+ >=dev-python/msgpack-1.0.5[${PYTHON_USEDEP}]
+ >=dev-python/pymongo-4.4.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
+ >=dev-python/tomlkit-0.11.8[${PYTHON_USEDEP}]
+ >=dev-python/ujson-5.10.0[${PYTHON_USEDEP}]
+ test-rust? (
+ $(python_gen_cond_dep '
+ >=dev-python/orjson-3.11.3[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
+ )
+"
+
+# xdist can randomly break tests, depending on job count
+# https://bugs.gentoo.org/941429
+EPYTEST_PLUGINS=( hypothesis )
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+ local EPYTEST_IGNORE=(
+ # requires msgspec
+ tests/preconf/test_msgspec_cpython.py
+ )
+ local EPYTEST_DESELECT=(
+ # these require msgspec
+ tests/test_preconf.py::test_literal_dicts_msgspec
+ tests/test_preconf.py::test_msgspec_efficient_enum
+ tests/test_preconf.py::test_msgspec_json_converter
+ tests/test_preconf.py::test_msgspec_json_unions
+
tests/test_preconf.py::test_msgspec_json_unstruct_collection_overrides
+ tests/test_preconf.py::test_msgspec_native_enums
+ )
+
+ if ! has_version "dev-python/orjson[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ tests/test_preconf.py::test_orjson
+ tests/test_preconf.py::test_orjson_converter
+
tests/test_preconf.py::test_orjson_converter_unstruct_collection_overrides
+ )
+ fi
+
+ # https://github.com/python-attrs/cattrs/issues/626
+ # https://github.com/python-attrs/cattrs/pull/653
+ if [[ ${EPYTHON} == python3.14* ]] ; then
+ EPYTEST_DESELECT+=(
+
'tests/strategies/test_include_subclasses.py::test_circular_reference[with-subclasses]'
+
'tests/strategies/test_include_subclasses.py::test_overrides[wo-union-strategy-child1-only]'
+
'tests/strategies/test_include_subclasses.py::test_overrides[wo-union-strategy-child2-only]'
+
'tests/strategies/test_include_subclasses.py::test_overrides[wo-union-strategy-grandchild-only]'
+
'tests/strategies/test_include_subclasses.py::test_overrides[wo-union-strategy-parent-only]'
+
'tests/strategies/test_include_subclasses.py::test_parents_with_generics[False]'
+
'tests/strategies/test_include_subclasses.py::test_parents_with_generics[True]'
+
tests/strategies/test_include_subclasses.py::test_structure_as_union
+
'tests/strategies/test_include_subclasses.py::test_structuring_unstructuring_unknown_subclass'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-child1-only]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-child2-only]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-grandchild-only]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-non-union-compose-child]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-non-union-compose-grandchild]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-non-union-compose-parent]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-non-union-container]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-parent-only]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-union-compose-child]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-union-compose-grandchild]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-union-compose-parent]'
+
'tests/strategies/test_include_subclasses.py::test_structuring_with_inheritance[with-subclasses-union-container]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-child1-only]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-child2-only]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-grandchild-only]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-non-union-compose-child]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-non-union-compose-grandchild]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-non-union-compose-parent]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-non-union-container]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-parent-only]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-union-compose-child]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-union-compose-grandchild]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-union-compose-parent]'
+
'tests/strategies/test_include_subclasses.py::test_unstructuring_with_inheritance[with-subclasses-union-container]'
+ tests/test_gen_dict.py::test_type_names_with_quotes
+ tests/test_generics.py::test_deep_copy
+
'tests/test_generics.py::test_structure_nested_generics_with_cols[False-int-result0]'
+
'tests/test_generics.py::test_structure_nested_generics_with_cols[False]'
+
'tests/test_generics.py::test_structure_nested_generics_with_cols[True-int-result0]'
+
'tests/test_generics.py::test_structure_nested_generics_with_cols[True]'
+ 'tests/test_self.py::test_nested_roundtrip[False]'
+ 'tests/test_self.py::test_nested_roundtrip[True]'
+ 'tests/test_self.py::test_self_roundtrip[False]'
+ 'tests/test_self.py::test_self_roundtrip[True]'
+
'tests/test_self.py::test_self_roundtrip_dataclass[False]'
+
'tests/test_self.py::test_self_roundtrip_dataclass[True]'
+
'tests/test_self.py::test_self_roundtrip_namedtuple[False]'
+
'tests/test_self.py::test_self_roundtrip_namedtuple[True]'
+
'tests/test_self.py::test_self_roundtrip_typeddict[False]'
+
'tests/test_self.py::test_self_roundtrip_typeddict[True]'
+ 'tests/test_self.py::test_subclass_roundtrip[False]'
+ 'tests/test_self.py::test_subclass_roundtrip[True]'
+
'tests/test_self.py::test_subclass_roundtrip_dataclass[False]'
+
'tests/test_self.py::test_subclass_roundtrip_dataclass[True]'
+ tests/test_structure.py::test_structuring_unsupported
+ )
+ fi
+
+ epytest -o addopts= tests
+}