summaryrefslogtreecommitdiff
path: root/dev-python/rq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-07-03 22:39:47 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-07-03 22:39:47 +0100
commit7f0ccc917c7abe6223784c703d86cd14755691fb (patch)
tree8c6793f68896b341e22f33d7e6cef88e481f4a8b /dev-python/rq
parent9aa80713372911cec499b3adb2cd746790920916 (diff)
gentoo resync : 03.07.2021
Diffstat (limited to 'dev-python/rq')
-rw-r--r--dev-python/rq/Manifest2
-rw-r--r--dev-python/rq/rq-1.9.0.ebuild53
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest
index 381bce9eb784..72fd7767730c 100644
--- a/dev-python/rq/Manifest
+++ b/dev-python/rq/Manifest
@@ -1,3 +1,5 @@
DIST rq-1.8.1.tar.gz 585211 BLAKE2B 17feb07cb376c5aef88a7aab6d716f58a19f62f19db6c6b0490b4f666981e40304c6a23c88669a0aef9b75a39ce8cb85a9b10a2d42e83e646cdcb6282167d8f9 SHA512 b9df7b4e894a5da693827ff720be3068336d82d2f17928faf5ae6133b042ac2f98a3d673bb2ed86c9351479669e9ef0e4fffcb1dba9b8853f6f793db4a4678f8
+DIST rq-1.9.0.tar.gz 592217 BLAKE2B 831fbc7a3fe23ead59041e2556d37e4aa885a21bffa9aeeb0765382e84b56a2ee6d34a864cb03a9a12274c8ac80b714f10a7752d0bae7a79b8e2e7149be4aea7 SHA512 a2ec7b05fe1dda983cfb30182401c6e5367c54b7649ddcb1d3c6d0f0a5f6583665b39ed7c1cb6bc37d067926f089e3fd80ea7558856233edc1bca8234aa728aa
EBUILD rq-1.8.1.ebuild 1365 BLAKE2B db42990a90d0a4adb2b1dbc3b458f82e27f18e5887953efffadf720350a4018a68109ae186889bcef92fbdce1191e83ccd49789eab58c5a412c55d0bc773dc8e SHA512 323c05c818ebf27372987852563829c6155045a658711a297577fe1e28dcc93e106375f95b8eee0e9bb67bf90a0abf67ae4701cce4b98b5234058a402dd0a926
+EBUILD rq-1.9.0.ebuild 1369 BLAKE2B ed157155382e0c363f099bdda4c9c63de60be4964bdf1b50b8f95e8207e20eb44352a06da4641f33247e12de51f00c13b8889e3e4f4a63dc4e1894331a97bd6d SHA512 ac88d8c45df017c600560bcd2bed430b591627064c581570f7af3bf4bbf0f9d2a9c37b3f909c2708459adffb5c39d1aa826171ba4e57ad2588c8d1322366d512
MISC metadata.xml 452 BLAKE2B 61dd85f86606a345d1f3fa4d88f7b4e7c827d61107e0f6ae7c60d24cb3d49f9da5a472310e182a9df36cfcf50b8c3415028958b0559d84db755bf8ba16140a22 SHA512 a70bad859fd51b632427cf5aaecadc36815e4efd14f4aeb02125da4b5c04724abf3d82f42f74c9851efa60b48e2f7722f2a82182e65f90cf2045354b3810c0d7
diff --git a/dev-python/rq/rq-1.9.0.ebuild b/dev-python/rq/rq-1.9.0.ebuild
new file mode 100644
index 000000000000..ea0095ca05a0
--- /dev/null
+++ b/dev-python/rq/rq-1.9.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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
+}