diff options
Diffstat (limited to 'dev-python/rq')
-rw-r--r-- | dev-python/rq/Manifest | 2 | ||||
-rw-r--r-- | dev-python/rq/rq-1.15.1.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest index 854589182099..e3bc8ef5f70f 100644 --- a/dev-python/rq/Manifest +++ b/dev-python/rq/Manifest @@ -1,3 +1,5 @@ +DIST rq-1.15.1.gh.tar.gz 633531 BLAKE2B e1cf463e54533a1a56fab98a66f4cfe2ef73da48ab965a10066b84050aa1ac72373328246236fbd45bdf3d026ffc355aa117a21047dce1cef16b18c6e96a0f3f SHA512 75228f037c5c731f7788bb18654f2e07a9af39f8980900166e07145887f7cbed06fbd7fb5513a770cee791d07a49d85a544b83f347cce6726d7745f8396e3aac DIST rq-1.15.gh.tar.gz 633276 BLAKE2B 885b4ef343924b8f4a88c6c3e93bbed1b62022e72217922e874b8f6be36c3656110037f862bfe27f134d57c41d1b741e5fa23e6ab48fbd787ff08bf628a5e207 SHA512 b1c9614b376b74795436333cff6a5bb62795e73d95376e8e18b2472fda3eb720608d495c57e3c2c1b2c237b7fc409602828bea631c1b8905d7df71c74e6c705c EBUILD rq-1.15-r1.ebuild 1437 BLAKE2B 1731a10a646cf45745f8d972b34286b25bdb2a291100b9d1d2482e07d7342cfdbfd5113f5edf88e7980781a6f149c13af36ff2b7f2e91fd989e9d3e43d2dc6ba SHA512 11292bf9a234ef65e48af9583ab3dd62ed1743158d34e58d594091264d4804d5fc10a3911cfec5e27ed569afd4e5c8aabaaace4e1a58cd6c762e5fca075d2d7f +EBUILD rq-1.15.1.ebuild 1441 BLAKE2B 7abf8e40a520fd49e1f90198a212e242ddf83ebf6c43ae806e0516cbbe3fbabfb1b279b0698195793033ad1629b43702902a30ca8d83b31265d80f8b9e6a7e97 SHA512 e1921bff061bea32d5facaa128140530f9d21117f03aae0d9df7f29193a2d897f40328c80eaf80ed4685b19363935b040c544bead2be5d3c107a885d1ee11d97 MISC metadata.xml 453 BLAKE2B 6a46d43b524fded1ad4749fb9669ea07f8b3e23940d0bf2a4db5d92564316b01fdfbe220771e30b1a110ef72c613ad683cdcb7940682ea32198a5b6f027e4db3 SHA512 104ef96c34b55a9fda377c1304ff85781219fdbccef1a83d1bef30cb2fbd0ef816cfe82715af8937f452499135f7ed65c65a29c34919a09b6144ada367c26af5 diff --git a/dev-python/rq/rq-1.15.1.ebuild b/dev-python/rq/rq-1.15.1.ebuild new file mode 100644 index 000000000000..8c0bd028f82f --- /dev/null +++ b/dev-python/rq/rq-1.15.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_11 ) + +inherit distutils-r1 + +DESCRIPTION="Simple, lightweight library for creating and processing background jobs" +HOMEPAGE=" + https://python-rq.org/ + https://github.com/rq/rq/ + https://pypi.org/project/rq/ +" +# Tests missing from sdist, as of 1.14.1 +SRC_URI=" + https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/click-5.0[${PYTHON_USEDEP}] + >=dev-python/redis-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/sentry-sdk[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests 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. + einfo "Spawning Redis" + einfo "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 +} |