From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1398480-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 627F3158090 for <garchives@archives.gentoo.org>; Thu, 19 May 2022 07:15:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D429E0891; Thu, 19 May 2022 07:15:02 +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 200BAE0891 for <gentoo-commits@lists.gentoo.org>; Thu, 19 May 2022 07:15:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 05C5A341843 for <gentoo-commits@lists.gentoo.org>; Thu, 19 May 2022 07:15:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9C77477 for <gentoo-commits@lists.gentoo.org>; Thu, 19 May 2022 07:14:58 +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: <1652944483.7fee1b7bed2b167055ce5889bf54c222c7dc48e9.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/msgpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/msgpack/msgpack-1.0.3-r1.ebuild X-VCS-Directories: dev-python/msgpack/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7fee1b7bed2b167055ce5889bf54c222c7dc48e9 X-VCS-Branch: master Date: Thu, 19 May 2022 07:14:58 +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: 2ef4181d-3e41-4586-92af-ee6fc81488ab X-Archives-Hash: a2c111e87207612b03dbad8d412642db commit: 7fee1b7bed2b167055ce5889bf54c222c7dc48e9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu May 19 05:08:09 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu May 19 07:14:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fee1b7b dev-python/msgpack: Use PEP517 build Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/msgpack/msgpack-1.0.3-r1.ebuild | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/dev-python/msgpack/msgpack-1.0.3-r1.ebuild b/dev-python/msgpack/msgpack-1.0.3-r1.ebuild new file mode 100644 index 000000000000..f6fa1de54d22 --- /dev/null +++ b/dev-python/msgpack/msgpack-1.0.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="MessagePack (de)serializer for Python" +HOMEPAGE=" + https://msgpack.org/ + https://github.com/msgpack/msgpack-python/ + https://pypi.org/project/msgpack/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos" +IUSE="+native-extensions" + +# extension code is relying on CPython implementation details +BDEPEND=" + native-extensions? ( + $(python_gen_cond_dep '>=dev-python/cython-0.16[${PYTHON_USEDEP}]' 'python*') + ) + test? ( + dev-python/six[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Remove pre-generated cython files + rm msgpack/_cmsgpack.cpp || die + + if ! use native-extensions ; then + sed -i -e "/have_cython/s:True:False:" setup.py || die + fi + + distutils-r1_python_prepare_all +}