Several updates

This commit is contained in:
layman
2021-03-25 13:21:29 +01:00
parent c5c8954dc6
commit 7a32756a5d
15 changed files with 491 additions and 64 deletions
@@ -0,0 +1,70 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..8} )
DISTUTILS_USE_SETUPTOOLS=rdepend
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"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
>=dev-python/tzlocal-1.2[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? (
dev-python/pytest[${PYTHON_USEDEP}]
www-servers/tornado[${PYTHON_USEDEP}]
)"
# Tests that are known to fail (some may be triggered by network-sandbox).
test_failures=(
test_add_class_method_job
test_add_instance_method_job
test_add_job_conflicting_id
test_asyncio_executor_shutdown
test_get_all_jobs
test_get_next_run_time
test_get_pending_jobs
test_get_pending_jobs_subsecond_difference
test_lookup_job
test_lookup_nonexistent_job
test_one_job_fails_to_load
test_remove_all_jobs
test_remove_job
test_remove_nonexistent_job
test_repr_mongodbjobstore
test_repr_redisjobstore
test_repr_zookeeperjobstore
test_run_coroutine_job
test_run_coroutine_job_tornado
test_update_job
test_update_job_clear_next_runtime
test_update_job_next_runtime
test_update_job_nonexistent_job
test_zookeeper_client_keep_open
test_zookeeper_client_ref
)
python_prepare_all() {
sed -i -e /setuptools_scm/d setup.py || die
while read -r -d ''; do
sed -Ee "s:$(echo "${test_failures[@]}"| sed 's: :|:g'):_\\0:" -i "${REPLY}" || die
done < <(grep -rElZ "$(echo "${test_failures[@]}"| sed 's: :|:g')" "${S}")
distutils-r1_python_prepare_all
}
python_test() {
py.test || die "Testing failed with ${EPYTHON}"
}
+3
View File
@@ -0,0 +1,3 @@
DIST APScheduler-3.7.0.tar.gz 97826 BLAKE2B 0d6c80f7f36cd09ecb6c325d27447b559e6b710b10b504ee1fe091d2da0cbac03e189c2ba74410df3fe93533326759f9a663b6b3c63c71c931302b8e77b34c38 SHA512 549f65883affb2bc6d7c24e027204151090e741a733440b94c18a68efe00503e241c95374ee51b9e059029d02197091b91fdde6696f7e162e2eb0b4d7575ff62
EBUILD APScheduler-3.7.0.ebuild 1830 BLAKE2B fba93aa327d6526694a5ac7dfde1f5119813b7d56ed557bb85e68482d2dc2c1f928508fafb924e35684650f746bf497aaac78bada2f89b90d9f2f2e22f05e6de SHA512 16325c915407ac6462046e7621df791c2253eedff48776b7f4b267e06b14c1d18e9f636535fef51fc7773f38a1c14eb21a68bb0b38ff00e4ca23a0b37d18a543
MISC metadata.xml 403 BLAKE2B a9cb9d18b06c206a2a3b89fe6a460dd477db5d591fad97138226e9caba4fd73512f47fc13d23b383d868cf9ef4cee74b4b2140e5ebb51c8c8cc765bad8c64c20 SHA512 b029f17fe0d3c8ab572fc92c45c41659c3c3dcf5bb487d1c862d65fb9f1c4215bcdade0958c3044117c97ca2442cb08dac89b3cd2817f143f807a608fcec5004
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zmedico@gentoo.org</email>
<name>Zac Medico</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">APScheduler</remote-id>
<remote-id type="github">agronholm/apscheduler</remote-id>
</upstream>
</pkgmetadata>
-3
View File
@@ -1,3 +0,0 @@
DIST tzlocal-1.4.tar.gz 15279 BLAKE2B 2d1814c2a4fd2ed5b4b345c94e1cad05c850ab02764fc76e33940aa5f2c4c593c376e9252ca9524a0fc5732b201c222e7d4c1374c2842de6686e277dd537468f SHA512 e846f00cb0571da0c891ca8576d614ebfed622431201c713ef38a80fc990fa19298873bad74e5020648ec4b8307ce8362412e0e05d260121e9d70691814a321b
EBUILD tzlocal-1.4.ebuild 601 BLAKE2B 63710804f086a91928f3f3bf495276694c20b353cf7802554e1cc2b594260a786dcdb3964ce66fc8a8d6c67bd40fb5eab009a74937c559409f35d08bc82f39e5 SHA512 15d132045786963f50eb7b380a9db764c3e573163aa76be48336b8ca648c2c7fb105fbc2b715dd957ae58bb932649c764210357e338bb046e48ddf74d3fbb3e8
MISC metadata.xml 377 BLAKE2B c85be3067a235a5d7546bcf7c3eb05857986a371bca6743e222e9016ab6d6d5a212f3f65d7e9db523ef9ddb8091b62c1cfbd2d5c5d6d8560fcf881aaa3ffad80 SHA512 3ada56c5037a2a59fb53408483f03bc3ae72c9d7f676dd046125b035b34d4195e653662b67529453d63556dedda4471a9c77daaa1137af1245e49174fef1fd87
-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">tzlocal</remote-id>
<remote-id type="github">regebro/tzlocal</remote-id>
</upstream>
</pkgmetadata>
-25
View File
@@ -1,25 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python{3_7,3_8,3_9})
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="tzinfo object for the local timezone"
HOMEPAGE="https://github.com/regebro/tzlocal"
SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz"
LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDPEND="dev-python/pytz[${PYTHON_USEDEP}]"
python_test() {
unset TZ
"${PYTHON}" -m unittest discover || die "Testing failed with ${EPYTHON}"
}