public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2023-08-07  2:36 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2023-08-07  2:36 UTC (permalink / raw
  To: gentoo-commits

commit:     becb7d1817a2862efef6bd496df9d1eda69d83a9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 01:51:15 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 01:51:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=becb7d18

dev-python/aiocache: Bump to 0.12.2

Closes: https://bugs.gentoo.org/904893
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/Manifest               |  1 +
 dev-python/aiocache/aiocache-0.12.2.ebuild | 43 ++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/aiocache/Manifest b/dev-python/aiocache/Manifest
index 421a8f796e2c..10dac826433c 100644
--- a/dev-python/aiocache/Manifest
+++ b/dev-python/aiocache/Manifest
@@ -1 +1,2 @@
 DIST aiocache-0.12.0.tar.gz 127002 BLAKE2B efb07ff146d777e99154c839d01665d35fbba410e1a1ca80d4c71f639e69abf43509d79398679027f0a94eb24cfdf933f5762418bd3f43dd441281cc1b1b5236 SHA512 8437c148cc2d40737c0352b0a2fa19636124b71bc03f206066e5c7b8910aa0f0bddfa40587d50a4acd86abd88e8db595a92e267d4b25234f20ccba94e5a63e7e
+DIST aiocache-0.12.2.tar.gz 131851 BLAKE2B a8467ec12321248f7673245c427567d2c8ef345a6a34694618fce0969e186de47097d64c3b94cbf047a281a1ed09889075862d9770f7787daaf9469f245b2493 SHA512 ce57e3fdbd428e8a8a94a45e5196e339d40f4fffa49851c3486b264e6344d72fe39407bd958a97baa7af06433c08a0e9d6a7ae44eff515dfc40012804ac876f2

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
new file mode 100644
index 000000000000..bba70b471f05
--- /dev/null
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -0,0 +1,43 @@
+# 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_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Asyncio cache manager"
+HOMEPAGE="
+	https://github.com/aio-libs/aiocache/
+	https://pypi.org/project/aiocache/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="
+	test? (
+		>=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}]
+		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		>=dev-python/redis-4.2.0[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+	local EPYTEST_IGNORE=(
+		# require running servers
+		# TODO: start redis and enable them
+		tests/acceptance
+		# benchmarks
+		tests/performance
+		# requires aiomcache
+		tests/ut/backends/test_memcached.py
+	)
+
+	epytest -o addopts= -m "not memcached"
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2023-08-07  3:01 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2023-08-07  3:01 UTC (permalink / raw
  To: gentoo-commits

commit:     16fd5a7788d7f3fcd8dae6710bba6b4072c4b0ee
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 02:44:44 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 03:01:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16fd5a77

dev-python/aiocache: Enable acceptance tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/aiocache-0.12.2.ebuild | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
index bba70b471f05..654d767ca7eb 100644
--- a/dev-python/aiocache/aiocache-0.12.2.ebuild
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -20,6 +20,7 @@ KEYWORDS="~amd64 ~x86"
 
 BDEPEND="
 	test? (
+		dev-db/redis
 		>=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}]
 		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
 		>=dev-python/redis-4.2.0[${PYTHON_USEDEP}]
@@ -30,9 +31,6 @@ distutils_enable_tests pytest
 
 python_test() {
 	local EPYTEST_IGNORE=(
-		# require running servers
-		# TODO: start redis and enable them
-		tests/acceptance
 		# benchmarks
 		tests/performance
 		# requires aiomcache
@@ -41,3 +39,24 @@ python_test() {
 
 	epytest -o addopts= -m "not memcached"
 }
+
+src_test() {
+	local redis_pid="${T}"/redis.pid
+	local redis_port=6379
+
+	# Spawn Redis for testing purposes
+	einfo "Spawning Redis"
+	einfo "NOTE: Port ${redis_port} must be free"
+	"${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
+		daemonize yes
+		pidfile ${redis_pid}
+		port ${redis_port}
+		bind 127.0.0.1 ::1
+	EOF
+
+	# Run the tests
+	distutils-r1_src_test
+
+	# Clean up afterwards
+	kill "$(<"${redis_pid}")" || die
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2023-08-07 11:46 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2023-08-07 11:46 UTC (permalink / raw
  To: gentoo-commits

commit:     2fcfc398833a1c855c16071373eddb4aa5a69e97
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 11:17:12 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 11:46:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fcfc398

dev-python/aiocache: Add a test dep on dev-python/marshmallow

Closes: https://bugs.gentoo.org/911829
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/aiocache-0.12.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
index 654d767ca7eb..9344ac84c735 100644
--- a/dev-python/aiocache/aiocache-0.12.2.ebuild
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -21,6 +21,7 @@ KEYWORDS="~amd64 ~x86"
 BDEPEND="
 	test? (
 		dev-db/redis
+		dev-python/marshmallow[${PYTHON_USEDEP}]
 		>=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}]
 		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
 		>=dev-python/redis-4.2.0[${PYTHON_USEDEP}]


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2023-08-07 11:54 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2023-08-07 11:54 UTC (permalink / raw
  To: gentoo-commits

commit:     749f75b44d905d3993bf24e88bb98c85a3927373
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 11:53:41 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 11:53:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749f75b4

dev-python/aiocache: Add missing test dep on dev-python/pytest-mock

Closes: https://bugs.gentoo.org/911851
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/aiocache-0.12.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
index 9344ac84c735..dd8c5bb60fe4 100644
--- a/dev-python/aiocache/aiocache-0.12.2.ebuild
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -24,6 +24,7 @@ BDEPEND="
 		dev-python/marshmallow[${PYTHON_USEDEP}]
 		>=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}]
 		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
 		>=dev-python/redis-4.2.0[${PYTHON_USEDEP}]
 	)
 "


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2024-01-27  9:48 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2024-01-27  9:48 UTC (permalink / raw
  To: gentoo-commits

commit:     b03999e07b8cc1725f10c365e74c7941118d7832
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 27 09:35:23 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 27 09:48:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b03999e0

dev-python/aiocache: Fix test failure

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/aiocache-0.12.2.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
index dd8c5bb60fe4..be1ff1ba4a4d 100644
--- a/dev-python/aiocache/aiocache-0.12.2.ebuild
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -32,6 +32,10 @@ BDEPEND="
 distutils_enable_tests pytest
 
 python_test() {
+	local EPYTEST_DESELECT=(
+		# broken by newer dev-python/redis (?), removed upstream
+		tests/ut/backends/test_redis.py::TestRedisBackend::test_close
+	)
 	local EPYTEST_IGNORE=(
 		# benchmarks
 		tests/performance
@@ -39,7 +43,8 @@ python_test() {
 		tests/ut/backends/test_memcached.py
 	)
 
-	epytest -o addopts= -m "not memcached"
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -o addopts= -m "not memcached" -p asyncio -p pytest_mock
 }
 
 src_test() {


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2024-06-13 16:15 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2024-06-13 16:15 UTC (permalink / raw
  To: gentoo-commits

commit:     7ff6cc6a8419886c40c61feb6b2daa61ccff4fde
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 15:58:34 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 13 16:14:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff6cc6a

dev-python/aiocache: Link to py3.13 failure report

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/aiocache-0.12.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild
index be1ff1ba4a4d..dd4566086e0c 100644
--- a/dev-python/aiocache/aiocache-0.12.2.ebuild
+++ b/dev-python/aiocache/aiocache-0.12.2.ebuild
@@ -4,6 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
+# py3.13: https://github.com/aio-libs/aiocache/issues/863
 PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1 pypi


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/
@ 2024-09-26  4:50 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2024-09-26  4:50 UTC (permalink / raw
  To: gentoo-commits

commit:     8d789c86655e5a69606b2ba549f5603354b5b4c7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 26 04:37:47 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 26 04:49:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d789c86

dev-python/aiocache: Bump to 0.12.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiocache/Manifest               |  1 +
 dev-python/aiocache/aiocache-0.12.3.ebuild | 70 ++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/dev-python/aiocache/Manifest b/dev-python/aiocache/Manifest
index 763434e37262..70bc4b1e082d 100644
--- a/dev-python/aiocache/Manifest
+++ b/dev-python/aiocache/Manifest
@@ -1 +1,2 @@
 DIST aiocache-0.12.2.tar.gz 131851 BLAKE2B a8467ec12321248f7673245c427567d2c8ef345a6a34694618fce0969e186de47097d64c3b94cbf047a281a1ed09889075862d9770f7787daaf9469f245b2493 SHA512 ce57e3fdbd428e8a8a94a45e5196e339d40f4fffa49851c3486b264e6344d72fe39407bd958a97baa7af06433c08a0e9d6a7ae44eff515dfc40012804ac876f2
+DIST aiocache-0.12.3.tar.gz 132196 BLAKE2B 281c3d107f6a925ee80f49004c908d982829f4609a0bea8cff5932f76b908b11db7feb969daa2b92da6483cb5cf1d60c79fb0c9fd67d379a1e2f77e609a48b39 SHA512 f1caabcc994564255dcef7db31b337c487b4f6add1f9c3256a49e43a1d35210e72e3fcc6ca5e535c92a5d9ea7fed0dfca55d495b0dafae5fa68ffea8e1d9ebc3

diff --git a/dev-python/aiocache/aiocache-0.12.3.ebuild b/dev-python/aiocache/aiocache-0.12.3.ebuild
new file mode 100644
index 000000000000..dd4566086e0c
--- /dev/null
+++ b/dev-python/aiocache/aiocache-0.12.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+# py3.13: https://github.com/aio-libs/aiocache/issues/863
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Asyncio cache manager"
+HOMEPAGE="
+	https://github.com/aio-libs/aiocache/
+	https://pypi.org/project/aiocache/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="
+	test? (
+		dev-db/redis
+		dev-python/marshmallow[${PYTHON_USEDEP}]
+		>=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}]
+		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
+		>=dev-python/redis-4.2.0[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# broken by newer dev-python/redis (?), removed upstream
+		tests/ut/backends/test_redis.py::TestRedisBackend::test_close
+	)
+	local EPYTEST_IGNORE=(
+		# benchmarks
+		tests/performance
+		# requires aiomcache
+		tests/ut/backends/test_memcached.py
+	)
+
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -o addopts= -m "not memcached" -p asyncio -p pytest_mock
+}
+
+src_test() {
+	local redis_pid="${T}"/redis.pid
+	local redis_port=6379
+
+	# Spawn Redis for testing purposes
+	einfo "Spawning Redis"
+	einfo "NOTE: Port ${redis_port} must be free"
+	"${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
+		daemonize yes
+		pidfile ${redis_pid}
+		port ${redis_port}
+		bind 127.0.0.1 ::1
+	EOF
+
+	# Run the tests
+	distutils-r1_src_test
+
+	# Clean up afterwards
+	kill "$(<"${redis_pid}")" || die
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-26  4:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 16:15 [gentoo-commits] repo/gentoo:master commit in: dev-python/aiocache/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-09-26  4:50 Michał Górny
2024-01-27  9:48 Michał Górny
2023-08-07 11:54 Michał Górny
2023-08-07 11:46 Michał Górny
2023-08-07  3:01 Michał Górny
2023-08-07  2:36 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox