blob: bf0f6daa63a128f1bfd58e7c14c071f5fdfd2c09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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_{9..11} pypy3 )
inherit distutils-r1
DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata"
HOMEPAGE="
https://pypi.org/project/pdm-pep517/
https://github.com/pdm-project/pdm-pep517/
"
SRC_URI="
https://github.com/pdm-project/pdm-pep517/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
RDEPEND="
>=dev-python/cerberus-1.3.4[${PYTHON_USEDEP}]
dev-python/license-expression[${PYTHON_USEDEP}]
>=dev-python/packaging-21.0[${PYTHON_USEDEP}]
>=dev-python/tomli-2[${PYTHON_USEDEP}]
dev-python/tomli-w[${PYTHON_USEDEP}]
"
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 pdm/pep517/_vendor || die
find -name '*.py' -exec sed \
-e 's:from pdm\.pep517\._vendor\.:from :' \
-e 's:from pdm\.pep517\._vendor ::' \
-i {} + || die
distutils-r1_src_prepare
}
src_test() {
git config --global user.email "test@example.com" || die
git config --global user.name "Test User" || die
distutils-r1_src_test
}
|