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 A3EAF158041 for ; Thu, 29 Feb 2024 19:16:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86FCAE2A1F; Thu, 29 Feb 2024 19:16:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 6859EE2A1F for ; Thu, 29 Feb 2024 19:16:02 +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 86D5C3430A6 for ; Thu, 29 Feb 2024 19:16:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C0E4F14BE for ; Thu, 29 Feb 2024 19:15:59 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1709234135.4dff98b40049347c8063fa0edb2ce86dcd21cbae.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/pybugz/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/pybugz/pybugz-9999.ebuild X-VCS-Directories: www-client/pybugz/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 4dff98b40049347c8063fa0edb2ce86dcd21cbae X-VCS-Branch: master Date: Thu, 29 Feb 2024 19:15:59 +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: 4d82412e-edba-4640-9360-62c43b340113 X-Archives-Hash: e2cc04f516b0537d37b7d1346d4d56cb commit: 4dff98b40049347c8063fa0edb2ce86dcd21cbae Author: Arthur Zamarin gentoo org> AuthorDate: Thu Feb 29 19:14:06 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Feb 29 19:15:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dff98b4 www-client/pybugz: (live) flit, add test, enable py3.12 Thanks to moving to flit upstream, the install is much simpler. Add a basic test for verifying the tools works (needs network). Enable py3.12 Signed-off-by: Arthur Zamarin gentoo.org> www-client/pybugz/pybugz-9999.ebuild | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/www-client/pybugz/pybugz-9999.ebuild b/www-client/pybugz/pybugz-9999.ebuild index 17680b4e1e24..95086a2d7f65 100644 --- a/www-client/pybugz/pybugz-9999.ebuild +++ b/www-client/pybugz/pybugz-9999.ebuild @@ -3,11 +3,11 @@ EAPI=8 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..12} ) PYTHON_REQ_USE="readline(+),ssl(+)" -if [ "${PV}" = "9999" ]; then +if [[ ${PV} = "9999" ]]; then EGIT_REPO_URI="https://github.com/williamh/pybugz.git" inherit git-r3 else @@ -15,18 +15,18 @@ else KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" fi -inherit bash-completion-r1 distutils-r1 +inherit distutils-r1 DESCRIPTION="Command line interface to (Gentoo) Bugzilla" HOMEPAGE="https://github.com/williamh/pybugz" LICENSE="GPL-2" SLOT="0" +RESTRICT="test" +PROPERTIES="test_network" -python_install_all() { - distutils-r1_python_install_all - newbashcomp contrib/bash-completion bugz - - insinto /usr/share/zsh/site-functions - newins contrib/zsh-completion _pybugz +python_test() { + # not the highest quality of test, but checks many parts of the code work. + # good enough for PYTHON_COMPAT checks. + "${EPYTHON}" lbugz get 784263 || die "Tests failed with ${EPYTHON}" }