dev-python/watchdog: Bump to 4.0.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-02-07 08:51:35 +01:00
parent a47bca8e5a
commit d1618d2813
2 changed files with 51 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST watchdog-3.0.0.tar.gz 124593 BLAKE2B bc8135dcbe9b1000fb7befc85ebf62518222b0470676cf94aabbe8f871bb05064a46ae4d11ce34f8030d35268c073fe82757b911e3983a8b683ffbd09227395c SHA512 fa1421b01af99d7fa676c9077b2330ead17c004d9bb9e9edd78d4bbf87cf41624ecd669ca48613d99be2109373bbab4e004b69665d2ca42e082573e4740c13d0
DIST watchdog-4.0.0.tar.gz 126415 BLAKE2B 59cba81d705031b89b6cd0a92959cd714ec701c4b986446fb7946898b9df1389734bc7eb7521d5af2df5a1a5e31b2f1dc436ca603b8f70313e99ad2abf0e9922 SHA512 ba1beafe292b52b4628eb570b05d816faffe09acd3b63bc50d986cf04f3c7b4fa9c1ebe5c99a10c0723b5604cfdcbd0c09a17507196a32b8fddeeb46faccf4dd

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 optfeature pypi
DESCRIPTION="Python API and shell utilities to monitor file system events"
HOMEPAGE="
https://github.com/gorakhargosh/watchdog/
https://pypi.org/project/watchdog/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
dev-python/pyyaml[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
>=dev-python/pytest-timeout-0.3[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
sed -e '/--cov/d' -i setup.cfg || die
default
}
python_test() {
local EPYTEST_DESELECT=(
# known flaky
tests/test_emitter.py::test_close
# requires root powers via sudo (yes, seriously)
tests/test_inotify_buffer.py::test_unmount_watched_directory_filesystem
)
epytest -p no:django
}
pkg_postinst() {
optfeature "Bash completion" dev-python/argcomplete
}