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/installer/
Date: Thu, 13 Jan 2022 21:01:16
Message-Id: 1642107664.a32410ac8b140c1cd8f2d5ea1a8adfec6f0ec193.mgorny@gentoo
1 commit: a32410ac8b140c1cd8f2d5ea1a8adfec6f0ec193
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 21:00:52 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 13 21:01:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a32410ac
7
8 dev-python/installer: New package, v0.4.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/installer/Manifest | 2 ++
13 dev-python/installer/installer-0.4.0.ebuild | 43 +++++++++++++++++++++++++++++
14 dev-python/installer/metadata.xml | 13 +++++++++
15 3 files changed, 58 insertions(+)
16
17 diff --git a/dev-python/installer/Manifest b/dev-python/installer/Manifest
18 new file mode 100644
19 index 000000000000..2d38fa076c4d
20 --- /dev/null
21 +++ b/dev-python/installer/Manifest
22 @@ -0,0 +1,2 @@
23 +DIST installer-0.4.0-py2.py3-none-any.whl.zip 451433 BLAKE2B 933b7e63b3d0306213789d493d4df112df26b432d63ecd1f8f21449520c34bd2ad542aac25069043fbb535c44f988dca927625eafd0a5a20489fc3ce2bcf84a2 SHA512 cf303bb422e329a36007b361034144a232ba021d4013bb8678dc7c326544e74ec9a3b3fe8b9d3696433dbbe90d2ce4a0ae8967fb054bd5ed49321d470be729a8
24 +DIST installer-0.4.0.gh.tar.gz 466643 BLAKE2B 635854b3461995cda3b7afa507ca3fe35cae8210e79de0bbd46938c8f103d7840ceca8bb388c2c9533efc78150691f980c478485ee33bafe0bae6c08a6aef8c4 SHA512 13537c479bc8ead8f8b45c8e5c5182e8b1b32c2889df8015be7f517f390a9efbea6fa167e0886dfade6621a8a2d822bfd662ee0238d3d86689619ca4d5483b26
25
26 diff --git a/dev-python/installer/installer-0.4.0.ebuild b/dev-python/installer/installer-0.4.0.ebuild
27 new file mode 100644
28 index 000000000000..366c9ebc1817
29 --- /dev/null
30 +++ b/dev-python/installer/installer-0.4.0.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_SETUPTOOLS=manual
38 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A library for installing Python wheels"
42 +HOMEPAGE="
43 + https://pypi.org/project/installer/
44 + https://github.com/pradyunsg/installer/
45 + https://installer.readthedocs.io/en/latest/
46 +"
47 +SRC_URI="
48 + https://github.com/pradyunsg/installer/archive/${PV}.tar.gz
49 + -> ${P}.gh.tar.gz
50 + https://files.pythonhosted.org/packages/py2.py3/${PN::1}/${PN}/${P}-py2.py3-none-any.whl
51 + -> ${P}-py2.py3-none-any.whl.zip
52 +"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS="~amd64"
57 +
58 +BDEPEND="
59 + app-arch/unzip
60 +"
61 +
62 +distutils_enable_tests pytest
63 +
64 +# do not use any build system to avoid circular deps
65 +python_compile() { :; }
66 +
67 +python_test() {
68 + local -x PYTHONPATH=src
69 + epytest
70 +}
71 +
72 +python_install() {
73 + python_domodule src/installer "${WORKDIR}"/*.dist-info
74 +}
75
76 diff --git a/dev-python/installer/metadata.xml b/dev-python/installer/metadata.xml
77 new file mode 100644
78 index 000000000000..090fe7139f47
79 --- /dev/null
80 +++ b/dev-python/installer/metadata.xml
81 @@ -0,0 +1,13 @@
82 +<?xml version="1.0" encoding="UTF-8"?>
83 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
84 +<pkgmetadata>
85 + <maintainer type="project">
86 + <email>python@g.o</email>
87 + <name>Python</name>
88 + </maintainer>
89 + <stabilize-allarches/>
90 + <upstream>
91 + <remote-id type="pypi">installer</remote-id>
92 + <remote-id type="github">pradyunsg/installer</remote-id>
93 + </upstream>
94 +</pkgmetadata>