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/build/
Date: Tue, 10 May 2022 18:06:28
Message-Id: 1652205976.96715e7055997890b25b306466007b27a617158d.mgorny@gentoo
1 commit: 96715e7055997890b25b306466007b27a617158d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 17:59:51 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 18:06:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96715e70
7
8 dev-python/build: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/build/build-0.7.0-r1.ebuild | 61 ++++++++++++++++++++++++++++++++++
13 1 file changed, 61 insertions(+)
14
15 diff --git a/dev-python/build/build-0.7.0-r1.ebuild b/dev-python/build/build-0.7.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..1e9284e7e37e
18 --- /dev/null
19 +++ b/dev-python/build/build-0.7.0-r1.ebuild
20 @@ -0,0 +1,61 @@
21 +# Copyright 2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1 multiprocessing
30 +
31 +DESCRIPTION="A simple, correct PEP517 package builder"
32 +HOMEPAGE="
33 + https://pypi.org/project/build/
34 + https://github.com/pypa/build/
35 +"
36 +SRC_URI="
37 + https://github.com/pypa/build/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
38 +"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
43 +
44 +RDEPEND="
45 + >=dev-python/packaging-19.0[${PYTHON_USEDEP}]
46 + >=dev-python/pep517-0.9.1[${PYTHON_USEDEP}]
47 + >=dev-python/tomli-1.0.0[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + test? (
51 + >=dev-python/filelock-3[${PYTHON_USEDEP}]
52 + >=dev-python/pytest-mock-2[${PYTHON_USEDEP}]
53 + >=dev-python/pytest-rerunfailures-9.1[${PYTHON_USEDEP}]
54 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
55 + >=dev-python/setuptools-56.0.0[${PYTHON_USEDEP}]
56 + >=dev-python/wheel-0.36.0[${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +distutils_enable_tests pytest
61 +
62 +python_test() {
63 + local EPYTEST_DESELECT=(
64 + # broken by the presence of flit_core
65 + tests/test_util.py::test_wheel_metadata_isolation
66 + # broken by the presence of virtualenv (it changes the error
67 + # messages, sic!)
68 + tests/test_env.py::test_isolated_env_log
69 + tests/test_main.py::test_output_env_subprocess_error
70 + 'tests/test_main.py::test_output[via-sdist-isolation]'
71 + 'tests/test_main.py::test_output[wheel-direct-isolation]'
72 + # Internet
73 + tests/test_main.py::test_build_package
74 + tests/test_main.py::test_build_package_via_sdist
75 + 'tests/test_util.py::test_wheel_metadata[True]'
76 + tests/test_util.py::test_with_get_requires
77 + )
78 +
79 + epytest -p no:flaky \
80 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
81 +}