Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pdm-pep517/
Date: Sat, 25 Jun 2022 17:01:39
Message-Id: 1656176486.f50a3a39c8ea76bf61ca9321d148218fde8f1412.arthurzam@gentoo
1 commit: f50a3a39c8ea76bf61ca9321d148218fde8f1412
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 16:46:09 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 17:01:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f50a3a39
7
8 dev-python/pdm-pep517: add 1.0.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pdm-pep517/Manifest | 1 +
13 dev-python/pdm-pep517/pdm-pep517-1.0.0.ebuild | 58 +++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/pdm-pep517/Manifest b/dev-python/pdm-pep517/Manifest
17 index 1afd248261f0..d21727cd3ee0 100644
18 --- a/dev-python/pdm-pep517/Manifest
19 +++ b/dev-python/pdm-pep517/Manifest
20 @@ -1 +1,2 @@
21 DIST pdm-pep517-0.12.7.gh.tar.gz 304959 BLAKE2B 0571a77803b999f88f38da843c5fcf126eeb538c6812c3e245be2fc14d6cd19929559985efba2d245bbf0efb00e412b2133fca6bbe9e63317e6b7311867e0072 SHA512 45da8ab31071a57062fac5b89abe7d912d787d647eda1b45fe3941c43687fe0fe5c8d11e539290035375e17eef808489000513e3128708fcefd851e792757b8f
22 +DIST pdm-pep517-1.0.0.gh.tar.gz 307117 BLAKE2B 6af1cbeb10bfcf040aaaaf60535d660c00ad84f0a186b508112e224df7eed417ce97ec1bdbf2764549172ecbededf4e9b17b6ae915b71599f04d09f2103c0a7c SHA512 cb8c02af8c4f00cf68e6379c2e93aa0ab7d30f4405debb62f7c46afc10596ab440128f1a7444fe6989d5eafb462bbbe0cfc83325bc1aba92268498a3d96332e8
23
24 diff --git a/dev-python/pdm-pep517/pdm-pep517-1.0.0.ebuild b/dev-python/pdm-pep517/pdm-pep517-1.0.0.ebuild
25 new file mode 100644
26 index 000000000000..65915f36678c
27 --- /dev/null
28 +++ b/dev-python/pdm-pep517/pdm-pep517-1.0.0.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=standalone
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata"
41 +HOMEPAGE="
42 + https://pypi.org/project/pdm-pep517/
43 + https://github.com/pdm-project/pdm-pep517/
44 +"
45 +SRC_URI="
46 + https://github.com/pdm-project/pdm-pep517/archive/${PV}.tar.gz
47 + -> ${P}.gh.tar.gz
48 +"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm64 ~x86"
53 +
54 +RDEPEND="
55 + >=dev-python/cerberus-1.3.4[${PYTHON_USEDEP}]
56 + dev-python/license-expression[${PYTHON_USEDEP}]
57 + >=dev-python/packaging-21.0[${PYTHON_USEDEP}]
58 + >=dev-python/tomli-2[${PYTHON_USEDEP}]
59 + dev-python/tomli-w[${PYTHON_USEDEP}]
60 +"
61 +BDEPEND="
62 + ${RDEPEND}
63 + test? (
64 + dev-vcs/git
65 + )
66 +"
67 +# setuptools are used to build C extensions
68 +RDEPEND+="
69 + dev-python/setuptools[${PYTHON_USEDEP}]
70 +"
71 +
72 +distutils_enable_tests pytest
73 +
74 +src_prepare() {
75 + rm -r pdm/pep517/_vendor || die
76 + find -name '*.py' -exec sed \
77 + -e 's:from pdm\.pep517\._vendor\.:from :' \
78 + -e 's:from pdm\.pep517\._vendor ::' \
79 + -i {} + || die
80 + distutils-r1_src_prepare
81 +}
82 +
83 +src_test() {
84 + git config --global user.email "test@×××××××.com" || die
85 + git config --global user.name "Test User" || die
86 + distutils-r1_src_test
87 +}