From a6c8d7a1cfd6463ec0ca182d28e315a55ef4634b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 4 May 2026 05:43:49 +0200 Subject: [PATCH] dev-python/poetry-core: Bump to 2.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/poetry-core/Manifest | 2 + .../poetry-core/poetry-core-2.4.0.ebuild | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 dev-python/poetry-core/poetry-core-2.4.0.ebuild diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest index a8973bf84219e..a3e5cc027fed5 100644 --- a/dev-python/poetry-core/Manifest +++ b/dev-python/poetry-core/Manifest @@ -1,2 +1,4 @@ DIST poetry_core-2.3.2.tar.gz 382768 BLAKE2B 5c43d9b21664e80c4073d9a35648a835300eff7cbda4a1c161c10e22009e5e0480c467a4832d3dda3914a1f96a947a9ee9e3951ed041bd1be9f94bca7845c3a6 SHA512 804eca3433659215dda7beb9dd3733881640437d6bf6ef41fe0661a442203c392d92dc81d71e7d22c151d9920ba6e35f088fcdb02e1dfd464bdf9e2ff24d5c7e DIST poetry_core-2.3.2.tar.gz.provenance 9892 BLAKE2B abeb5aabd1d9ad669489c65f431b6798830cc14beda1cd5ada44c14f2ef13981dd3814e8cbda1915429ad76c091cf04f0317fc851a761c27bf24c00ccb8477df SHA512 97877bb92d950dbdc0fd7bd118e95359238ce96b1dce715362ccf459882c4f2bc13af7703db1ba1b5425a0aa1b7c8955192b25cc17af929bcec3c307213040b7 +DIST poetry_core-2.4.0.tar.gz 413541 BLAKE2B 0f3ca81d311a8421759c1a99189b320f3a1506b9afb788454e1ac8e44d5467bb8b4d3fb00aec90cff8d896f0d704ab199a0d176a178c964072799934a54789ac SHA512 07452eb3d5c640891be58d7d882be327ddb38e4d59499ca2100c854640c174f666e1175e8bb739a31631b5df44b04be0354b7bc59878340cdda3a30f9f2c3dfa +DIST poetry_core-2.4.0.tar.gz.provenance 9571 BLAKE2B 5dd1a32af4cc5e537e44655b3b762f90d70ebdd6db4041b06614d8ebd136ad93cffd9dee70fb39c5d8e679312e959433db7f14a06c6dfe649d9a6184e93f4529 SHA512 c5e301d8bcb86c4cd57c16c1c27cbfe2b3bd8934a01c4defe50ea61f4ca01473f82ded0517a15ded77daf282c1ce650bce1b829800f41cea5d412baa2de8dd7d diff --git a/dev-python/poetry-core/poetry-core-2.4.0.ebuild b/dev-python/poetry-core/poetry-core-2.4.0.ebuild new file mode 100644 index 0000000000000..ea23a140aedd7 --- /dev/null +++ b/dev-python/poetry-core/poetry-core-2.4.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry-core +PYTHON_TESTED=( pypy3_11 python3_{11..14} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) + +inherit distutils-r1 pypi + +DESCRIPTION="Poetry PEP 517 Build Backend" +HOMEPAGE=" + https://github.com/python-poetry/poetry-core/ + https://pypi.org/project/poetry-core/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +# check inside vendors/pyproject.toml +# (note that some are indirect deps) +RDEPEND=" + >=dev-python/fastjsonschema-2.21.2[${PYTHON_USEDEP}] + >=dev-python/lark-1.3.1[${PYTHON_USEDEP}] + >=dev-python/packaging-26.2[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/build[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.21[${PYTHON_USEDEP}] + dev-vcs/git + ' "${PYTHON_TESTED[@]}") + ) +" + +src_prepare() { + # remove vendoring of dependencies + rm -r src/poetry/core/_vendor || die + sed -e '/__vendor_site__/d' -i src/poetry/core/__init__.py || die + + distutils-r1_src_prepare +} + +python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping tests on ${EPYTHON} (unported deps)" + return + fi + + # Poetry expects test to be run inside a git repository, otherwise + # VCS-related logic doesn't get triggered. An empty repository + # suffices, though. + git init || die + + local EPYTEST_PLUGINS=( pytest-mock ) + epytest +}