Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/APScheduler/
Date: Tue, 31 Jan 2023 16:58:12
Message-Id: 1675184280.e520f0402fcfd545bdec7f5880a6275f52725d12.mgorny@gentoo
1 commit: e520f0402fcfd545bdec7f5880a6275f52725d12
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 16:30:27 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 16:58:00 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e520f040
7
8 dev-python/APScheduler: PEP517, py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/APScheduler/APScheduler-3.9.1-r1.ebuild | 58 ++++++++++++++++++++++
13 1 file changed, 58 insertions(+)
14
15 diff --git a/dev-python/APScheduler/APScheduler-3.9.1-r1.ebuild b/dev-python/APScheduler/APScheduler-3.9.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..662165451711
18 --- /dev/null
19 +++ b/dev-python/APScheduler/APScheduler-3.9.1-r1.ebuild
20 @@ -0,0 +1,58 @@
21 +# Copyright 1999-2023 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{9..11} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="In-process task scheduler with Cron-like capabilities"
32 +HOMEPAGE="
33 + https://github.com/agronholm/apscheduler/
34 + https://pypi.org/project/APScheduler/
35 +"
36 +SRC_URI="mirror://pypi/A/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +# imports pkg_resources
43 +RDEPEND="
44 + dev-python/pytz[${PYTHON_USEDEP}]
45 + dev-python/setuptools[${PYTHON_USEDEP}]
46 + >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
47 + >=dev-python/tzlocal-4[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
51 + test? (
52 + <dev-python/sqlalchemy-2[${PYTHON_USEDEP}]
53 + dev-python/tornado[${PYTHON_USEDEP}]
54 + )
55 +"
56 +
57 +distutils_enable_tests pytest
58 +
59 +PATCHES=(
60 + # disable test fixtures using external servers (mongodb, redis...)
61 + # these fixtures are using markers in git master, so the patch
62 + # should be no longer necessary with next major bump
63 + "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch
64 +)
65 +
66 +EPYTEST_DESELECT=(
67 + tests/test_jobstores.py::test_repr_mongodbjobstore
68 + tests/test_jobstores.py::test_repr_redisjobstore
69 + tests/test_jobstores.py::test_repr_zookeeperjobstore
70 +)
71 +
72 +python_prepare_all() {
73 + # suppress setuptools warning #797751
74 + sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die
75 + sed -e '/addopts/d' -i setup.cfg || die
76 +
77 + distutils-r1_python_prepare_all
78 +}