From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1526386-garchives=archives.gentoo.org@lists.gentoo.org> 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 C0D6315810F for <garchives@archives.gentoo.org>; Thu, 8 Jun 2023 07:24:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08C78E083E; Thu, 8 Jun 2023 07:24:01 +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 DCB77E083E for <gentoo-commits@lists.gentoo.org>; Thu, 8 Jun 2023 07:24:00 +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 AD155340B9C for <gentoo-commits@lists.gentoo.org>; Thu, 8 Jun 2023 07:23:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2ECEA82 for <gentoo-commits@lists.gentoo.org>; Thu, 8 Jun 2023 07:23:57 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1686209017.4589fd28d41494e32b295563b7145b659bb57848.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-console-scripts/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-console-scripts/Manifest dev-python/pytest-console-scripts/pytest-console-scripts-1.4.1.ebuild X-VCS-Directories: dev-python/pytest-console-scripts/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4589fd28d41494e32b295563b7145b659bb57848 X-VCS-Branch: master Date: Thu, 8 Jun 2023 07:23:57 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 90e4378c-5798-4bde-9a1d-468d5ebbb20b X-Archives-Hash: 178037e0be70665ab95f5eeaf4ff2217 commit: 4589fd28d41494e32b295563b7145b659bb57848 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jun 8 07:00:30 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jun 8 07:23:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4589fd28 dev-python/pytest-console-scripts: Bump to 1.4.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pytest-console-scripts/Manifest | 1 + .../pytest-console-scripts-1.4.1.ebuild | 39 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/dev-python/pytest-console-scripts/Manifest b/dev-python/pytest-console-scripts/Manifest index c4475938be5f..d3fc1527215e 100644 --- a/dev-python/pytest-console-scripts/Manifest +++ b/dev-python/pytest-console-scripts/Manifest @@ -1,2 +1,3 @@ DIST pytest-console-scripts-1.3.1.tar.gz 14238 BLAKE2B 2c00af468d19500078f48ca38d20430ed426e66b2277b7ad233356969d2a72d51cf60e90a46ae7808e6d33172fa053cc34d45b1f618d866dd14e917e6b225935 SHA512 344e9379976d9a7541f9683f7646b47f7fc25d2ab8d941351811ada7fddd77497cc24f4bc6a6d5ab9388dd5b289ed125bcbfad869009fb3b80aaaa1b951d656d DIST pytest-console-scripts-1.4.0.tar.gz 19718 BLAKE2B 51508bdd60c3100bd74611ab640e6346207d2310d60099af5ce5d5d056cb379e250e49e5cd78c65f276c43797405471c1478896543b89e9415577acf5c6bc6bc SHA512 ccfc9032a05934fb12b5f29052f5335fc37c90f5bbbc2a31b0bd422c3a04a1cc23fbc23fb3537415905ac1dba9d6ea916e2ae0b659330189f0184a8e70f4eff1 +DIST pytest-console-scripts-1.4.1.tar.gz 20994 BLAKE2B b29ca597735e912b63abbc0dff29333bc5ab8e2882432dcec0ff92f5637b9a93e68359de8f1ad7885e6673d44d4c5515d832cff1a80aaa7f3eaeb875394418eb SHA512 b96def518a8c2930f092f68c1ba4a0ea55757c38cfa9dd39dd0ffdc54127bca3a2333c39159d7723ad1b412047244fde08753652e1945509b80dcbfa00dacfbb diff --git a/dev-python/pytest-console-scripts/pytest-console-scripts-1.4.1.ebuild b/dev-python/pytest-console-scripts/pytest-console-scripts-1.4.1.ebuild new file mode 100644 index 000000000000..df57f909515f --- /dev/null +++ b/dev-python/pytest-console-scripts/pytest-console-scripts-1.4.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pytest plugin for testing console scripts" +HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local script="${BUILD_DIR}/install${EPREFIX}/usr/bin/pytest" + cat > "${script}" <<-EOF + #!/usr/bin/env python + import pytest + import sys + sys.exit(pytest.console_main()) + EOF + chmod +x "${script}" || die + epytest + rm "${script}" || die +}