mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
dev-python/poetry-core: Bump to 2.3.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST poetry_core-2.3.0.tar.gz 380922 BLAKE2B 597d1ac22679ced340b0efd78fb5cf7f125
|
||||
DIST poetry_core-2.3.0.tar.gz.provenance 9465 BLAKE2B 9053b932d721c5bdb20a2b2f015fa9430f538c94f1d4baeaa6c59a3d7c19d1f21d6eae7fae7a26e6f863716724725da5fa67870673eac9eaf41b4f71a61c71ce SHA512 19b05fcb2220defdf2f724978cde6e6cf1e538c9e44a385bd0de0568811fa192e9b34c701ea430bbfc824095d329d60e7b7159bd463e2244cd849fdd74ae2a75
|
||||
DIST poetry_core-2.3.1.tar.gz 381093 BLAKE2B f83eff637a980938304d971c4cd6060c0708be15cb1358627d2d27349024ce1b6e3b79b855e600056e6ad4618edb5afa783c175a0fbfe5ef246a1c5c29680b92 SHA512 65b4f606439d31056c75182d9d73d4b48c05fb40bc3aaa956728d9b73f006322567c957b7a6fe27359dcbfa10eb37da99bf10d7219de91c537284a21b5c1c3a3
|
||||
DIST poetry_core-2.3.1.tar.gz.provenance 9606 BLAKE2B 6ca145a74c90fc1029d5b8a35e0e40f6fc13f5bf4a8b4d5bbc1d365222699f3ab33d8bd86ed0782bbd51fe37509e8963ad6231a4f249defc1e99475e8bc681db SHA512 5f4f1b7e9eceff54725ea7888d5fbbeb6668721ffa0b9c1267e619f2e3223b514762d5c76924cca7a4e28ac577a35cd7ffa063c7638bd2b7c4a588a2a01978b4
|
||||
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
|
||||
|
||||
@@ -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-25.0[${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
|
||||
}
|
||||
Reference in New Issue
Block a user