diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-07-25 09:25:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-07-25 09:36:26 +0200 |
commit | a104aa8d5e38bdd199b1c98f2d5c9485c2941567 (patch) | |
tree | 6af7924e77258ccf31d13b40a69a22680d1938e5 /dev-python/kazoo | |
parent | dev-python/kazoo: Add python@ as co-maint (diff) | |
download | gentoo-a104aa8d5e38bdd199b1c98f2d5c9485c2941567.tar.gz gentoo-a104aa8d5e38bdd199b1c98f2d5c9485c2941567.tar.bz2 gentoo-a104aa8d5e38bdd199b1c98f2d5c9485c2941567.zip |
dev-python/kazoo: Bump to 2.8.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/kazoo')
-rw-r--r-- | dev-python/kazoo/Manifest | 1 | ||||
-rw-r--r-- | dev-python/kazoo/kazoo-2.8.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/kazoo/Manifest b/dev-python/kazoo/Manifest index 656228deeab4..36c01b394fa2 100644 --- a/dev-python/kazoo/Manifest +++ b/dev-python/kazoo/Manifest @@ -1,2 +1,3 @@ DIST kazoo-2.6.1.tar.gz 157425 BLAKE2B af05ee5fb1d532ebc3352de004062f1ff976825f564212f2db76efc153566106ffa520745a8e8cc6a78ca2bf0d17556f978a6b462e4153e9b3ee5258e78a1d82 SHA512 613e8271bfd6c8f5ee976b6ee460478c7faad46b32995125a64312208b38755888690cd46b913ff44ba52aeb36de3ec3dd8e222985af77e99f43963a3eb48d48 DIST kazoo-2.7.0.tar.gz 163552 BLAKE2B d117ef62b324d074afae5d17f12e2740ab26076ce8e9ea5b0ec15400d2a57ac89053c92675c7e82f1b54e33d30d6029765ec29a72ad537b5d5cfdca976803b5b SHA512 04c3acef723ce306537114ed0f67e96d6c4c638d5dad12e38fcbf1b4dc3e7a972ca0c950adfbbbec7deb8da910e03e867e26ccb83d39eb1381daf0cb5dd2ac6b +DIST kazoo-2.8.0.tar.gz 170037 BLAKE2B feded24671d6f4f5f7973b76048e5b8416e4b56aabdd9d32a8ff27283b5e8578545cee62a385f764202ffb4e58cf083bd2c182dff9bf255e69dd1de83e88db43 SHA512 ae244a70356274d6259d255e60a5dff00eb22bcf16d5b25f9d9a03178619dacb57414905b473801347b4ec1a19e5600be6c7040a5e53b67b81b440c304c95cc0 diff --git a/dev-python/kazoo/kazoo-2.8.0.ebuild b/dev-python/kazoo/kazoo-2.8.0.ebuild new file mode 100644 index 000000000000..9efc213e7753 --- /dev/null +++ b/dev-python/kazoo/kazoo-2.8.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="A high-level Python library that makes it easier to use Apache Zookeeper" +HOMEPAGE="https://kazoo.readthedocs.org/ https://github.com/python-zk/kazoo/ https://pypi.org/project/kazoo/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/graphviz[${PYTHON_USEDEP}] + >=dev-python/objgraph-3.4.0[${PYTHON_USEDEP}] + sys-cluster/zookeeper-bin + ) +" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +src_prepare() { + # TODO + sed -e 's:test_close:_&:' \ + -e 's:test_delete_operation:_&:' \ + -i kazoo/tests/test_cache.py || die + distutils-r1_src_prepare +} + +src_test() { + local pkgver=$(best_version sys-cluster/zookeeper-bin) + export ZOOKEEPER_VERSION=${pkgver##*-} + export ZOOKEEPER_PATH=${BROOT}/opt/zookeeper-bin + distutils-r1_src_test +} + +python_install_all() { + local DOCS=( {CHANGES,CONTRIBUTING,README}.md ) + distutils-r1_python_install_all +} |