From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1488829-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 81E2B15800F for <garchives@archives.gentoo.org>; Tue, 21 Feb 2023 14:15:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE53AE0D7C; Tue, 21 Feb 2023 14:15:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A68E2E0D7C for <gentoo-commits@lists.gentoo.org>; Tue, 21 Feb 2023 14:15:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C8E4E33BDF5 for <gentoo-commits@lists.gentoo.org>; Tue, 21 Feb 2023 14:15:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6965F88E for <gentoo-commits@lists.gentoo.org>; Tue, 21 Feb 2023 14:15:25 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1676988922.803dd1a701cb659e77bbb99bba5cb4e125b952a3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cbor/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cbor/cbor-1.0.0-r2.ebuild X-VCS-Directories: dev-python/cbor/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 803dd1a701cb659e77bbb99bba5cb4e125b952a3 X-VCS-Branch: master Date: Tue, 21 Feb 2023 14:15:25 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 94bf4d2e-d265-45a7-b709-8e049e6bbf37 X-Archives-Hash: 277d21bb90953321df1c8bdf53b4166f commit: 803dd1a701cb659e77bbb99bba5cb4e125b952a3 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Feb 21 13:48:58 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 21 14:15:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803dd1a7 dev-python/cbor: EAPI 8, PEP517, py3.11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/cbor/cbor-1.0.0-r2.ebuild | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/dev-python/cbor/cbor-1.0.0-r2.ebuild b/dev-python/cbor/cbor-1.0.0-r2.ebuild new file mode 100644 index 000000000000..af2c125ebd7b --- /dev/null +++ b/dev-python/cbor/cbor-1.0.0-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +EGIT_COMMIT="b3af679e7cf3e12d50acb83c3c591fc5db9a658d" +DESCRIPTION="RFC 7049 - Concise Binary Object Representation" +HOMEPAGE=" + https://github.com/brianolson/cbor_py/ + https://pypi.org/project/cbor/ +" +SRC_URI=" + https://github.com/brianolson/cbor_py/archive/${EGIT_COMMIT}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/cbor_py-${EGIT_COMMIT} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +# upstream PR: https://github.com/brianolson/cbor_py/pull/19 +# upstream PR: https://github.com/brianolson/cbor_py/pull/11 +PATCHES=( + "${FILESDIR}/cbor-1.0.0.zero-length-bytes.patch" + "${FILESDIR}/cbor-1.0.0.Fix-broken-test_sortkeys.patch" + "${FILESDIR}/cbor-1.0.0.Replace-deprecated-logger.warn.patch" +) + +python_test() { + "${EPYTHON}" cbor/tests/test_cbor.py || die "Testsuite failed under ${EPYTHON}" + "${EPYTHON}" cbor/tests/test_objects.py || die "Testsuite failed under ${EPYTHON}" + "${EPYTHON}" cbor/tests/test_usage.py || die "Testsuite failed under ${EPYTHON}" + "${EPYTHON}" cbor/tests/test_vectors.py || die "Testsuite failed under ${EPYTHON}" +}