public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cbor2/
Date: Sat, 21 Oct 2023 03:40:39 +0000 (UTC)	[thread overview]
Message-ID: <1697859489.8a13a20c2f47a922d51b26bb714fd5cbadef6d7c.mgorny@gentoo> (raw)

commit:     8a13a20c2f47a922d51b26bb714fd5cbadef6d7c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 21 03:38:09 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 21 03:38:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a13a20c

dev-python/cbor2: Bump to 5.5.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cbor2/Manifest           |  1 +
 dev-python/cbor2/cbor2-5.5.0.ebuild | 46 +++++++++++++++++++++++++++++++++++++
 dev-python/cbor2/metadata.xml       |  6 +++++
 3 files changed, 53 insertions(+)

diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest
index 0827dd0e64bf..49122fba3815 100644
--- a/dev-python/cbor2/Manifest
+++ b/dev-python/cbor2/Manifest
@@ -1 +1,2 @@
 DIST cbor2-5.4.6.tar.gz 86909 BLAKE2B df24c786f32819f9a93a2db28536b78349db6185108188d0a20e7298ff8c083d1feb59110865b4e21190e0363b113201ccddaa0d36b49bd7bbacf9d5ee7695f4 SHA512 44fb3e2e2249c79b1454487670d53eb672ffae4c22374d2a2bb9e314ac15470e4e7913e4eb1981a8bd4d722e6827328dde7e57c5f0556843e951c4723ae5bd8e
+DIST cbor2-5.5.0.tar.gz 94286 BLAKE2B 01c3659c161d47b3e0fa5c9e8833989e448b60d40f408f8c9ebde0a4e3d388dd047aea1666a93f3bb4be1e49695a4089e869d658b594456839c71e2bfe17cb29 SHA512 64b9ef0e358ac02113f85a2e633ed52900c4d5d6c89f889d9322f181e29fbdf9462663b5eaec7a255d5e6d47c82c4902cb7ff56999251c5ec070c7b610e615b3

diff --git a/dev-python/cbor2/cbor2-5.5.0.ebuild b/dev-python/cbor2/cbor2-5.5.0.ebuild
new file mode 100644
index 000000000000..891987b304a0
--- /dev/null
+++ b/dev-python/cbor2/cbor2-5.5.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+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="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+BDEPEND="
+	>=dev-python/setuptools-61[${PYTHON_USEDEP}]
+	>=dev-python/setuptools-scm-6.4[${PYTHON_USEDEP}]
+	test? (
+		dev-python/hypothesis[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+	# remove pytest-cov dep
+	sed -i -e "s/--cov//" pyproject.toml || die
+	distutils-r1_python_prepare_all
+}
+
+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
+}

diff --git a/dev-python/cbor2/metadata.xml b/dev-python/cbor2/metadata.xml
index 50a3d751d1f8..957e87f7ed85 100644
--- a/dev-python/cbor2/metadata.xml
+++ b/dev-python/cbor2/metadata.xml
@@ -17,6 +17,12 @@
 		<remote-id type="pypi">cbor2</remote-id>
 		<remote-id type="github">agronholm/cbor2</remote-id>
 	</upstream>
+	<use>
+		<flag name="native-extensions">
+			Compiles native "C" extensions (speedups, instead of using python
+			fallback code).
+		</flag>
+	</use>
 	<longdescription>This library provides encoding and decoding for the
 Concise Binary Object Representation (CBOR) (RFC 7049) serialization format.
 It is implemented in pure python with an optional C backend and is compatible


             reply	other threads:[~2023-10-21  3:40 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-21  3:40 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-31 14:47 [gentoo-commits] repo/gentoo:master commit in: dev-python/cbor2/ Michał Górny
2024-10-31 13:51 Sam James
2024-10-30 15:11 Sam James
2024-10-27  6:50 Arthur Zamarin
2024-10-26 17:42 Arthur Zamarin
2024-10-26 14:47 Arthur Zamarin
2024-10-26 14:47 Arthur Zamarin
2024-10-26 13:28 Arthur Zamarin
2024-10-26 12:48 Arthur Zamarin
2024-10-10  5:03 Michał Górny
2024-09-24 15:09 Arthur Zamarin
2024-07-11 11:59 Michał Górny
2024-06-24  1:16 Sam James
2024-06-22 17:18 Sam James
2024-06-22 17:18 Sam James
2024-06-22 14:23 Arthur Zamarin
2024-06-22 14:00 Arthur Zamarin
2024-06-22 13:49 Arthur Zamarin
2024-06-22 13:49 Arthur Zamarin
2024-06-19  5:24 Arthur Zamarin
2024-06-15  6:18 Viorel Munteanu
2024-06-06 16:17 Michał Górny
2024-05-17 13:05 Sam James
2024-05-17 10:51 Michał Górny
2024-04-27  8:26 Michał Górny
2024-04-27  8:04 Arthur Zamarin
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-11  4:25 Michał Górny
2024-03-02 14:06 Arthur Zamarin
2024-03-02 12:24 Arthur Zamarin
2024-03-02 12:11 Arthur Zamarin
2024-03-02 12:11 Arthur Zamarin
2024-03-02 12:11 Arthur Zamarin
2024-02-20  6:13 Michał Górny
2024-02-17 22:26 Sam James
2024-02-17 22:26 Sam James
2024-02-17 21:42 Jakov Smolić
2023-11-22 12:29 Michał Górny
2023-11-22 12:15 Arthur Zamarin
2023-11-22 12:12 Arthur Zamarin
2023-11-22 11:53 Arthur Zamarin
2023-11-22 11:11 Sam James
2023-11-22 11:11 Sam James
2023-11-03  7:06 Michał Górny
2023-10-01 18:18 Arthur Zamarin
2023-08-20 17:53 Arthur Zamarin
2023-08-17  8:42 Arthur Zamarin
2023-08-13 16:10 Arthur Zamarin
2023-08-13 16:07 Arthur Zamarin
2023-06-23  9:26 Michał Górny
2023-05-04 16:11 Michał Górny
2023-03-04  6:37 Arthur Zamarin
2022-12-31 13:31 Michał Górny
2022-12-31 13:01 Sam James
2022-12-31 10:57 Arthur Zamarin
2022-12-31 10:51 Arthur Zamarin
2022-12-31 10:42 Arthur Zamarin
2022-12-08 16:57 Michał Górny
2022-11-29 20:18 Arthur Zamarin
2022-11-29  6:59 Michał Górny
2022-06-06 11:35 Michał Górny
2022-06-06 11:01 Jakov Smolić
2022-06-06  9:32 Jakov Smolić
2022-06-06  9:29 Jakov Smolić
2022-06-06  9:29 Jakov Smolić
2022-05-19 15:23 Michał Górny
2022-05-04  8:19 Michał Górny
2022-05-01 13:42 Michał Górny
2022-03-14 10:32 Yixun Lan
2021-11-22 10:46 Michał Górny
2021-11-22  8:05 Sam James
2021-11-22  8:05 Sam James
2021-11-22  7:51 Agostino Sarubbo
2021-11-21 18:39 Jakov Smolić
2021-10-14 21:13 Michał Górny
2021-09-04 22:07 Michał Górny
2021-08-26 14:55 Sam James
2021-08-26  4:41 Agostino Sarubbo
2021-07-24  8:23 Michał Górny
2021-07-08  7:06 Michał Górny
2021-07-08  3:53 Sam James
2021-07-06  1:48 Sam James
2021-07-03  6:17 Agostino Sarubbo
2021-07-03  3:08 Sam James
2021-06-05  8:28 Michał Górny
2021-05-27 18:04 Michał Górny
2021-05-27 14:15 Michał Górny
2021-05-18  8:51 Michał Górny
2021-05-18  8:51 Michał Górny
2021-05-15 21:36 Michał Górny
2021-05-15 19:07 Sam James
2021-03-26 20:39 Agostino Sarubbo
2021-03-19  9:56 Michał Górny
2021-01-17 18:51 Brian Dolbec
2020-11-15 11:02 Sam James
2020-11-14 22:50 Sam James
2020-10-14 13:28 Brian Dolbec
2020-10-09  8:53 Michał Górny
2020-10-09  8:31 Agostino Sarubbo
2020-10-06 16:57 Sam James
2020-10-01  1:24 Sam James
2020-08-20 16:13 Brian Dolbec
2020-07-18  1:58 Brian Dolbec
2020-05-18 20:46 Brian Dolbec
2020-05-18 15:46 Brian Dolbec
2020-05-09  0:51 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1697859489.8a13a20c2f47a922d51b26bb714fd5cbadef6d7c.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox