diff options
| author | Sam James <sam@gentoo.org> | 2021-03-22 22:46:38 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2021-03-23 04:48:50 +0000 |
| commit | b9e7781ef2c48705384d07cdf02461bd32f67fd4 (patch) | |
| tree | d0f7608cda17585a9ae9711c80e1eee59265b0e1 /dev-python/redis-py/redis-py-3.5.3.ebuild | |
| parent | 3af3bb8eb4aaea4d3b9d57539847134c560b8b0e (diff) | |
| download | gentoo-b9e7781ef2c48705384d07cdf02461bd32f67fd4.tar.gz gentoo-b9e7781ef2c48705384d07cdf02461bd32f67fd4.tar.bz2 gentoo-b9e7781ef2c48705384d07cdf02461bd32f67fd4.zip | |
dev-python/redis-py: style changes, EPREFIX redis binary for tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/redis-py/redis-py-3.5.3.ebuild')
| -rw-r--r-- | dev-python/redis-py/redis-py-3.5.3.ebuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dev-python/redis-py/redis-py-3.5.3.ebuild b/dev-python/redis-py/redis-py-3.5.3.ebuild index b23499651afc..840ef98b8055 100644 --- a/dev-python/redis-py/redis-py-3.5.3.ebuild +++ b/dev-python/redis-py/redis-py-3.5.3.ebuild @@ -13,6 +13,7 @@ MY_P="${MY_PN}-${PV}" DESCRIPTION="Python client for Redis key-value store" HOMEPAGE="https://github.com/andymccurdy/redis-py" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" @@ -27,8 +28,6 @@ DEPEND=" ) " -S="${WORKDIR}/${MY_P}" - python_prepare_all() { distutils-r1_python_prepare_all @@ -54,10 +53,11 @@ python_compile() { src_test() { local redis_pid="${T}"/redis.pid local redis_port=6379 - local redis_test_config="daemonize yes - pidfile ${redis_pid} - port ${redis_port} - bind 127.0.0.1 + local redis_test_config=" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 " # Spawn Redis itself for testing purposes @@ -65,7 +65,7 @@ src_test() { # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. elog "Spawning Redis" elog "NOTE: Port ${redis_port} must be free" - /usr/sbin/redis-server - <<< "${redis_test_config}" || die + "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die # Run the tests distutils-r1_src_test |
