From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7BC4A15808E for ; Thu, 28 Apr 2022 13:30:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A9EBE081B; Thu, 28 Apr 2022 13:30:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B36AE081B for ; Thu, 28 Apr 2022 13:30:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E37283410E8 for ; Thu, 28 Apr 2022 13:30:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 337D342F for ; Thu, 28 Apr 2022 13:30:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1651152599.6af6e8a8858411f8e2a51f3b9c0fd0223b467d92.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/watchgod/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/watchgod/Manifest dev-python/watchgod/watchgod-0.8.2.ebuild X-VCS-Directories: dev-python/watchgod/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6af6e8a8858411f8e2a51f3b9c0fd0223b467d92 X-VCS-Branch: master Date: Thu, 28 Apr 2022 13:30:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26043020-5504-42c0-bc89-203c09c60ceb X-Archives-Hash: f142a2885e5d8b6a31b1e295e10ec222 commit: 6af6e8a8858411f8e2a51f3b9c0fd0223b467d92 Author: Michał Górny gentoo org> AuthorDate: Thu Apr 28 13:09:31 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Apr 28 13:29:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af6e8a8 dev-python/watchgod: Bump to 0.8.2 Signed-off-by: Michał Górny gentoo.org> dev-python/watchgod/Manifest | 1 + dev-python/watchgod/watchgod-0.8.2.ebuild | 57 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-python/watchgod/Manifest b/dev-python/watchgod/Manifest index bc4b2f4231e7..ea262ed90e45 100644 --- a/dev-python/watchgod/Manifest +++ b/dev-python/watchgod/Manifest @@ -1 +1,2 @@ DIST watchfiles-0.8.1.gh.tar.gz 15405 BLAKE2B ea5d6d59b930f00d6b4b8d6236a38dbb2463866246f1ff4cda828a99a7383fac9c47b131417d8f375a105733c7567f32895759a8dc4503f5671b524977e282ed SHA512 2f611786d267ceae5d6e9094400f5dc6eb59a008f047a511b58b329762e63bbcd83a56cc95cca54c8480b1702c160548baa30549e907e6b85c8bf176ba339fb6 +DIST watchfiles-0.8.2.gh.tar.gz 15515 BLAKE2B 97c17737c6970c8b799707547cef760c307cd000d09cf3a338e47c0735d537e0321643066eab592f7f7e6ccc25272ea1e7e0bbc02f6274864f7cc39a177b83ba SHA512 a44b831352ace03c450781bc815b1813c44c386d666a9b724b562ff69228705651bfc23e81b7344d0f79c62577d4f910b323c734298e2a609f85bbc4a0f0498e diff --git a/dev-python/watchgod/watchgod-0.8.2.ebuild b/dev-python/watchgod/watchgod-0.8.2.ebuild new file mode 100644 index 000000000000..c40e10b7d38a --- /dev/null +++ b/dev-python/watchgod/watchgod-0.8.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..10} ) + +inherit distutils-r1 + +MY_P=watchfiles-${PV} +DESCRIPTION="Simple, modern file watching and code reload in Python" +HOMEPAGE=" + https://pypi.org/project/watchgod/ + https://github.com/samuelcolvin/watchfiles/ +" +SRC_URI=" + https://github.com/samuelcolvin/watchfiles/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + =dev-python/anyio-3*[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-toolbox[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # increase timeout + sed -e '/sleep/s/0.01/1.0/' -i tests/test_watch.py || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # flaky test on slow systems, https://github.com/samuelcolvin/watchgod/issues/84 + tests/test_watch.py::test_awatch_log + ) + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + tests/test_watch.py::test_does_not_exist + ) + epytest +}