public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/APScheduler/files/, dev-python/APScheduler/
@ 2021-10-25  5:58 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2021-10-25  5:58 UTC (permalink / raw
  To: gentoo-commits

commit:     6fe03b73da9887d06020c35e353b35069f95dfac
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 25 05:40:23 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 25 05:58:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe03b73

dev-python/APScheduler: Bump to 3.8.1

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

 dev-python/APScheduler/APScheduler-3.8.1.ebuild    | 42 ++++++++++++++++++++++
 dev-python/APScheduler/Manifest                    |  1 +
 .../APScheduler-3.8.1-external-server-tests.patch  | 37 +++++++++++++++++++
 3 files changed, 80 insertions(+)

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 00000000000..4f840eeaf53
--- /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 905d6cd4dc4..34b70bb995c 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 00000000000..4ad1b62d0fd
--- /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
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-25  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-25  5:58 [gentoo-commits] repo/gentoo:master commit in: dev-python/APScheduler/files/, dev-python/APScheduler/ 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