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 9422015800F for ; Thu, 5 Jan 2023 19:01:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B39F6E07DB; Thu, 5 Jan 2023 19:01:46 +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 7F51BE07DB for ; Thu, 5 Jan 2023 19:01:46 +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 58E6F340C35 for ; Thu, 5 Jan 2023 19:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99DC57FC for ; Thu, 5 Jan 2023 19:01:43 +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: <1672945295.fee5cbfa4344d7d7ac2a2bd05ccdbfc25f71ac3f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nox/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/nox/Manifest dev-python/nox/metadata.xml dev-python/nox/nox-2022.11.21.ebuild X-VCS-Directories: dev-python/nox/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fee5cbfa4344d7d7ac2a2bd05ccdbfc25f71ac3f X-VCS-Branch: master Date: Thu, 5 Jan 2023 19:01:43 +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: d3f36141-3fd8-411b-a577-ce210e5dc110 X-Archives-Hash: ad5b0bf8a86da33831c1899fb52e7eb3 commit: fee5cbfa4344d7d7ac2a2bd05ccdbfc25f71ac3f Author: Michał Górny gentoo org> AuthorDate: Thu Jan 5 18:57:05 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jan 5 19:01:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fee5cbfa dev-python/nox: New package, v2022.11.21 dev-python/nox is another test automation runner, like dev-python/tox. However, instead of declarative configs it uses Python scripts. Add it since some projects supply only noxfiles and setting up venv to run their test suites is cumbersome. Signed-off-by: Michał Górny gentoo.org> dev-python/nox/Manifest | 1 + dev-python/nox/metadata.xml | 13 +++++++++++ dev-python/nox/nox-2022.11.21.ebuild | 42 ++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/dev-python/nox/Manifest b/dev-python/nox/Manifest new file mode 100644 index 000000000000..bd4764d4b225 --- /dev/null +++ b/dev-python/nox/Manifest @@ -0,0 +1 @@ +DIST nox-2022.11.21.gh.tar.gz 3983862 BLAKE2B 9c365dae5415de4c43c262a1ec9c9007b686838f8aff92a049b1602efe320b7644677646ee72c0e5754efc79d6e38cd46b59ff2851b39b4bf05d3166625000d4 SHA512 7f725425acd7d1ef55e04c5330c1f4fd2f2f5107c24b4bb7f7e2711cf6a5c1b8f2777a4902ee31d4a56898a953f3da6a9ed340d652fbc63cba33f5f763702b78 diff --git a/dev-python/nox/metadata.xml b/dev-python/nox/metadata.xml new file mode 100644 index 000000000000..ab6d02e2c276 --- /dev/null +++ b/dev-python/nox/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + wntrblm/nox + nox + + diff --git a/dev-python/nox/nox-2022.11.21.ebuild b/dev-python/nox/nox-2022.11.21.ebuild new file mode 100644 index 000000000000..1047e05af66b --- /dev/null +++ b/dev-python/nox/nox-2022.11.21.ebuild @@ -0,0 +1,42 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Flexible test automation for Python" +HOMEPAGE=" + https://github.com/wntrblm/nox/ + https://pypi.org/project/nox/ +" +SRC_URI=" + https://github.com/wntrblm/nox/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + =dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}] + =dev-python/colorlog-2.6.1[${PYTHON_USEDEP}] + >=dev-python/packaging-20.9[${PYTHON_USEDEP}] + >=dev-python/virtualenv-14[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # broken with >=dev-python/tox-4 + # https://github.com/wntrblm/nox/issues/673 + rm nox/tox_to_nox.* tests/test_tox_to_nox.py || die + sed -i -e '/tox-to-nox/d' pyproject.toml || die + distutils-r1_src_prepare +}