diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-07-13 06:55:22 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-07-13 07:28:28 +0200 |
commit | 160cc0de6b499bf4c51cba4e94db70bbaa935e47 (patch) | |
tree | f0f0d8d52573bd8ed7f3790aa92538720e1a6b1e /dev-python | |
parent | dev-python/zipp: Bump to 3.16.1 (diff) | |
download | gentoo-160cc0de6b499bf4c51cba4e94db70bbaa935e47.tar.gz gentoo-160cc0de6b499bf4c51cba4e94db70bbaa935e47.tar.bz2 gentoo-160cc0de6b499bf4c51cba4e94db70bbaa935e47.zip |
dev-python/pdm-backend: Bump to 2.1.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pdm-backend/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pdm-backend/pdm-backend-2.1.4.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/pdm-backend/Manifest b/dev-python/pdm-backend/Manifest index d6d6c500e352..308fcfaf0367 100644 --- a/dev-python/pdm-backend/Manifest +++ b/dev-python/pdm-backend/Manifest @@ -2,3 +2,4 @@ DIST pdm-backend-2.1.0.gh.tar.gz 134050 BLAKE2B 941795a8e108442d8ab651cee2c87f72 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 DIST pdm-backend-2.1.3.gh.tar.gz 134133 BLAKE2B 5bead9ac6b5bf2da9479afc923875991ab7de556a15a14584d98bb7c3dcb34788d2f7284c588a29881898536b3a7e9238d75674f75291a0a1acf4c73483c0b5b SHA512 75b13af45636af34e91dcf6e10c0699433dc5fe65a7697dfa68a74af4802c7d4ced97ee4808763660f22556bc53a0bdb71fa04be4340050ec5baf75b3af6e97c +DIST pdm-backend-2.1.4.gh.tar.gz 134278 BLAKE2B 38e52761d54cab96727d5015e41de76cd6d7eb6dbd02829ed2ddeeb2e2d64d42a0eb6bb09e055362e1dd181d9e7781ed9f9abcb2f96de342cd5780e1f21a8708 SHA512 4833819f8828f5e2ff204ca18478704d8d66c977c747f9b550dc1ecfee57a8adbfcddaea6dded8d8ea0c0e0c7745e0704e12acae30d183cb27cf4c1fad331791 diff --git a/dev-python/pdm-backend/pdm-backend-2.1.4.ebuild b/dev-python/pdm-backend/pdm-backend-2.1.4.ebuild new file mode 100644 index 000000000000..af9e6d47c21b --- /dev/null +++ b/dev-python/pdm-backend/pdm-backend-2.1.4.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 +} |