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 773B9138239 for ; Thu, 19 Jul 2018 09:59:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A2DCE0992; Thu, 19 Jul 2018 09:59:23 +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 31BCCE0992 for ; Thu, 19 Jul 2018 09:59:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 9A8DA335C9A for ; Thu, 19 Jul 2018 09:59:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2F522AA for ; Thu, 19 Jul 2018 09:59:19 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1531994352.48a519ce6a5e60c4548e8a7171c9affdae8264c9.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/plyvel/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/plyvel/Manifest dev-python/plyvel/plyvel-1.0.5.ebuild X-VCS-Directories: dev-python/plyvel/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 48a519ce6a5e60c4548e8a7171c9affdae8264c9 X-VCS-Branch: master Date: Thu, 19 Jul 2018 09:59:19 +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: b264648c-0b0d-42e3-b2d7-543f8e8f591f X-Archives-Hash: b29e650d3184439645336a60deb32229 commit: 48a519ce6a5e60c4548e8a7171c9affdae8264c9 Author: Louis Sautier gentoo org> AuthorDate: Thu Jul 19 09:51:54 2018 +0000 Commit: Louis Sautier gentoo org> CommitDate: Thu Jul 19 09:59:12 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48a519ce dev-python/plyvel: bump to 1.0.5, add Python 3.7 Package-Manager: Portage-2.3.43, Repoman-2.3.10 dev-python/plyvel/Manifest | 1 + dev-python/plyvel/plyvel-1.0.5.ebuild | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/plyvel/Manifest b/dev-python/plyvel/Manifest index 65d9d5a9229..d93e9f9572c 100644 --- a/dev-python/plyvel/Manifest +++ b/dev-python/plyvel/Manifest @@ -1,2 +1,3 @@ DIST plyvel-0.9.tar.gz 121513 BLAKE2B 78aa0dc3565a9e2298978ea4f2014670cbaa376e35f21be6b3c26a39db2c560d08667c385894bc3df6ae33da266eabf9cf72b81156759a28d75856760ca7cf73 SHA512 21a3bf0bff075e429fef63418c2a2578b22a4904cc2f4f66fc5fbccec22c762d918bea0622a22dcbeee2e60f8d35210ae8f1e63b6d37405f0fdf29ca2fe80586 DIST plyvel-1.0.4.tar.gz 338470 BLAKE2B dbc33ac9962ed3b74d83158e973ac956bd9fa81c7e1980c1d79187f6e629d0605d821debe4bfd4532120f343b87ee3acd825514884d78b471d3717364837ce42 SHA512 ee397d4f7e2dac4e7b382841559895184dc0356b84da4ff4ccdad43c32aebcb1dcc5020230a5564c875ed5d4401cc8b009438ca3b2e0b50e6467e384f0366171 +DIST plyvel-1.0.5.tar.gz 143728 BLAKE2B 2eac687e6901381b62df5278abe00684c8e5a9ac162596a1a1a0e620536155b5e5c0ba0ab9bb32c1d3a6467d997cfdf530e9275024f8caba3323728f3f3aba67 SHA512 d2a7fe9d49b377135ece03292f366423e9550d3440689a99246d8c5ddc38e474c2b05c709655c6bf74a1d04f742a23dfb8841b51698c2adb062418577b28c4b4 diff --git a/dev-python/plyvel/plyvel-1.0.5.ebuild b/dev-python/plyvel/plyvel-1.0.5.ebuild new file mode 100644 index 00000000000..ca014328f19 --- /dev/null +++ b/dev-python/plyvel/plyvel-1.0.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Tests fail with PyPy: https://github.com/wbolster/plyvel/issues/38 +PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6,7}} ) + +inherit distutils-r1 + +DESCRIPTION="Python interface to LevelDB" +HOMEPAGE="https://github.com/wbolster/plyvel" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=">=dev-libs/leveldb-1.20:=" +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" + +python_compile() { + # https://wiki.gentoo.org/wiki/Project:Python/Strict_aliasing + python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_compile_all() { + if use doc; then + sphinx-build doc doc/_build/html || die + HTML_DOCS=( doc/_build/html/. ) + fi +} + +python_test() { + # We need to copy the extension to the package folder + local ext="$(ls "${BUILD_DIR}/lib/${PN}/"*.so | head -n1 || die)" + ln -s "${ext}" "${PN}" || die + py.test || die "tests failed with ${EPYTHON}" + rm "${PN}/$(basename "${ext}")" || die +}