summaryrefslogtreecommitdiff
path: root/dev-python/cattrs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-24 01:25:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-24 01:25:20 +0100
commitd80b870c42fbe218389ffaf86f0f2a39404deca1 (patch)
tree3be15ebcfb876f660fe2f2b0d02f8bca68e41622 /dev-python/cattrs
parentde59eb4554f5fe0d506a66bb96630a35f99c09f7 (diff)
gentoo auto-resync : 24:09:2024 - 01:25:19
Diffstat (limited to 'dev-python/cattrs')
-rw-r--r--dev-python/cattrs/Manifest2
-rw-r--r--dev-python/cattrs/cattrs-24.1.2.ebuild106
2 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest
index 381507ee311b..d603f09609ff 100644
--- a/dev-python/cattrs/Manifest
+++ b/dev-python/cattrs/Manifest
@@ -2,9 +2,11 @@ AUX cattrs-23.2.4_pre20240627-py313.patch 2699 BLAKE2B d57e952f73f866cb72d29568e
DIST cattrs-23.2.3.gh.tar.gz 612120 BLAKE2B a227cc50cb23a76931562f17444fcfb4a5532cac74f80b478a8abb6d113cbb0a06c471c3ca7ee256f74640486464762f4a13387ccfc1cd144cfd1a9bfecddd8e SHA512 76a75ea0893bb1549dd5178436c4823ae5b918c16f0d8195203c48e894438ec792cee77698d783f7e43c07445c46a6041a309c3d3bbcadcff95d9c4079e3d622
DIST cattrs-24.1.0.gh.tar.gz 428347 BLAKE2B 21bb94de02b6fce1c456e0d66dbd38defdd1171d4eb815e92ddc9777b12a108e099a5ce0dce4e51c1175cc1771d517ae0d201ac7ff537fbddf2329dce6f88f51 SHA512 879fd9edef39ad325237439915aa2d92c346c9896d463a4c3835335c3b9fb8bc572834a7d7731ccf6b805e59dec481cfdfed50ae8d4899fa31118b6ac6926c1a
DIST cattrs-24.1.1.gh.tar.gz 428539 BLAKE2B f0fe5afc56bc49da62942b553ea752c0fdffb6670a19eba5810826e81f066f1d4a08684509c682ae9b43601f8d2f4e18dd4e55f62a7316a10870625ee7d9ecaa SHA512 bc141a30976b022931289f37f9630ced7f309ddce7a42abf7114b49c6eef26bfe861fa239dc4df7524549b35cc8a7765ca265ad9d516f59f42c32f30733dd77f
+DIST cattrs-24.1.2.gh.tar.gz 428615 BLAKE2B d6874493083c4a082b319a12bead71d8a147a35019f3b08a7f16c4c982c061b98db71d6e1027215df53efc66c93688cbd6d5cfaaa9a46f9bd1a39893bbbc21ee SHA512 00316c062343a91cb71ba297af7d74798000cd44afca6eb6286278b3340efc27621486336c095e21a0e1701105494d60b72991aa00b8ab9bacf30a47eee877ce
DIST cattrs-6290cacdb7f9d195b4f96ce0ab036c8eebf35d94.gh.tar.gz 426769 BLAKE2B 61851be04434e55d627aac6fd73d72d9d4d8a150bedb6110f4b99068dd58ed29fd23ff083c595eb508b144546d8e4d1e926831dc51985775773ab86a86d98815 SHA512 f1034ae0c57a0618c6568ebac0696928e125121431e965c0ceeda82070a21b448630e3188cc03a8d7a44447126a4a2623b8604ef856a89268e1c0802761d89b9
EBUILD cattrs-23.2.3-r1.ebuild 1792 BLAKE2B f07ad5423715b70a902013cc5107d846bc33410b6218a2a9f44b5dd7a98a66530ffc65d2879b32daa41959db81569cab91e4f852881fa50b83ffb250e3fa960f SHA512 c7ee2b1e54d3b21bd439dc21c16517cc323ab02fa4b553f76ebf2337b322316ed5f066d4fbe45fc3f34fdcd35854645b9107d854dcbf7b5ff17fc49a3113a625
EBUILD cattrs-23.2.4_pre20240627.ebuild 3172 BLAKE2B ba688bb211c45f486a8555b1d1df71348bcd34dd2e2d2e1778d275593996f48ca0cf0997b27e46a1b5cd7d900d37e186785406edd36f90b1f5f3b3a21fe61352 SHA512 7bc69e52140182a5cf9553561e0bf052f2370303ee5edb1cf47f91fce2740051f61cf73a47510ce4a4dccd0e3d4817a4e71a46114d25a192f61c9349aafb07e4
EBUILD cattrs-24.1.0.ebuild 3067 BLAKE2B 8d0bd0658ae1ac211b4552a8f42a09edc692191628b3fbff6172e34be989da90fdedbac00e74306d01f6d1747372facdb6ea8d717d775bf41779d665b776ebd4 SHA512 91a599ca6f16ae2a6659cd5d7172c670fd9e16720c2f613341e5963dd43c15900ccd0b0749a8d32ae4cef054ae0f9b4bcd02d13ce10134da92729ca860a1383f
EBUILD cattrs-24.1.1.ebuild 3067 BLAKE2B 8d0bd0658ae1ac211b4552a8f42a09edc692191628b3fbff6172e34be989da90fdedbac00e74306d01f6d1747372facdb6ea8d717d775bf41779d665b776ebd4 SHA512 91a599ca6f16ae2a6659cd5d7172c670fd9e16720c2f613341e5963dd43c15900ccd0b0749a8d32ae4cef054ae0f9b4bcd02d13ce10134da92729ca860a1383f
+EBUILD cattrs-24.1.2.ebuild 3067 BLAKE2B 8d0bd0658ae1ac211b4552a8f42a09edc692191628b3fbff6172e34be989da90fdedbac00e74306d01f6d1747372facdb6ea8d717d775bf41779d665b776ebd4 SHA512 91a599ca6f16ae2a6659cd5d7172c670fd9e16720c2f613341e5963dd43c15900ccd0b0749a8d32ae4cef054ae0f9b4bcd02d13ce10134da92729ca860a1383f
MISC metadata.xml 347 BLAKE2B 94165f2a8e62f3dc7e195f872944300ffff5ba23b9a7e6c30c18d61bc469ea8ff9b70e516f854bfc52d55a0fd27daff0df58145e34bfe26dbcde8070b8a22630 SHA512 5bb37b39b9574256358a623cff942a95162f5f9dcb32ddf28bd167504c7619be54488fae10044a5c765291f8fa28a5aa346973365dcca867be0eef4e232a4999
diff --git a/dev-python/cattrs/cattrs-24.1.2.ebuild b/dev-python/cattrs/cattrs-24.1.2.ebuild
new file mode 100644
index 000000000000..b835a9d7e3f7
--- /dev/null
+++ b/dev-python/cattrs/cattrs-24.1.2.ebuild
@@ -0,0 +1,106 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+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 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="test-rust"
+
+RDEPEND="
+ >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/exceptiongroup[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+BDEPEND="
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/cbor2-5.4.6[${PYTHON_USEDEP}]
+ >=dev-python/hypothesis-6.54.5[${PYTHON_USEDEP}]
+ >=dev-python/immutables-0.18[${PYTHON_USEDEP}]
+ >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pymongo-4.2.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
+ >=dev-python/tomlkit-0.11.4[${PYTHON_USEDEP}]
+ >=dev-python/ujson-5.4.0[${PYTHON_USEDEP}]
+ test-rust? (
+ $(python_gen_cond_dep '
+ >=dev-python/orjson-3.5.2[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/python-attrs/cattrs/pull/543
+ "${FILESDIR}/${PN}-23.2.4_pre20240627-py313.patch"
+)
+
+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_msgspec_json_unstruct_collection_overrides
+ tests/test_preconf.py::test_msgspec_json_unions
+ tests/test_preconf.py::test_msgspec_json_converter
+
+ # tests need updating for attrs-24*
+ # https://github.com/python-attrs/cattrs/issues/575
+ tests/test_baseconverter.py
+ tests/test_converter.py
+ tests/test_gen_dict.py::test_individual_overrides
+ tests/test_gen_dict.py::test_nodefs_generated_unstructuring_cl
+ tests/test_gen_dict.py::test_unmodified_generated_structuring
+ tests/test_structure_attrs.py::test_structure_simple_from_dict_default
+ )
+
+ 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
+
+ case ${EPYTHON} in
+ python3.13)
+ EPYTEST_DESELECT+=(
+ tests/preconf/test_pyyaml.py::test_pyyaml
+ tests/preconf/test_pyyaml.py::test_pyyaml_converter
+ tests/test_converter.py::test_simple_roundtrip
+ tests/test_gen_dict.py::test_unmodified_generated_structuring
+ tests/test_generics.py::test_unstructure_deeply_nested_generics_list
+ tests/test_unstructure_collections.py::test_collection_unstructure_override_mapping
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -o addopts= tests
+}