blob: 4113dde0f24519f2cb3e7ea140b803f560f1b461 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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_{9..11} )
inherit distutils-r1
DESCRIPTION="In-process task scheduler with Cron-like capabilities"
HOMEPAGE="
https://github.com/agronholm/apscheduler/
https://pypi.org/project/APScheduler/
"
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# imports pkg_resources
RDEPEND="
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/setuptools[${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-1.4[${PYTHON_USEDEP}]
dev-python/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
)
python_prepare_all() {
# suppress setuptools warning #797751
sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die
sed -e '/addopts/d' -i setup.cfg || die
distutils-r1_python_prepare_all
}
|