Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 6/7] dev-python/installer: Use DISTUTILS_USE_PEP517=no
Date: Tue, 07 Jun 2022 20:10:56
Message-Id: 20220607200840.4112-7-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/7] distutils-r1.eclass: DISTUTILS_USE_PEP517=no, take two by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 .../installer/installer-0.5.1-r1.ebuild | 37 +++++++++++++++++++
4 1 file changed, 37 insertions(+)
5 create mode 100644 dev-python/installer/installer-0.5.1-r1.ebuild
6
7 diff --git a/dev-python/installer/installer-0.5.1-r1.ebuild b/dev-python/installer/installer-0.5.1-r1.ebuild
8 new file mode 100644
9 index 000000000000..4f89e7433018
10 --- /dev/null
11 +++ b/dev-python/installer/installer-0.5.1-r1.ebuild
12 @@ -0,0 +1,37 @@
13 +# Copyright 2022 Gentoo Authors
14 +# Distributed under the terms of the GNU General Public License v2
15 +
16 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
17 +EAPI=7
18 +
19 +DISTUTILS_USE_PEP517=no
20 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
21 +
22 +inherit distutils-r1
23 +
24 +DESCRIPTION="A library for installing Python wheels"
25 +HOMEPAGE="
26 + https://pypi.org/project/installer/
27 + https://github.com/pypa/installer/
28 + https://installer.readthedocs.io/en/latest/
29 +"
30 +SRC_URI="
31 + https://github.com/pypa/installer/archive/${PV}.tar.gz
32 + -> ${P}.gh.tar.gz
33 + https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P%_p*}-py3-none-any.whl
34 + -> ${P%_p*}-py3-none-any.whl.zip
35 +"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 +
41 +BDEPEND="
42 + app-arch/unzip
43 +"
44 +
45 +distutils_enable_tests pytest
46 +
47 +python_compile() {
48 + python_domodule src/installer "${WORKDIR}"/*.dist-info
49 +}
50 --
51 2.35.1