* [gentoo-commits] repo/gentoo:master commit in: dev-python/apscheduler/, dev-python/apscheduler/files/
@ 2024-11-25 4:02 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2024-11-25 4:02 UTC (permalink / raw
To: gentoo-commits
commit: 62c3e7cbc813067564960ee038519d330a0a4d8b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 25 04:01:03 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 04:02:44 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c3e7cb
dev-python/apscheduler: Bump to 3.11.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/apscheduler/Manifest | 1 +
dev-python/apscheduler/apscheduler-3.11.0.ebuild | 45 ++++++++++++++++++++++
.../apscheduler-3.11.0-external-server-tests.patch | 36 +++++++++++++++++
3 files changed, 82 insertions(+)
diff --git a/dev-python/apscheduler/Manifest b/dev-python/apscheduler/Manifest
index c2baeb97bb07..9c493ca1d1f5 100644
--- a/dev-python/apscheduler/Manifest
+++ b/dev-python/apscheduler/Manifest
@@ -1 +1,2 @@
DIST APScheduler-3.10.4.tar.gz 100832 BLAKE2B d519a85c54951e4b5a09449f1ceda1afe8ff0120c4a7cfab4f72fb9dacc41ac73bb66bedd6615cf126f53b590eb02617ac739bac078f21dd503c2e081a057cec SHA512 44b78e60b7349437fb8d6e5ad3bbd764cfa653fdd65685b586119225e8daaff9b150871887812a1f3d4cd67b942c70e99d1606d38b83685953fb1bb1a82742fe
+DIST apscheduler-3.11.0.tar.gz 107347 BLAKE2B 1c18a3779f73a6efaaa92e9a12bd34afaa4afbbeed76bf20b07a2eb9dbb11740e7e6d0f2a94bdd6c8a7ad16ea4db855ccce8a9dc007aa6da7d91b7362af90753 SHA512 c66d87773d3fe353e5f0bbc4bc9ba05337b555db0810e42e2e384fd9717438fda501d0c724cd7180010b11e5d8db901922b79a163aec3a420a6a65eafb6f39f6
diff --git a/dev-python/apscheduler/apscheduler-3.11.0.ebuild b/dev-python/apscheduler/apscheduler-3.11.0.ebuild
new file mode 100644
index 000000000000..9dc38ad566c9
--- /dev/null
+++ b/dev-python/apscheduler/apscheduler-3.11.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=APScheduler
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="In-process task scheduler with Cron-like capabilities"
+HOMEPAGE="
+ https://github.com/agronholm/apscheduler/
+ https://pypi.org/project/APScheduler/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ >=dev-python/tzlocal-4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/anyio-4.5.2[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}]
+ dev-python/tornado[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ # disable test fixtures using external servers (mongodb, redis...)
+ "${FILESDIR}"/apscheduler-3.11.0-external-server-tests.patch
+)
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p anyio
+}
diff --git a/dev-python/apscheduler/files/apscheduler-3.11.0-external-server-tests.patch b/dev-python/apscheduler/files/apscheduler-3.11.0-external-server-tests.patch
new file mode 100644
index 000000000000..d0e406259e4e
--- /dev/null
+++ b/dev-python/apscheduler/files/apscheduler-3.11.0-external-server-tests.patch
@@ -0,0 +1,36 @@
+diff --git a/tests/test_jobstores.py b/tests/test_jobstores.py
+index b90df0a..e962103 100644
+--- a/tests/test_jobstores.py
++++ b/tests/test_jobstores.py
+@@ -59,6 +59,7 @@ def rethinkdbjobstore():
+
+ @pytest.fixture
+ def mongodbjobstore():
++ pytest.skip("requires external server")
+ mongodb = pytest.importorskip("apscheduler.jobstores.mongodb")
+ store = mongodb.MongoDBJobStore(database="apscheduler_unittest")
+ store.start(None, "mongodb")
+@@ -69,6 +70,7 @@ def mongodbjobstore():
+
+ @pytest.fixture
+ def redisjobstore():
++ pytest.skip("requires external server")
+ redis = pytest.importorskip("apscheduler.jobstores.redis")
+ store = redis.RedisJobStore()
+ store.start(None, "redis")
+@@ -79,6 +81,7 @@ def redisjobstore():
+
+ @pytest.fixture
+ def zookeeperjobstore():
++ pytest.skip("requires external server")
+ zookeeper = pytest.importorskip("apscheduler.jobstores.zookeeper")
+ store = zookeeper.ZooKeeperJobStore(path="/apscheduler_unittest")
+ store.start(None, "zookeeper")
+@@ -89,6 +92,7 @@ def zookeeperjobstore():
+
+ @pytest.fixture
+ def etcdjobstore():
++ pytest.skip("requires external server")
+ etcd = pytest.importorskip("apscheduler.jobstores.etcd")
+ store = etcd.EtcdJobStore(path="/apscheduler_unittest")
+ store.start(None, "etcd")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-25 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-25 4:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/apscheduler/, dev-python/apscheduler/files/ 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