diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-09-10 08:24:45 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-09-10 09:14:52 +0200 |
commit | d6ce36e3b2c4e22eef4ad05f95b32abfd87c1271 (patch) | |
tree | 3b9b45bce0e4c179836adddfb95143a88e654efc /dev-python/rq | |
parent | dev-python/josepy: Bump to 1.9.0 (diff) | |
download | gentoo-d6ce36e3b2c4e22eef4ad05f95b32abfd87c1271.tar.gz gentoo-d6ce36e3b2c4e22eef4ad05f95b32abfd87c1271.tar.bz2 gentoo-d6ce36e3b2c4e22eef4ad05f95b32abfd87c1271.zip |
dev-python/rq: Bump to 1.10 (or 1.10.0)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/rq')
-rw-r--r-- | dev-python/rq/Manifest | 1 | ||||
-rw-r--r-- | dev-python/rq/rq-1.10.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest index 8db098b7654f..39dbceebd319 100644 --- a/dev-python/rq/Manifest +++ b/dev-python/rq/Manifest @@ -1 +1,2 @@ +DIST rq-1.10.tar.gz 598643 BLAKE2B 503c2e45d134434373eb89ce205dc1a82f16e0281c1f872046d51538b3352b0ffeeef72f64991d093f271c276c1a8a3be92fdda4d7db3e083549f69ea7a04560 SHA512 7e2de3e36309eb3c095d34c28d9cba340d0699b8b4b457491d12420bfc1370e0336dc10f4f1115e83ac0ea8884500750895417f8b5c2090105d3c9e32d1b5bec DIST rq-1.9.0.tar.gz 592217 BLAKE2B 831fbc7a3fe23ead59041e2556d37e4aa885a21bffa9aeeb0765382e84b56a2ee6d34a864cb03a9a12274c8ac80b714f10a7752d0bae7a79b8e2e7149be4aea7 SHA512 a2ec7b05fe1dda983cfb30182401c6e5367c54b7649ddcb1d3c6d0f0a5f6583665b39ed7c1cb6bc37d067926f089e3fd80ea7558856233edc1bca8234aa728aa diff --git a/dev-python/rq/rq-1.10.ebuild b/dev-python/rq/rq-1.10.ebuild new file mode 100644 index 000000000000..165a441d99e5 --- /dev/null +++ b/dev-python/rq/rq-1.10.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="simple, lightweight library for creating and processing background jobs" +HOMEPAGE="https://python-rq.org https://github.com/rq/rq" +SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=" + >=dev-python/click-5.0[${PYTHON_USEDEP}] + >=dev-python/redis-py-3.5.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/mock[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/sentry-sdk[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest + +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 + " + + # Spawn Redis itself for testing purposes + # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. + # 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 + + # Run the actual tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} |