summaryrefslogtreecommitdiff
path: root/dev-python/pdm-backend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
commit1fd1215c62ee14dc2e94fa04d6e3622391c9ab57 (patch)
tree909630a900b1ac6b180d8af2e2345a171417d59f /dev-python/pdm-backend
parentd60aa36cd97fb2193f756b45820d7c073a49229d (diff)
gentoo auto-resync : 21:09:2024 - 12:11:53
Diffstat (limited to 'dev-python/pdm-backend')
-rw-r--r--dev-python/pdm-backend/Manifest2
-rw-r--r--dev-python/pdm-backend/pdm-backend-2.4.0.ebuild75
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/pdm-backend/Manifest b/dev-python/pdm-backend/Manifest
index 534be1d8316e..2eac78599734 100644
--- a/dev-python/pdm-backend/Manifest
+++ b/dev-python/pdm-backend/Manifest
@@ -1,3 +1,5 @@
DIST pdm-backend-2.3.3.gh.tar.gz 136942 BLAKE2B 14f2584f22f1c4e08f687c77621269ae1e5acfe4babb1ab427c10d65ff07841b8175479f867870b9a5745db76444ca140a7da497a94c831ca6d0ea1e67b4e88f SHA512 382ad95e2811f1142fee66065f96ede1a646c3e2b9fbfafc6afb17442d3aeccfbf1ff6260952986a025791d3d56a2c4b730decb3cb65e893c25a710e16cbcfc8
+DIST pdm-backend-2.4.0.gh.tar.gz 138766 BLAKE2B 75295c6c72e34dd70d60a05949f4c0646cb5db45c2e9d952cd498395956dd3171bd293b0d5246dc782f5bb90ddfa7326fec75d4d4d8767de79e7c284cc1a9f08 SHA512 cd78cc2c9c8bd4964504aa495c9cd2ffa0d14da9e8e3aac6a3cc15045b0385e474214ae15c4ace57fd2ef87e0067a521355fd513610ef9aeadf276b2fe41d28d
EBUILD pdm-backend-2.3.3.ebuild 1760 BLAKE2B c25a0300ead2574eea77d2d414ca939a88b3a01d33a7e90ab45c726bb469beed6bf21549c4d26de722d97f54734f7e63d6ed060e735aedf2c1da97ac3ff1ecd5 SHA512 788ef181f68340d647dd22caff4c81e08a80bd8ce519214457ba81928a8c7b792fad1c63d879e4ff4b0492bcadf699d6c53f7b28175ff328dd3baec8eb231742
+EBUILD pdm-backend-2.4.0.ebuild 1768 BLAKE2B e5907e5c5b5ac3d73f19d22687171e60facd04edd401ceacb9047c80d9d0fa96f92180da1dbc6b6064c08795c94067432f575fc006f9ed0e63230ab8de0d8d58 SHA512 4f770025cd27cbf3c82bfe6e3e50c8a1b753d7757c0671798c8ee4119796252f65ebedce505a7090e53244f255a89770003966e5748930ce633aefd84662decc
MISC metadata.xml 402 BLAKE2B ac579efc6fd41e67d00ccbba4831c85eed6f5e4341b17533f60c95b666d8a457a5ed683440028c876b8d638fff59af97c5087612b7817dd1a9bd8b9f74cdda0a SHA512 77766986547445c26c7de4bd1d4fb495f8c22e1844fd5b4835b1cabc4aa503a36eae84460e4fceca2f71a87d5f4fc83593b33fda9ae8cafd75f74618d60476cd
diff --git a/dev-python/pdm-backend/pdm-backend-2.4.0.ebuild b/dev-python/pdm-backend/pdm-backend-2.4.0.ebuild
new file mode 100644
index 000000000000..178f44f54a53
--- /dev/null
+++ b/dev-python/pdm-backend/pdm-backend-2.4.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{10..13} 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="~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.8.0[${PYTHON_USEDEP}]
+ >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}]
+
+ $(python_gen_cond_dep '
+ >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+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
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -k "not [hg"
+}