summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-10-25 07:40:23 +0200
committerMichał Górny <mgorny@gentoo.org>2021-10-25 07:58:34 +0200
commit6fe03b73da9887d06020c35e353b35069f95dfac (patch)
tree843a811e89d701dd0e9a23350b46c07a122969f9 /dev-python/APScheduler
parentsys-fs/fscrypt: add 0.3.1 (diff)
downloadgentoo-6fe03b73da9887d06020c35e353b35069f95dfac.tar.gz
gentoo-6fe03b73da9887d06020c35e353b35069f95dfac.tar.bz2
gentoo-6fe03b73da9887d06020c35e353b35069f95dfac.zip
dev-python/APScheduler: Bump to 3.8.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/APScheduler')
-rw-r--r--dev-python/APScheduler/APScheduler-3.8.1.ebuild42
-rw-r--r--dev-python/APScheduler/Manifest1
-rw-r--r--dev-python/APScheduler/files/APScheduler-3.8.1-external-server-tests.patch37
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/APScheduler/APScheduler-3.8.1.ebuild b/dev-python/APScheduler/APScheduler-3.8.1.ebuild
new file mode 100644
index 000000000000..4f840eeaf53f
--- /dev/null
+++ b/dev-python/APScheduler/APScheduler-3.8.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="In-process task scheduler with Cron-like capabilities"
+HOMEPAGE="https://github.com/agronholm/apscheduler"
+SRC_URI="mirror://pypi/A/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
+ >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/tzlocal-4[${PYTHON_USEDEP}]"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ www-servers/tornado[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ # disable test fixtures using external servers (mongodb, redis...)
+ # these fixtures are using markers in git master, so the patch
+ # should be no longer necessary with next major bump
+ "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch
+)
+
+EPYTEST_DESELECT=(
+ tests/test_jobstores.py::test_repr_mongodbjobstore
+ tests/test_jobstores.py::test_repr_redisjobstore
+ tests/test_jobstores.py::test_repr_zookeeperjobstore
+)
diff --git a/dev-python/APScheduler/Manifest b/dev-python/APScheduler/Manifest
index 905d6cd4dc4d..34b70bb995c8 100644
--- a/dev-python/APScheduler/Manifest
+++ b/dev-python/APScheduler/Manifest
@@ -1 +1,2 @@
DIST APScheduler-3.6.3.tar.gz 96309 BLAKE2B 6dcd49ec3ebe4f815a7fd2594c438dfe99d9de720a4319a3c7c202deba1235740e478357dd78ef74ec3610652b23a58f23c1188fcddb3b2e48b160895f3ed06a SHA512 4c348a4f37a7973633554a69635f334b3c293c8942fe853b309b4b65335f5d4d553d7d42fd4661b0e6a36f5e97446d296a2c8971bdb51dad3bc8ee6b6d3b20ba
+DIST APScheduler-3.8.1.tar.gz 98699 BLAKE2B 7a8320251670de29f76375387f8a3817b3a9c401befd4bfefba106817ec3d21fc0f60af9b7a7620f83c0e1c651bc3eb8c62036a17e01ff91bf5dcf492ff78911 SHA512 553af2532b32bcdc7dc3047bf4f51623e87dbee62dac40b7ca8c3e64881467ecf6c50df56c863d5a44c6b8a99eb02ae22ae008d76ee4836ba398afd280bed99b
diff --git a/dev-python/APScheduler/files/APScheduler-3.8.1-external-server-tests.patch b/dev-python/APScheduler/files/APScheduler-3.8.1-external-server-tests.patch
new file mode 100644
index 000000000000..4ad1b62d0fd1
--- /dev/null
+++ b/dev-python/APScheduler/files/APScheduler-3.8.1-external-server-tests.patch
@@ -0,0 +1,37 @@
+From bd39f1a1ec08dd28dda87419a8f25e14bafe2d2a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 25 Oct 2021 07:36:06 +0200
+Subject: [PATCH] Disable test fixture requiring external servers
+
+---
+ tests/test_jobstores.py | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/tests/test_jobstores.py b/tests/test_jobstores.py
+index 132161b..db760bd 100644
+--- a/tests/test_jobstores.py
++++ b/tests/test_jobstores.py
+@@ -86,16 +86,14 @@ def zookeeperjobstore():
+ store.shutdown()
+
+
+-@pytest.fixture(params=['memjobstore', 'sqlalchemyjobstore', 'mongodbjobstore', 'redisjobstore',
+- 'rethinkdbjobstore', 'zookeeperjobstore'],
+- ids=['memory', 'sqlalchemy', 'mongodb', 'redis', 'rethinkdb', 'zookeeper'])
++@pytest.fixture(params=['memjobstore', 'sqlalchemyjobstore'],
++ ids=['memory', 'sqlalchemy'])
+ def jobstore(request):
+ return request.getfixturevalue(request.param)
+
+
+-@pytest.fixture(params=['sqlalchemyjobstore', 'mongodbjobstore', 'redisjobstore',
+- 'rethinkdbjobstore', 'zookeeperjobstore'],
+- ids=['sqlalchemy', 'mongodb', 'redis', 'rethinkdb', 'zookeeper'])
++@pytest.fixture(params=['sqlalchemyjobstore'],
++ ids=['sqlalchemy'])
+ def persistent_jobstore(request):
+ return request.getfixturevalue(request.param)
+
+--
+2.33.1
+