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 06FC915808B for ; Sat, 7 Sep 2024 06:23:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 100BFE2A2F; Sat, 7 Sep 2024 06:23:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8D53AE2A37 for ; Sat, 7 Sep 2024 06:23:18 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2F04340DC8 for ; Sat, 7 Sep 2024 06:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 060F61F32 for ; Sat, 7 Sep 2024 06:23:15 +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: <1725690183.19b695c28fdca66d60f97c653ff7b2acdea1b2a0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/build/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/build/Manifest dev-python/build/build-1.2.2.ebuild X-VCS-Directories: dev-python/build/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 19b695c28fdca66d60f97c653ff7b2acdea1b2a0 X-VCS-Branch: master Date: Sat, 7 Sep 2024 06:23:15 +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: dc0a4140-fe31-48dd-8ad0-c50a7912d7d9 X-Archives-Hash: 2637eb2a523379b480e3215b106a387b commit: 19b695c28fdca66d60f97c653ff7b2acdea1b2a0 Author: Michał Górny gentoo org> AuthorDate: Sat Sep 7 05:40:59 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Sep 7 06:23:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19b695c2 dev-python/build: Bump to 1.2.2 Signed-off-by: Michał Górny gentoo.org> dev-python/build/Manifest | 1 + dev-python/build/build-1.2.2.ebuild | 87 +++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/dev-python/build/Manifest b/dev-python/build/Manifest index a04380e8892d..5d4f391d9d20 100644 --- a/dev-python/build/Manifest +++ b/dev-python/build/Manifest @@ -1 +1,2 @@ DIST build-1.2.1.gh.tar.gz 47394 BLAKE2B d38a138dee5065ff0faee453bdc608fc519bc4b4a3cec8b60cf4f745288f8238dd7e9334f75bdd67765037a62b220079ce924c6581f745eb3750e732b2184d48 SHA512 77003e16d3776c3a4be920251bf14650eea112b92d94116cb1893195b8e16aae57321206ae63267119247f2794f220c891b7d913e07a8258b313d34c07d54fe9 +DIST build-1.2.2.gh.tar.gz 48587 BLAKE2B 308faba9fca554fc2ea347d20ee2f2a460060922c028d7ae37648290f4caa374616105d740ed285729204028d40bfb838b4de59ae20eaa8db1c0924f0d1cd8a8 SHA512 91e14208680915414a87bd3ba31229510a78d82d5504efc40cf7f9c6a7a698cfa4ff523f85c2dd6a56b5e313fae57134f64f2c328c88cd40efe40236b0b661cc diff --git a/dev-python/build/build-1.2.2.ebuild b/dev-python/build/build-1.2.2.ebuild new file mode 100644 index 000000000000..f248710de670 --- /dev/null +++ b/dev-python/build/build-1.2.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_TESTED=( python3_{10..13} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) + +inherit distutils-r1 + +DESCRIPTION="A simple, correct PEP517 package builder" +HOMEPAGE=" + https://pypi.org/project/build/ + https://github.com/pypa/build/ +" +SRC_URI=" + https://github.com/pypa/build/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test-rust" + +RDEPEND=" + >=dev-python/packaging-19.1[${PYTHON_USEDEP}] + dev-python/pyproject-hooks[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + >=dev-python/filelock-3[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-2[${PYTHON_USEDEP}] + >=dev-python/pytest-rerunfailures-9.1[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.34[${PYTHON_USEDEP}] + >=dev-python/setuptools-56.0.0[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}] + >=dev-python/wheel-0.36.0[${PYTHON_USEDEP}] + test-rust? ( + !s390? ( !sparc? ( dev-python/uv ) ) + ) + ' "${PYTHON_TESTED[@]}") + ) +" + +distutils_enable_tests pytest + +python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local EPYTEST_DESELECT=( + # broken by the presence of flit_core + tests/test_util.py::test_wheel_metadata_isolation + # broken by the presence of virtualenv (it changes the error + # messages, sic!) + 'tests/test_main.py::test_output[via-sdist-isolation]' + 'tests/test_main.py::test_output[wheel-direct-isolation]' + # broken when built in not normal tty on coloring + tests/test_main.py::test_colors + 'tests/test_main.py::test_output_env_subprocess_error[color]' + # Internet + 'tests/test_main.py::test_verbose_output[False-0]' + 'tests/test_main.py::test_verbose_output[False-1]' + # broken by uv being installed outside venv + tests/test_env.py::test_external_uv_detection_success + # broken by unbundled pip (TODO: fix pip eventually) + 'tests/test_projectbuilder.py::test_build_with_dep_on_console_script[False]' + ) + + if ! has_version "dev-python/uv"; then + EPYTEST_DESELECT+=( + tests/test_env.py::test_uv_impl_install_cmd_well_formed + 'tests/test_env.py::test_venv_creation[uv-venv+uv-None]' + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_XDIST=1 + epytest -m "not network" -p pytest_mock -p rerunfailures +}