summaryrefslogtreecommitdiff
path: root/dev-python/django-cacheops
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-16 00:22:55 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-16 00:22:55 +0000
commitb4c2aa4f33970ea2c862e0f7e57f01564bc63002 (patch)
tree1e180579eefb953f3ef09005ad064af004885e1c /dev-python/django-cacheops
parent0ffb93f7e1f8ab9362275c3ba3e7a7dff0939a26 (diff)
gentoo auto-resync : 16:03:2023 - 00:22:55
Diffstat (limited to 'dev-python/django-cacheops')
-rw-r--r--dev-python/django-cacheops/Manifest2
-rw-r--r--dev-python/django-cacheops/django-cacheops-7.0.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/django-cacheops/Manifest b/dev-python/django-cacheops/Manifest
index 3ad2a8a7a856..de08ebf0b666 100644
--- a/dev-python/django-cacheops/Manifest
+++ b/dev-python/django-cacheops/Manifest
@@ -1,5 +1,7 @@
DIST django-cacheops-6.1.gh.tar.gz 52972 BLAKE2B bdcd045912100ebdfdfd9add23b0df634b029cc2ffe41c351176e327f1e21c90457cfca9e45348dddce60e39fee5c431428ff7f2c954194e4c06c8bc09d78945 SHA512 43dcd4f302afee1acf73125aae7c2e2eece560cc6f07f3374391ac54e0438fd59b80a24e65f52bd7aa4978fd8a428939a8d607c7aa4b25f47d68373cfc12772f
DIST django-cacheops-6.2.gh.tar.gz 55279 BLAKE2B 9fa05d6701e0cb705a012714f4ef5b98e6a56fe916033567e71256f2425ef844451d98cf7b2dd78023a680e19eab52b2f8cc4100ccf037e3d2e33f814eb47ead SHA512 48e51de2fd13c16a97085b9c6e61833f6c8b0252a0ede9e8a4beaa973e509fe34731804830b0d80926c0ae0f75aef939b7b21368de7ac17053bb1c10c0a7d104
+DIST django-cacheops-7.0.gh.tar.gz 56009 BLAKE2B 7829c6308db163dce5e75170093107c5a9d7dc6c5caccdea55b81631f43664ddea767ce9320221abdfc9c52af6bea363a62b5e7e86e0afa54208fabf3baf431a SHA512 bae0005e377ab8d9f9dc6da50a845966affc75b57846eb432bd7090f20b644e1b7ce9e963a9b6e84270661c23a51c7cf0436fc8448d34fb3c2f3f3245f98f7f7
EBUILD django-cacheops-6.1.ebuild 1521 BLAKE2B da2deaae67c421e871bf6276e6bc8e4c751c058fbf72c8bb6300d2c07debff8d17b7221c456089e0fcc15fa3053c6ebab6162e0017cb03a5bcbd80d2f4c2ec66 SHA512 66af9db7403be0839df4871128b0489144306dfe868c50fba1a3e7dfef8095d9de448e8e85c97b6c72c115f01aafc9a385ff6b72e06711e045491d2dbdae8d3e
EBUILD django-cacheops-6.2.ebuild 1521 BLAKE2B aa996d62d36e8ef24dc9ab7cfec465cac61c666579b8b86dbbdea82867fec2a47fe2e8019ab988f4b9073b2c44aa1c665b5b4bda5f19f06493b94678e8da30f7 SHA512 9bd00696549b8ad0274167d13999237da21b1bf0d3ce5886627579fd053c8b8677187a5cf4be5d993a47becee4b0d1039b05fa3129a702241e6eb9eb7c8a8061
+EBUILD django-cacheops-7.0.ebuild 1521 BLAKE2B a7d4a55bccbcf98d7cb8c156db20d1a9c307572178b30e587168a6c38c1a7a985ba034bc09f032d4c02ae39ff44e50464e5f602fa61d0bb7a8ac726138a7f697 SHA512 44b9cf6ca6d0ce07bbc9d144d4e69632764d60ca02987f1696974b5bf8de6544adb18fe814b534964e8685dd5c1935bf62d43cddd6ddf5b2dc12ee7f54ebd2e1
MISC metadata.xml 381 BLAKE2B b8bf138d65b463c15b22be44750822bf6d49f1e651ecc6884dc008b9f1c93ff314967d8d3793825e129c8ac5d98348ac2726ec36ad43b8ec5d0829a78a16a26b SHA512 ad1f2ac5abcfc3705d70cc717bc076115d299a3b973852a542a7d41fabccc695b79ada0297a48cbe8f04815d66e696b437eca896e291c7da9682a85542d3e469
diff --git a/dev-python/django-cacheops/django-cacheops-7.0.ebuild b/dev-python/django-cacheops/django-cacheops-7.0.ebuild
new file mode 100644
index 000000000000..f7d4a8683991
--- /dev/null
+++ b/dev-python/django-cacheops/django-cacheops-7.0.ebuild
@@ -0,0 +1,72 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="ORM cache with automatic granular event-driven invalidation for Django"
+HOMEPAGE="
+ https://github.com/Suor/django-cacheops/
+ https://pypi.org/project/django-cacheops/
+"
+SRC_URI="
+ https://github.com/Suor/django-cacheops/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/django-3.2[${PYTHON_USEDEP}]
+ >=dev-python/redis-2.9.1[${PYTHON_USEDEP}]
+ >=dev-python/funcy-1.8[${PYTHON_USEDEP}]
+ >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ dev-db/redis
+ dev-python/dill[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+src_prepare() {
+ # Remove test dependent on unpackaged before_after
+ sed -e 's/test_lock/_&/' -i tests/test_extras.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x DJANGO_SETTINGS_MODULE=tests.settings
+ local -x PYTHONPATH=.
+ django-admin test -v 2 || die
+}
+
+src_test() {
+ local redis_pid="${T}"/redis.pid
+ local redis_port=6379
+
+ einfo "Spawning Redis"
+ einfo "NOTE: Port ${redis_port} must be free"
+ "${EPREFIX}"/usr/sbin/redis-server - <<-EOF || die
+ daemonize yes
+ pidfile ${redis_pid}
+ port ${redis_port}
+ bind 127.0.0.1
+ EOF
+
+ # Run the tests
+ distutils-r1_src_test
+
+ # Clean up afterwards
+ kill "$(<"${redis_pid}")" || die
+}