diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-06-27 04:48:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-06-27 05:54:38 +0200 |
commit | 5a3787f4224857c17e5c56cbec87a31842c8e41d (patch) | |
tree | 458e9b66421350c1cd5ee8a304f38e1667d9491d /dev-python/pdm-backend | |
parent | app-admin/awscli: Bump to 1.27.161 (diff) | |
download | gentoo-5a3787f4224857c17e5c56cbec87a31842c8e41d.tar.gz gentoo-5a3787f4224857c17e5c56cbec87a31842c8e41d.tar.bz2 gentoo-5a3787f4224857c17e5c56cbec87a31842c8e41d.zip |
dev-python/pdm-backend: Bump to 2.1.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pdm-backend')
-rw-r--r-- | dev-python/pdm-backend/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pdm-backend/pdm-backend-2.1.2.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/pdm-backend/Manifest b/dev-python/pdm-backend/Manifest index 02aa46e5a5df..69338a16a4bd 100644 --- a/dev-python/pdm-backend/Manifest +++ b/dev-python/pdm-backend/Manifest @@ -1,2 +1,3 @@ DIST pdm-backend-2.1.0.gh.tar.gz 134050 BLAKE2B 941795a8e108442d8ab651cee2c87f72d01c55e16634d9028f6e6300576ae7c67eaff90cbd6bcd4e24131ddabe92626583cbaf3af1807fd03490650d85653376 SHA512 999940464a467e5a8a6cb232cb8602846461cf7e146256be5f745743e47bfeab7b2b8157dc49ba7b03cff46051d080efe2097c450cfab037e0594ffa5fc3802b DIST pdm-backend-2.1.1.gh.tar.gz 134089 BLAKE2B a92d29b3d5f32e0bfbf407f354ba672922feb833ad2078857244a40fac7be210c5ba93810d6db7c0edd7fe874f7c9bcb9bd902dde5aa255c2b682855c9a00eed SHA512 710a574822beffad0ff3e812afa69a13878ada8ec10092d4c2f47c37345118dc972ea12fef7b26a835e9d76c774134dfad6fb77902c1755df072ef5acc7160a4 +DIST pdm-backend-2.1.2.gh.tar.gz 134069 BLAKE2B 425a43c7a7e47209caeec8fd44fde9734c9a79af5703fc668858f655b0783dbfaf934344a3e5f6b85fa59fe3122d2212890c1da615f331a5529e2619ee45c42f SHA512 a0d61ead5761d5c4558d486bed0249ec7fdcb9f48eac00ba87a97b8c32e28bf6ebe1d2ec840b049440864b68df997285c446922d6712226f4bd458f291567d00 diff --git a/dev-python/pdm-backend/pdm-backend-2.1.2.ebuild b/dev-python/pdm-backend/pdm-backend-2.1.2.ebuild new file mode 100644 index 000000000000..af9e6d47c21b --- /dev/null +++ b/dev-python/pdm-backend/pdm-backend-2.1.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +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="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/packaging-22.0[${PYTHON_USEDEP}] + >=dev-python/pyproject-metadata-0.7.1[${PYTHON_USEDEP}] + >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] + + $(python_gen_cond_dep ' + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + ' 3.{9..10}) + $(python_gen_cond_dep ' + >=dev-python/importlib-metadata-3.6[${PYTHON_USEDEP}] + ' 3.9) +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/setuptools[${PYTHON_USEDEP}] + dev-vcs/git + ) +" +# setuptools are used to build C extensions +RDEPEND+=" + dev-python/setuptools[${PYTHON_USEDEP}] +" + +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 +} |