diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-01 09:05:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-01 09:05:03 +0000 |
| commit | 5ce2273fa2607278dbc7825cd7f518b2f2c8561a (patch) | |
| tree | 8f9b831b70b98299aa24476dbbbf884df611b25a /dev-python/cattrs | |
| parent | 52da3230376d7c627d919c11786472160c838d2f (diff) | |
| download | baldeagleos-repo-5ce2273fa2607278dbc7825cd7f518b2f2c8561a.tar.gz baldeagleos-repo-5ce2273fa2607278dbc7825cd7f518b2f2c8561a.tar.xz baldeagleos-repo-5ce2273fa2607278dbc7825cd7f518b2f2c8561a.zip | |
Adding metadata
Diffstat (limited to 'dev-python/cattrs')
| -rw-r--r-- | dev-python/cattrs/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/cattrs/cattrs-25.2.0.ebuild | 140 |
2 files changed, 141 insertions, 0 deletions
diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest index 1ba9cf2339ae..645a7f54791c 100644 --- a/dev-python/cattrs/Manifest +++ b/dev-python/cattrs/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-python/cattrs/cattrs-25.2.0.ebuild b/dev-python/cattrs/cattrs-25.2.0.ebuild new file mode 100644 index 000000000000..c50319b055bd --- /dev/null +++ b/dev-python/cattrs/cattrs-25.2.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=( python3_{9,10,11,12,13} pypy3 ) + +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-24.3.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.12.2[${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.10.7[${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 +} |
