From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4B0411382C5 for ; Mon, 5 Mar 2018 22:08:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A90DE090E; Mon, 5 Mar 2018 22:08:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 377A4E090E for ; Mon, 5 Mar 2018 22:08:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 214C9335C2F for ; Mon, 5 Mar 2018 22:08:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A0FCD1ED for ; Mon, 5 Mar 2018 22:08:55 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1520287456.fb6a4f4464b095ebcb09bce3523eea9bea72a95a.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/msgpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/msgpack/Manifest dev-python/msgpack/metadata.xml dev-python/msgpack/msgpack-0.5.6.ebuild X-VCS-Directories: dev-python/msgpack/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: fb6a4f4464b095ebcb09bce3523eea9bea72a95a X-VCS-Branch: master Date: Mon, 5 Mar 2018 22:08:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e3907206-80d5-413f-996e-16414b4500ce X-Archives-Hash: 743a4180b0c4233f97b7e0a48efdbb04 commit: fb6a4f4464b095ebcb09bce3523eea9bea72a95a Author: Aric Belsito gmail com> AuthorDate: Tue Feb 13 23:11:15 2018 +0000 Commit: Patrice Clement gentoo org> CommitDate: Mon Mar 5 22:04:16 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb6a4f44 dev-python/msgpack: version bump to 0.5.6. Add native-extensions USE flag to conditionally disable C extensions. Closes: https://github.com/gentoo/gentoo/pull/7176 dev-python/msgpack/Manifest | 1 + dev-python/msgpack/metadata.xml | 6 +++++ dev-python/msgpack/msgpack-0.5.6.ebuild | 41 +++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/dev-python/msgpack/Manifest b/dev-python/msgpack/Manifest index 2777e70f82b..7668153327b 100644 --- a/dev-python/msgpack/Manifest +++ b/dev-python/msgpack/Manifest @@ -1,2 +1,3 @@ +DIST msgpack-0.5.6.tar.gz 138292 BLAKE2B 6a3b8472b785d77e142d21464b9e52c55166a8eff56009f63df5daa8cd5b6dbce4406a06ffa8d478cb44dfbdfab2f3b4b29cd11279ea82f67906b97d507f7eda SHA512 bdbd193bd3bd02e78d9c6e8d9d8fa687d13583dff2813bc77c5e6cbbe0d180765da3c9a80d176f9993589e35f548ad04973e3d523d0b6d41ef7916ecd86195aa DIST msgpack-python-0.4.8.tar.gz 113641 BLAKE2B d22efe13302e28d0701b95b2dc4cf4792f9e045efdf77b31ac5c6170b503c885c265ff63387fe76a1aa67b1624963aa26d76dffb15fc2cb10cfe672b59e71b99 SHA512 59e9c43be6b92e6d10f40999e0902c350137e67a83c43bb15b273eca856a6eb39f24b625b02b40188a9365ce3101f03bfa9aa3dfff56c5c3b551533942183481 DIST msgpack-python-0.5.1.tar.gz 138953 BLAKE2B 1fb7e5be33992808319e1444ff7f84cc13f034e60ce0ef2f72161bd4ccd0cd1ede27382bc1f365f268557c8ffe503fd12de66eb5840e79760d818e7e2f67fdcd SHA512 e5172e20bb25d2e12ba34ad2805ba4ea0776397986e8bf8e26d21353f57a2dba59a9c6669c817e4e91d5801558a50f95d81e02343f8f0292a01ec5d822fba61c diff --git a/dev-python/msgpack/metadata.xml b/dev-python/msgpack/metadata.xml index c0744d424d5..aef3152754b 100644 --- a/dev-python/msgpack/metadata.xml +++ b/dev-python/msgpack/metadata.xml @@ -9,4 +9,10 @@ msgpack-python msgpack/msgpack-python + + + Compiles native "C" extensions (speedups, instead of using python + fallback code). + + diff --git a/dev-python/msgpack/msgpack-0.5.6.ebuild b/dev-python/msgpack/msgpack-0.5.6.ebuild new file mode 100644 index 00000000000..c983343b0e3 --- /dev/null +++ b/dev-python/msgpack/msgpack-0.5.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="MessagePack (de)serializer for Python" +HOMEPAGE="http://msgpack.org https://github.com/msgpack/msgpack-python/ https://pypi.python.org/pypi/msgpack/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="+native-extensions test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + native-extensions? ( + >=dev-python/cython-0.16[${PYTHON_USEDEP}] + ) + test? ( + dev-python/six[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Remove pre-generated cython files + rm msgpack/{_packer,_unpacker}.cpp || die + + if ! use native-extensions ; then + sed -i -e "/have_cython/s:True:False:" ./setup.py || die + fi + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v test || die "Tests fail with ${EPYTHON}" +}