diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-python/rq | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-python/rq')
-rw-r--r-- | dev-python/rq/Manifest | 1 | ||||
-rw-r--r-- | dev-python/rq/rq-1.10.1-r2.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest index bcf5859d3463..f90a7bb432d2 100644 --- a/dev-python/rq/Manifest +++ b/dev-python/rq/Manifest @@ -1,3 +1,4 @@ DIST rq-1.10.1.tar.gz 599678 BLAKE2B 0673ca0eea69c3f86e50f5609a9c4ed2c2d93d331479510365a744461a5d878e6de6a9683356562754a25760f8ba1d8a65f6d5acfe878e488a70c54dc0bb5b54 SHA512 1a12bd5db27eb3f9303b2f3465c2f22092f7eebfabfc1e6aa7f65de7ea139df3833f9bbdc7061de564b2418608641b3755993bb918efbf93b04df67ca942ea09 EBUILD rq-1.10.1-r1.ebuild 1375 BLAKE2B 23fc6b342eaa0af5a86150d6bb94f7de9306e72886f70d754f093e47204b868aaac9629fed672092136ce76922211051e0282f11ddd41ae8b6032f7bd4d74615 SHA512 b8d6ce91d2f4512fa0d052d6c7571669dfddb21cdabb6073fef3d97fde779d9e89435280297b4d3495adabee448988ae9f71bd9016f2f6cf651acea0ccfa5403 +EBUILD rq-1.10.1-r2.ebuild 1408 BLAKE2B a39c2958440e3590c5b091251052ba8bbdfd39918b61c6634aae83ae51a536badc1f71c1bf0c69806f8f098ef9df1ae74faf38042ed8cf3709c97b092ab10294 SHA512 85b06d8f262760be204f254b455da8bbfb597e552ddf7ff6ff891b94de4879861b540accc25da76c74bf3a6a157223068c8af89444dbde412e0368223de02dce MISC metadata.xml 453 BLAKE2B 6a46d43b524fded1ad4749fb9669ea07f8b3e23940d0bf2a4db5d92564316b01fdfbe220771e30b1a110ef72c613ad683cdcb7940682ea32198a5b6f027e4db3 SHA512 104ef96c34b55a9fda377c1304ff85781219fdbccef1a83d1bef30cb2fbd0ef816cfe82715af8937f452499135f7ed65c65a29c34919a09b6144ada367c26af5 diff --git a/dev-python/rq/rq-1.10.1-r2.ebuild b/dev-python/rq/rq-1.10.1-r2.ebuild new file mode 100644 index 000000000000..92f33b0d0ce2 --- /dev/null +++ b/dev-python/rq/rq-1.10.1-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..10} ) + +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 ~riscv ~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 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 +} |