commit: a2546eaeab3baf25647f362ff326081dbd324f55 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Oct 25 05:33:56 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Oct 25 07:40:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2546eae
dev-python/cbor2: Bump to 5.7.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/cbor2/Manifest | 2 ++ dev-python/cbor2/cbor2-5.7.1.ebuild | 39 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest index 99a0f2a5917e..f7e8305caff9 100644 --- a/dev-python/cbor2/Manifest +++ b/dev-python/cbor2/Manifest @@ -1 +1,3 @@ DIST cbor2-5.7.0.tar.gz 102374 BLAKE2B 8f7ce5220217d926a3a171baef8b4cbfb5b3d8609e01a5ad63c56898449b192be082c1c8f833a6cb8cf48de6ee8668d572297242d0ab6367e8943195b515d499 SHA512 9ec2c8c3de5220c9c6c6197d09c6c627dbd56fc3531ca09bab8f76bdcd00127dadb0e0b5faf61619859327440c7f356b68c1e9ff9ef43876e61627d1a44b8069 +DIST cbor2-5.7.1.tar.gz 102467 BLAKE2B 8025d34843c977eb282f47b3836844441c4d45fd3e01f0791241a2cf1f99fccde43c096edaf52fca31c18341b73591a6168a7012d06906f31b27f1c990697274 SHA512 0bdb36f505c61fa554c5f042ac82827fe286b66b46d7847ca5292942d5eda354c3216d6521cb5b1b2ffa19bc4798870a985aeb806cfe6e60f173a59def8f2bd2 +DIST cbor2-5.7.1.tar.gz.provenance 9333 BLAKE2B 37eefd944d4d525e8d3a1be918855f535c3a328fd8da8f178e550b137bcf24fcd378904bd5cb69e47312c3acc2d9c010ebfbfdd5c1eb5dbb8724d40f18d832f7 SHA512 d8532140f1830204c9c2f823b2f0acf3140b736b946d1239551b7116de2f62de3eb4d2d39a327ee2fcc2afb2d75914d0b30f819cf8cfdcd795f5e8d4237145e9 diff --git a/dev-python/cbor2/cbor2-5.7.1.ebuild b/dev-python/cbor2/cbor2-5.7.1.ebuild new file mode 100644 index 000000000000..82f43b89cf76 --- /dev/null +++ b/dev-python/cbor2/cbor2-5.7.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/agronholm/cbor2 +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pure Python CBOR (de)serializer with extensive tag support" +HOMEPAGE=" + https://github.com/agronholm/cbor2/ + https://pypi.org/project/cbor2/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +BDEPEND=" + >=dev-python/setuptools-61[${PYTHON_USEDEP}] + >=dev-python/setuptools-scm-6.4[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=( hypothesis ) +distutils_enable_tests pytest + +python_compile() { + local -x CBOR2_BUILD_C_EXTENSION=1 + # pypy3 not supported upstream + if [[ ${EPYTHON} == pypy3* ]] || ! use native-extensions; then + CBOR2_BUILD_C_EXTENSION=0 + fi + distutils-r1_python_compile +}
