Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pdm-pep517/
Date: Mon, 30 Jan 2023 06:59:04
Message-Id: 1675061935.91f705d8513d66a69255bce6e588834c375ad1ee.mgorny@gentoo
1 commit: 91f705d8513d66a69255bce6e588834c375ad1ee
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 30 06:50:32 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 06:58:55 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f705d8
7
8 dev-python/pdm-pep517: Bump to 1.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pdm-pep517/Manifest | 1 +
13 dev-python/pdm-pep517/metadata.xml | 2 +-
14 dev-python/pdm-pep517/pdm-pep517-1.1.0.ebuild | 63 +++++++++++++++++++++++++++
15 3 files changed, 65 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/pdm-pep517/Manifest b/dev-python/pdm-pep517/Manifest
18 index e966bb484bf9..9f8c051dde70 100644
19 --- a/dev-python/pdm-pep517/Manifest
20 +++ b/dev-python/pdm-pep517/Manifest
21 @@ -1 +1,2 @@
22 DIST pdm-pep517-1.0.6.gh.tar.gz 315755 BLAKE2B 7b221d9ddc9683521e901177cafd2ffd2908af4acbe083b4a7d6525a81ece64d3768331135451d45ffc5c40c67c8c72802d75d52fdf85fa89a13f30110436a13 SHA512 5aeef3179d508d2acaedf4b99df41e64b26537120e586a01870651d2b379e2e5a1bf42934ee28a4b285cb83fe10ead073408b6b7d022ca1f55653533d12a2da1
23 +DIST pdm-pep517-1.1.0.gh.tar.gz 315971 BLAKE2B 679cdd14633a5d745be4dcb215986386464dbdcc91a69a7aaec4910cca7a6c1f65dab8e1a4710715873fae9b0fd07732e8df8a4859155864df330bfda7bfd120 SHA512 b12eeaf294556cdf79e4dc5bfd1d0dc57df64ed632ae678b00452f62b6d48eaf8b7f9437a8f7eec9ecc779d4da3155f3c4923fcdba814cbd1a4575e8f79cecd4
24
25 diff --git a/dev-python/pdm-pep517/metadata.xml b/dev-python/pdm-pep517/metadata.xml
26 index f00d2775021c..8de62c6cc043 100644
27 --- a/dev-python/pdm-pep517/metadata.xml
28 +++ b/dev-python/pdm-pep517/metadata.xml
29 @@ -8,6 +8,6 @@
30 <stabilize-allarches/>
31 <upstream>
32 <remote-id type="pypi">pdm-pep517</remote-id>
33 - <remote-id type="github">pdm-project/pdm-pep517</remote-id>
34 + <remote-id type="github">pdm-project/pdm-backend</remote-id>
35 </upstream>
36 </pkgmetadata>
37
38 diff --git a/dev-python/pdm-pep517/pdm-pep517-1.1.0.ebuild b/dev-python/pdm-pep517/pdm-pep517-1.1.0.ebuild
39 new file mode 100644
40 index 000000000000..438b25782acb
41 --- /dev/null
42 +++ b/dev-python/pdm-pep517/pdm-pep517-1.1.0.ebuild
43 @@ -0,0 +1,63 @@
44 +# Copyright 2022-2023 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=8
48 +
49 +DISTUTILS_USE_PEP517=standalone
50 +PYTHON_COMPAT=( python3_{9..11} pypy3 )
51 +
52 +inherit distutils-r1
53 +
54 +# upstream has renamed the repo but the legacy branch is still published
55 +# as pdm-pep517, sigh
56 +MY_P=pdm-backend-${PV}
57 +DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata"
58 +HOMEPAGE="
59 + https://pypi.org/project/pdm-pep517/
60 + https://github.com/pdm-project/pdm-backend/
61 +"
62 +SRC_URI="
63 + https://github.com/pdm-project/pdm-backend/archive/${PV}.tar.gz
64 + -> ${P}.gh.tar.gz
65 +"
66 +S=${WORKDIR}/${MY_P}
67 +
68 +LICENSE="MIT"
69 +SLOT="0"
70 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
71 +
72 +RDEPEND="
73 + >=dev-python/cerberus-1.3.4[${PYTHON_USEDEP}]
74 + dev-python/license-expression[${PYTHON_USEDEP}]
75 + =dev-python/packaging-21*[${PYTHON_USEDEP}]
76 + >=dev-python/tomli-2[${PYTHON_USEDEP}]
77 + dev-python/tomli-w[${PYTHON_USEDEP}]
78 +"
79 +BDEPEND="
80 + ${RDEPEND}
81 + test? (
82 + dev-python/setuptools[${PYTHON_USEDEP}]
83 + dev-vcs/git
84 + )
85 +"
86 +# setuptools are used to build C extensions
87 +RDEPEND+="
88 + dev-python/setuptools[${PYTHON_USEDEP}]
89 +"
90 +
91 +distutils_enable_tests pytest
92 +
93 +src_prepare() {
94 + rm -r pdm/pep517/_vendor || die
95 + find -name '*.py' -exec sed \
96 + -e 's:from pdm\.pep517\._vendor\.:from :' \
97 + -e 's:from pdm\.pep517\._vendor ::' \
98 + -i {} + || die
99 + distutils-r1_src_prepare
100 +}
101 +
102 +src_test() {
103 + git config --global user.email "test@×××××××.com" || die
104 + git config --global user.name "Test User" || die
105 + distutils-r1_src_test
106 +}