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/watchdog/
Date: Mon, 02 Jan 2023 14:54:33
Message-Id: 1672671262.6e5ee50e841bf83918f21b20b90e932a0bb92465.mgorny@gentoo
1 commit: 6e5ee50e841bf83918f21b20b90e932a0bb92465
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 14:36:44 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 14:54:22 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e5ee50e
7
8 dev-python/watchdog: Bump to 2.2.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/watchdog/Manifest | 1 +
13 dev-python/watchdog/watchdog-2.2.1.ebuild | 52 +++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/watchdog/Manifest b/dev-python/watchdog/Manifest
17 index aa812ab1b350..12fb58911f27 100644
18 --- a/dev-python/watchdog/Manifest
19 +++ b/dev-python/watchdog/Manifest
20 @@ -1,2 +1,3 @@
21 DIST watchdog-2.1.9.gh.tar.gz 102882 BLAKE2B 601c94541846e0d63a39367040ac9b6a24c2920c70638ee3887a51838dd75bf8dfef8afae34c9566047c27502026d944f01c6f6249090f4a233a4892fc1e7c59 SHA512 1005c48b08968db7705acbb8a94a0852c72d8bcf45ac935e7e0b49daa6e422adb081cf431485618b37bcc1b2d3429369af1672b826bf9c1ebfa7aff91a88175a
22 DIST watchdog-2.2.0.gh.tar.gz 101317 BLAKE2B e597b780f26794bfe0462bcb67985d6e38324aac955f8655e657d800039d98473444ff13ea98fbfb6e8a5fd5473c0f3eeda2e542ef030539fc1acc3f86412354 SHA512 95c355da3a97f7eb0ddff02c1801eeafb075aead742d5505254fccef60afd8e5f1ea56760533bb87f520fa60f4f41e4f36c7f02247a170029bace728e83e2780
23 +DIST watchdog-2.2.1.gh.tar.gz 101485 BLAKE2B 4ec0a2c14d0dcb8d39ed4dea48c1318474768298b4eade4f7c08f811282ffdbf5871c7d55d71681863c38d1f0603c46aaadda73bf38a20ef263fa3b4cf76c354 SHA512 bbd6e3e3fdc7ee5df21b78241922c0050aeb0c01e394fa7d025465f04f3307d190af4cf6e822826975a3b095fb479dfd103be0675f12782e8899f556797baed4
24
25 diff --git a/dev-python/watchdog/watchdog-2.2.1.ebuild b/dev-python/watchdog/watchdog-2.2.1.ebuild
26 new file mode 100644
27 index 000000000000..5bc9bb951a92
28 --- /dev/null
29 +++ b/dev-python/watchdog/watchdog-2.2.1.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
38 +
39 +inherit distutils-r1 optfeature
40 +
41 +DESCRIPTION="Python API and shell utilities to monitor file system events"
42 +HOMEPAGE="
43 + https://github.com/gorakhargosh/watchdog/
44 + https://pypi.org/project/watchdog/
45 +"
46 +SRC_URI="
47 + https://github.com/gorakhargosh/${PN}/archive/v${PV}.tar.gz
48 + -> ${P}.gh.tar.gz
49 +"
50 +
51 +LICENSE="Apache-2.0"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
54 +
55 +RDEPEND="
56 + dev-python/pyyaml[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + test? (
60 + >=dev-python/pytest-timeout-0.3[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +src_prepare() {
67 + sed -i -e '/--cov/d' setup.cfg || die
68 + default
69 +}
70 +
71 +python_test() {
72 + local EPYTEST_DESELECT=(
73 + # requires root powers via sudo (yes, seriously)
74 + tests/test_inotify_buffer.py::test_unmount_watched_directory_filesystem
75 + )
76 +
77 + epytest -p no:django
78 +}
79 +
80 +pkg_postinst() {
81 + optfeature "Bash completion" dev-python/argcomplete
82 +}