summaryrefslogtreecommitdiff
path: root/dev-python/cattrs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-09 17:12:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-09 17:12:21 +0000
commitfd1ea0a53f74daa4fd860ac35a20ba1817fd20fa (patch)
tree4cc3f60dea678e91c9f6a61dcd4030e8c51ad0fd /dev-python/cattrs
parent90a73bb153519a9eac2a23eb9029b99b759e7892 (diff)
gentoo auto-resync : 09:12:2023 - 17:12:21
Diffstat (limited to 'dev-python/cattrs')
-rw-r--r--dev-python/cattrs/Manifest9
-rw-r--r--dev-python/cattrs/cattrs-23.1.2.ebuild76
-rw-r--r--dev-python/cattrs/cattrs-23.2.1.ebuild69
-rw-r--r--dev-python/cattrs/cattrs-23.2.2.ebuild69
-rw-r--r--dev-python/cattrs/cattrs-23.2.3.ebuild2
-rw-r--r--dev-python/cattrs/files/cattrs-23.1.2-32bit-time_t.patch38
6 files changed, 2 insertions, 261 deletions
diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest
index 0842e09de789..012f01f1984c 100644
--- a/dev-python/cattrs/Manifest
+++ b/dev-python/cattrs/Manifest
@@ -1,10 +1,3 @@
-AUX cattrs-23.1.2-32bit-time_t.patch 1491 BLAKE2B 59138249b6c46a6a79346ba886f829c3685ae427308fc5bb5b7045ac60a2cdb73c24643acdcc890cf352aa2a75fdb21fe4bc9e511b10725ff5ce43c0da3c6ded SHA512 dc371c99d32668ecfdcb7a6514cfca50c7d2ac139219e7dae72991441065653aff81cec377f61f20f535d1836d3a7c267c0b846ee377946c3053546831cef3a7
-DIST cattrs-23.1.2.gh.tar.gz 602336 BLAKE2B f39ff3c1525ea14789edd137d82343a9447de0a41f65a71ee85754a15f8fdc929137125043b23c6cd088c8b2d2e9da18577c3b6dbbb6e9a33bdf6789f117bc46 SHA512 d05c8a5d4c5dc0b69ccdf33164d44c35a37a871199a35d1c2c25f9fbd8ee53d48da8e9d9bec49cde2baf901b524d5e8ff1ade175928908ea81f94e8398224488
-DIST cattrs-23.2.1.gh.tar.gz 611553 BLAKE2B f0d1c34838c5b869242411d393f2e395b45a84afb302d2df87ab0a51c537fc0057ee9def2b47313e8134635ffb616045f606070a0260ea4814a2cf227539132d SHA512 2b733dc6123cb26ab6d33b1d445ecbddea98a1a76a02acb15231deee2273933bc726da387419fd6143b44e97729d4fd1746eebadd2309e2440bfc5c153f7079b
-DIST cattrs-23.2.2.gh.tar.gz 611668 BLAKE2B b7abcffa8c6f62deed70b3fc3850913054a54382c07384d5635984eb1ceaf456c7d8aa45a6baaf3189ca57477eeea9990a60381045b3e1711969dff7f56d0be4 SHA512 d969f3d4b9e9d25a940ab1a48f1a8b2de306cc9180f88f403537d78757f50486d522f40e97f1bccbb60839f3d503dfdbd6ad3379e99bd5c5d66306fe36447341
DIST cattrs-23.2.3.gh.tar.gz 612120 BLAKE2B a227cc50cb23a76931562f17444fcfb4a5532cac74f80b478a8abb6d113cbb0a06c471c3ca7ee256f74640486464762f4a13387ccfc1cd144cfd1a9bfecddd8e SHA512 76a75ea0893bb1549dd5178436c4823ae5b918c16f0d8195203c48e894438ec792cee77698d783f7e43c07445c46a6041a309c3d3bbcadcff95d9c4079e3d622
-EBUILD cattrs-23.1.2.ebuild 1954 BLAKE2B c5bc45605495f946036fa33a02fbfe20a72298fca41aed1111dbc3d3644dbf21c2de1b1b10f0c179777a0b30ce2c5b557f15360cefed648ef756b46f71b204d4 SHA512 d7dc0685980dcbbcbc211cf5bbccc8e077f5e6b5aca5228d742dde9e31a5cebe30d1af231ffbba4bdf6d3437d78771084046022b1ec19843bf1516f557eace8e
-EBUILD cattrs-23.2.1.ebuild 1794 BLAKE2B 5616ddd6369a2e00d31a25013a85e87b1763b659d095b9576e2b9476c1220d827bbfacf7d9df977f6f9b18af07be58e2abc615f4095bb6b5a818a029d3a741d0 SHA512 b499fda483949fad0eda69f3e0c7e3e5fcb74e1b7415c8341fe20208b9b80d22a712ef5666c8540404b2328e006a2ee8ee8379b3139ce09f605cd5abd0304994
-EBUILD cattrs-23.2.2.ebuild 1807 BLAKE2B 10ea170505c88eb416b12f3d972d2b8d9b40242aece14bf3c1375881d743c212c027d19191e8f653eccc9602bf05beb4f88b2f6a44483efda1c116b54bb82617 SHA512 4c83fb5ac0cf6a5ff511a11bb894965783e38a8156551da41c9deeb2198b85bdc6d4aeaf717632094ba44e4fce33572f33a9d10a1e4a9ad38b13043a98d2def5
-EBUILD cattrs-23.2.3.ebuild 1807 BLAKE2B 10ea170505c88eb416b12f3d972d2b8d9b40242aece14bf3c1375881d743c212c027d19191e8f653eccc9602bf05beb4f88b2f6a44483efda1c116b54bb82617 SHA512 4c83fb5ac0cf6a5ff511a11bb894965783e38a8156551da41c9deeb2198b85bdc6d4aeaf717632094ba44e4fce33572f33a9d10a1e4a9ad38b13043a98d2def5
+EBUILD cattrs-23.2.3.ebuild 1802 BLAKE2B 6a5fe23d34a62229662dfecf7d4be579f29f602605b6f491636645a5da5122c73f35afa4fb503f517b082b23e60824616e9a223ff98d71a116668d0045cfa5b1 SHA512 76a591d6222b4e15274b6856b988459c08621793c6b975daebdff27a4a8b48a208c9c3ed88ef3eb715d5f70324d98b9a489ee0c2e33342e516fceb34a2174a3d
MISC metadata.xml 347 BLAKE2B 94165f2a8e62f3dc7e195f872944300ffff5ba23b9a7e6c30c18d61bc469ea8ff9b70e516f854bfc52d55a0fd27daff0df58145e34bfe26dbcde8070b8a22630 SHA512 5bb37b39b9574256358a623cff942a95162f5f9dcb32ddf28bd167504c7619be54488fae10044a5c765291f8fa28a5aa346973365dcca867be0eef4e232a4999
diff --git a/dev-python/cattrs/cattrs-23.1.2.ebuild b/dev-python/cattrs/cattrs-23.1.2.ebuild
deleted file mode 100644
index 30d1c61d53bb..000000000000
--- a/dev-python/cattrs/cattrs-23.1.2.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 multiprocessing
-
-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="amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86"
-IUSE="test-rust"
-
-RDEPEND="
- >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/exceptiongroup[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
- ' 3.{9..10})
-"
-BDEPEND="
- 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/pytest-xdist[${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? (
- >=dev-python/orjson-3.5.2[${PYTHON_USEDEP}]
- )
- )
-"
-
-distutils_enable_tests pytest
-
-src_prepare() {
- local PATCHES=(
- # https://github.com/python-attrs/cattrs/pull/415
- "${FILESDIR}/${P}-32bit-time_t.patch"
- )
-
- sed -e 's:--benchmark.*::' \
- -e '/addopts/d' \
- -i pyproject.toml || die
- distutils-r1_src_prepare
-}
-
-python_test() {
- local EPYTEST_DESELECT=()
- 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
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p xdist -n "$(makeopts_jobs)" tests
-}
diff --git a/dev-python/cattrs/cattrs-23.2.1.ebuild b/dev-python/cattrs/cattrs-23.2.1.ebuild
deleted file mode 100644
index 1434d99afd5e..000000000000
--- a/dev-python/cattrs/cattrs-23.2.1.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-
-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="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-IUSE="test-rust"
-
-RDEPEND="
- >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/exceptiongroup[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.1.0[${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
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
-
-python_test() {
- local EPYTEST_DESELECT=()
- 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
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -o addopts= tests
-}
diff --git a/dev-python/cattrs/cattrs-23.2.2.ebuild b/dev-python/cattrs/cattrs-23.2.2.ebuild
deleted file mode 100644
index 8216c327b1d3..000000000000
--- a/dev-python/cattrs/cattrs-23.2.2.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-
-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 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-IUSE="test-rust"
-
-RDEPEND="
- >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/exceptiongroup[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.1.0[${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
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
-
-python_test() {
- local EPYTEST_DESELECT=()
- 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
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -o addopts= tests
-}
diff --git a/dev-python/cattrs/cattrs-23.2.3.ebuild b/dev-python/cattrs/cattrs-23.2.3.ebuild
index 8216c327b1d3..aee6c6116b63 100644
--- a/dev-python/cattrs/cattrs-23.2.3.ebuild
+++ b/dev-python/cattrs/cattrs-23.2.3.ebuild
@@ -20,7 +20,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86"
IUSE="test-rust"
RDEPEND="
diff --git a/dev-python/cattrs/files/cattrs-23.1.2-32bit-time_t.patch b/dev-python/cattrs/files/cattrs-23.1.2-32bit-time_t.patch
deleted file mode 100644
index 68d1606c7b31..000000000000
--- a/dev-python/cattrs/files/cattrs-23.1.2-32bit-time_t.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 1b001c30090876dd9cefa3aefac8218ad78222c0 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Sat, 12 Aug 2023 18:04:07 +0200
-Subject: [PATCH] Fix typeddict tests on systems with 32-bit time_t
-
-Reduce the range of generated `datetime` instances to values valid
-for 32-bit `time_t` range, as otherwise multiple tests fail with errors
-such as:
-
- FAILED tests/test_typeddicts.py::test_simple_roundtrip - OverflowError: timestamp out of range for platform time_t
-
-This is based on an earlier fix for `test_preconf.py`,
-see a0e56f43f061c43814d6f938833d1c325ed61525
-and c58028789454fc7a9b459b94c214cab2ab1acb81.
-
-Originally reported as https://bugs.gentoo.org/912187.
----
- tests/typeddicts.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/tests/typeddicts.py b/tests/typeddicts.py
-index d7f8141..4f7804d 100644
---- a/tests/typeddicts.py
-+++ b/tests/typeddicts.py
-@@ -59,7 +59,9 @@ def int_attributes(
- def datetime_attributes(
- draw: DrawFn, total: bool = True, not_required: bool = False
- ) -> Tuple[datetime, SearchStrategy, SearchStrategy]:
-- success_strat = datetimes().map(lambda dt: dt.replace(microsecond=0))
-+ success_strat = datetimes(
-+ min_value=datetime(1970, 1, 1), max_value=datetime(2038, 1, 1)
-+ ).map(lambda dt: dt.replace(microsecond=0))
- type = datetime
- strat = success_strat if total else success_strat | just(NOTHING)
- if not_required and draw(booleans()):
---
-2.41.0
-