dev-python/pdm-backend: Bump to 2.4.8

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-02 06:56:53 +02:00
parent 700b080e57
commit d0b83e888b
2 changed files with 72 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST pdm-backend-2.4.6.gh.tar.gz 162757 BLAKE2B 2e2de500fa61f059d350388c73b9585c582f1bf4b6a45a2215e97a8c130873d2ffad3113fdf0db7ea16eb49066e09539d7db7cf3a55be4098180837c51efa8d0 SHA512 132bfe38fe7a70e99f5d6dc92963068d057ed08b811324f379eb0e3feb7108cf52c930e5aa67ce8ae6ff21201f33a8b6c74dcd3afbd1d6e711569cb26ffc7248
DIST pdm-backend-2.4.7.gh.tar.gz 162824 BLAKE2B 113e69b1ec8a667331ad17779cea5b32ce04f8d72a4e17a8ff857d45ac64d962e767aaaf50d402fcc57fb274b9b28db1838016638cf39c4ec2165ac88ee8b3e9 SHA512 2582487b825fbeadd673c430cb22fbd1b79b0e080a3aac45aaa716cad56d606f5a96d74faf7e68e6f028a1c2ef11c69d7713de6d3ae7947a9f99e0a30828e4a2
DIST pdm-backend-2.4.8.gh.tar.gz 159228 BLAKE2B ddba89eab214262813cbe003f2793a5cd8edf03cf0650b7b4a625d2b6e54233cb63bd06e5f8ed4a47ca061e68d796d509555d53657fbb64b34ceaf2d48cf047c SHA512 ba5ff3926b3dfaa194b9faa2bb3727343aa36f28a60d5a33dc39d822900c0c650a39c34338c95f4c8ffaf1736aac24a215812ff5ea2c58e3e68cf2d431826c79

View File

@@ -0,0 +1,71 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1
DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata"
HOMEPAGE="
https://pypi.org/project/pdm-backend/
https://github.com/pdm-project/pdm-backend/
"
SRC_URI="
https://github.com/pdm-project/pdm-backend/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
# see src/pdm/backend/_vendor/vendor.txt
RDEPEND="
>=dev-python/editables-0.5[${PYTHON_USEDEP}]
>=dev-python/packaging-24.0[${PYTHON_USEDEP}]
>=dev-python/pyproject-metadata-0.9.0_beta7[${PYTHON_USEDEP}]
>=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
test? (
dev-python/setuptools[${PYTHON_USEDEP}]
dev-vcs/git
)
"
# setuptools are used to build C extensions
RDEPEND+="
dev-python/setuptools[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
rm -r src/pdm/backend/_vendor || die
find -name '*.py' -exec sed \
-e 's:from pdm\.backend\._vendor\.:from :' \
-e 's:from pdm\.backend\._vendor ::' \
-e 's:import pdm\.backend\._vendor\.:import :' \
-i {} + || die
distutils-r1_src_prepare
}
src_compile() {
# this must not be set during src_test()
local -x PDM_BUILD_SCM_VERSION=${PV}
distutils-r1_src_compile
}
src_test() {
git config --global user.email "test@example.com" || die
git config --global user.name "Test User" || die
distutils-r1_src_test
}
python_test() {
epytest -k "not [hg"
}