summaryrefslogtreecommitdiff
path: root/dev-python/plyvel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-21 18:59:32 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-21 18:59:32 +0100
commit520a5b56dff7c24c9d42eafec142cb78b44f8e3e (patch)
treef562f705600dbd2292e97c0b4145787c2a8d1f97 /dev-python/plyvel
parent3811bc3072bf19e2be351d2c63f81532945c0f21 (diff)
gentoo resync : 21.07.2018
Diffstat (limited to 'dev-python/plyvel')
-rw-r--r--dev-python/plyvel/Manifest4
-rw-r--r--dev-python/plyvel/plyvel-1.0.5.ebuild (renamed from dev-python/plyvel/plyvel-0.9-r1.ebuild)31
2 files changed, 16 insertions, 19 deletions
diff --git a/dev-python/plyvel/Manifest b/dev-python/plyvel/Manifest
index ed4188ca046b..6f6263c680e1 100644
--- a/dev-python/plyvel/Manifest
+++ b/dev-python/plyvel/Manifest
@@ -1,5 +1,5 @@
-DIST plyvel-0.9.tar.gz 121513 BLAKE2B 78aa0dc3565a9e2298978ea4f2014670cbaa376e35f21be6b3c26a39db2c560d08667c385894bc3df6ae33da266eabf9cf72b81156759a28d75856760ca7cf73 SHA512 21a3bf0bff075e429fef63418c2a2578b22a4904cc2f4f66fc5fbccec22c762d918bea0622a22dcbeee2e60f8d35210ae8f1e63b6d37405f0fdf29ca2fe80586
DIST plyvel-1.0.4.tar.gz 338470 BLAKE2B dbc33ac9962ed3b74d83158e973ac956bd9fa81c7e1980c1d79187f6e629d0605d821debe4bfd4532120f343b87ee3acd825514884d78b471d3717364837ce42 SHA512 ee397d4f7e2dac4e7b382841559895184dc0356b84da4ff4ccdad43c32aebcb1dcc5020230a5564c875ed5d4401cc8b009438ca3b2e0b50e6467e384f0366171
-EBUILD plyvel-0.9-r1.ebuild 1163 BLAKE2B 2930ec4acb47dd811537d8f36d9edc3d0a35b87674fc20910ec0f243312e7f5ae8c4ed35f4cadee9fe8decc78097fca42d6752bef5df86f1f4bfb5a3b685eef2 SHA512 d9a3c3a9d590982348a73268b45850763b1ea533bc6e8a622813615da7e75edc3c96de5b8f3d7a986cbfd7d47c272550121f8e557df6ab1018d5e87f6ebf2c95
+DIST plyvel-1.0.5.tar.gz 143728 BLAKE2B 2eac687e6901381b62df5278abe00684c8e5a9ac162596a1a1a0e620536155b5e5c0ba0ab9bb32c1d3a6467d997cfdf530e9275024f8caba3323728f3f3aba67 SHA512 d2a7fe9d49b377135ece03292f366423e9550d3440689a99246d8c5ddc38e474c2b05c709655c6bf74a1d04f742a23dfb8841b51698c2adb062418577b28c4b4
EBUILD plyvel-1.0.4.ebuild 1226 BLAKE2B 3bbb26f07c2cae603e43beb8ee741c48a0152c89008100884ab94243503d7236725bca9b09431a7f261ac21107a32069a927ccc867771ffbf4d83c0fb400edc0 SHA512 285b230436f95578cbe53119ff5c32e58cc332641e567bb485b7f259543b89f3b22c8708954e7a8dacf6de93999df0f9ca1363b95963c295017007d9c8f7e597
+EBUILD plyvel-1.0.5.ebuild 1228 BLAKE2B 0012ecb226142c9dd40142868fdacf14d1d64a96e371d04d2643f2b43d30ce4089fa10e131efdd4384eddb24c933611fa7f6c22f1b418c399bd212c6cae6b2bb SHA512 e0a6ea8442d4b5022db955a1eb26c8efb001acd4e0e62d7045bbc278f7b7cf5bb6246fb269cad09bf09b99034b392618a195c705f63c7a669dea4c133cab60cb
MISC metadata.xml 432 BLAKE2B 5ff794b8cd6bb312ed6fc0a3ef74ab6a89be65b45d90fee726ec4350f702b45e46da69c35ac2fea606bdd2b7cc87a9d360ce03d101b4243950cbd54567a772d7 SHA512 fbd7143b819341c3d6686e6861b5c8642b6e18f3e0c73b0ab0221dae9f074fba26d7792f41a23a67074679594ed2739a9a6926124365c1fab88765e51915f288
diff --git a/dev-python/plyvel/plyvel-0.9-r1.ebuild b/dev-python/plyvel/plyvel-1.0.5.ebuild
index 8cd881d28601..ca014328f19e 100644
--- a/dev-python/plyvel/plyvel-0.9-r1.ebuild
+++ b/dev-python/plyvel/plyvel-1.0.5.ebuild
@@ -1,52 +1,49 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+# 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
-MY_PN="${PN/-/.}"
DESCRIPTION="Python interface to LevelDB"
HOMEPAGE="https://github.com/wbolster/plyvel"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+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:="
+RDEPEND=">=dev-libs/leveldb-1.20:="
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
)
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
"
-S="${WORKDIR}/${MY_PN}-${PV}"
-
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() {
- use doc && emake doc
+ if use doc; then
+ sphinx-build doc doc/_build/html || die
+ HTML_DOCS=( doc/_build/html/. )
+ fi
}
python_test() {
- local lib="$(ls "${BUILD_DIR}/lib/${PN}/"*.so | head -n1)"
- ln -s "${lib}" "${PN}" || die
+ # 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 "${lib}")" || die
-}
-
-python_install_all() {
- use doc && local HTML_DOCS=( doc/build//html/. )
- distutils-r1_python_install_all
+ rm "${PN}/$(basename "${ext}")" || die
}