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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2281515802F for ; Sun, 12 Mar 2023 13:18:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42501E0798; Sun, 12 Mar 2023 13:18:44 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 2A85EE0798 for ; Sun, 12 Mar 2023 13:18:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 48880335D54 for ; Sun, 12 Mar 2023 13:18:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91F2C8D6 for ; Sun, 12 Mar 2023 13:18:41 +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: <1678627115.a86cb1b75a1a47b2d9b840be9f86202559b26531.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyscreenshot/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyscreenshot/Manifest dev-python/pyscreenshot/pyscreenshot-3.1.ebuild X-VCS-Directories: dev-python/pyscreenshot/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a86cb1b75a1a47b2d9b840be9f86202559b26531 X-VCS-Branch: master Date: Sun, 12 Mar 2023 13:18:41 +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: 060d1a5e-25da-4c92-bcdc-73b681ee2532 X-Archives-Hash: 2bf20d5801ee68e39b9be60d08bac5e4 commit: a86cb1b75a1a47b2d9b840be9f86202559b26531 Author: Michał Górny gentoo org> AuthorDate: Sun Mar 12 13:14:40 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Mar 12 13:18:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86cb1b7 dev-python/pyscreenshot: Bump to 3.1 Signed-off-by: Michał Górny gentoo.org> dev-python/pyscreenshot/Manifest | 1 + dev-python/pyscreenshot/pyscreenshot-3.1.ebuild | 58 +++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-python/pyscreenshot/Manifest b/dev-python/pyscreenshot/Manifest index bb0442ae459b..4d03f8566f03 100644 --- a/dev-python/pyscreenshot/Manifest +++ b/dev-python/pyscreenshot/Manifest @@ -1 +1,2 @@ DIST pyscreenshot-3.0.tar.gz 32865 BLAKE2B b39d338be4f1dc23fc30fe84a6f8ee6b6346761b023222438e8ff33e01beafc347d34118332efb053057c54383f5468e73049041889a6140a70c0f928c655661 SHA512 f8070941ade2bc710157238f47c9575df1504ef63152980b2bc0edd1f69c9ca4aeec3f738929de1c81a51fed79838053674626981ec61d95dafa7b9998004606 +DIST pyscreenshot-3.1.gh.tar.gz 36860 BLAKE2B fff930ad784da3e800d7c85bba2ea03db8f91011083b437f31c0d62037df9fa8921f9572d2271c258bdafa5d4c0b9d3ff93a7b8ab53db2cc24373f971fb6dc54 SHA512 9cbb58ddf2248548fb8b3519b41646e6f00d635ddaac69cc20a41b57e8693466c2b93947d72cf3a0caa0ee20f9d42f70587079a919b1c1d156212d6f942285ee diff --git a/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild b/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild new file mode 100644 index 000000000000..47b82756e769 --- /dev/null +++ b/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 virtualx + +DESCRIPTION="Python screenshot library" +HOMEPAGE=" + https://github.com/ponty/pyscreenshot/ + https://pypi.org/project/pyscreenshot/ +" +SRC_URI=" + https://github.com/ponty/pyscreenshot/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/easyprocess[${PYTHON_USEDEP}] + dev-python/entrypoint2[${PYTHON_USEDEP}] + dev-python/jeepney[${PYTHON_USEDEP}] + dev-python/mss[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/python-xlib[${PYTHON_USEDEP}] + dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] + media-gfx/imagemagick + media-gfx/pqiv + x11-apps/xdpyinfo + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + tests/test_check.py::test_speedtest + ) + + # skip GNOME/KDE tests that require D-BUS + local -x XDG_CURRENT_DESKTOP=none + # nonfatal is already implied by virtx, make it explicit though + nonfatal epytest || die "Tests failed with ${EPYTHON}" +}