public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django-cacheops/
Date: Wed, 15 Mar 2023 18:34:02 +0000 (UTC)	[thread overview]
Message-ID: <1678905233.61b71a4de793517b9ee111a2d62129344118b6e2.arthurzam@gentoo> (raw)

commit:     61b71a4de793517b9ee111a2d62129344118b6e2
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 15 18:29:27 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 15 18:33:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61b71a4d

dev-python/django-cacheops: add 7.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/django-cacheops/Manifest                |  1 +
 .../django-cacheops/django-cacheops-7.0.ebuild     | 72 ++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/django-cacheops/Manifest b/dev-python/django-cacheops/Manifest
index f8370f4d98c3..6b493af5a502 100644
--- a/dev-python/django-cacheops/Manifest
+++ b/dev-python/django-cacheops/Manifest
@@ -1,2 +1,3 @@
 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

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
+}


             reply	other threads:[~2023-03-15 18:34 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15 18:34 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-01  6:35 [gentoo-commits] repo/gentoo:master commit in: dev-python/django-cacheops/ Michał Górny
2024-07-08 19:22 Michał Górny
2023-11-23 20:35 Arthur Zamarin
2023-10-25  7:43 Michał Górny
2023-07-28 15:58 Michał Górny
2023-07-24 11:31 Michał Górny
2023-05-11  6:34 Michał Górny
2023-04-06 15:38 Michał Górny
2023-02-23  6:19 Michał Górny
2022-06-23  5:19 Sam James
2022-06-16  8:05 Michał Górny
2022-05-28  5:00 Michał Górny
2021-11-14  8:46 Michał Górny
2021-11-01 10:09 Arthur Zamarin
2021-11-01 10:09 Arthur Zamarin
2021-11-01 10:09 Arthur Zamarin
2021-11-01 10:09 Arthur Zamarin
2021-04-25 18:10 William Hubbs
2021-01-30 20:27 Conrad Kostecki
2021-01-30 20:27 Conrad Kostecki
2020-03-26 20:52 Michał Górny
2020-02-11 20:10 William Hubbs
2020-02-05  5:50 Michał Górny
2020-01-26 20:01 William Hubbs
2020-01-25 20:54 Michał Górny
2019-07-15 23:16 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1678905233.61b71a4de793517b9ee111a2d62129344118b6e2.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox