Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pep517/
Date: Sat, 25 Apr 2020 00:50:43
Message-Id: 1587775825.d8b23f9379b7ac1f4a3a2403dd942490103adfaa.Alessandro-Barbieri@gentoo
1 commit: d8b23f9379b7ac1f4a3a2403dd942490103adfaa
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 25 00:50:25 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 00:50:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d8b23f93
7
8 dev-python/pep517: new package
9
10 doesn't install
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
14
15 dev-python/pep517/Manifest | 1 +
16 dev-python/pep517/metadata.xml | 18 +++++++++++++++++
17 dev-python/pep517/pep517-0.8.2.ebuild | 38 +++++++++++++++++++++++++++++++++++
18 3 files changed, 57 insertions(+)
19
20 diff --git a/dev-python/pep517/Manifest b/dev-python/pep517/Manifest
21 new file mode 100644
22 index 0000000..a21985f
23 --- /dev/null
24 +++ b/dev-python/pep517/Manifest
25 @@ -0,0 +1 @@
26 +DIST pep517-0.8.2.tar.gz 19057 BLAKE2B 44cecac9cb3542680d9f7f7e89d042313d9dcf00a49b94e589cde1918f62f3f527aec3f0c9afb039f280f072b46dbd78472ef197eec19fd7efd10b3573b7b2d5 SHA512 589af6465fe64ad04a8cf4af048df6a8e644423799b9ddd9f246fb314b5809c0415f7738a6c15280714a7454e53c7212c6a2f3f93d379204ee79b8832b53d307
27
28 diff --git a/dev-python/pep517/metadata.xml b/dev-python/pep517/metadata.xml
29 new file mode 100644
30 index 0000000..ae26236
31 --- /dev/null
32 +++ b/dev-python/pep517/metadata.xml
33 @@ -0,0 +1,18 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +
37 +<pkgmetadata>
38 + <longdescription lang="en">
39 +PEP 517 specifies a standard API for systems which build Python packages.
40 +
41 +This package contains wrappers around the hooks specified by PEP 517. It provides:
42 +
43 + A mechanism to call the hooks in a subprocess, so they are isolated from the current process.
44 + Fallbacks for the optional hooks, so that frontends can call the hooks without checking which are defined.
45 + Higher-level functions which install the build dependencies into a temporary environment and build a wheel/sdist using them.
46 + </longdescription>
47 + <upstream>
48 + <remote-id type="github">pypa/pep517</remote-id>
49 + <remote-id type="pypi">pep517</remote-id>
50 + </upstream>
51 +</pkgmetadata>
52
53 diff --git a/dev-python/pep517/pep517-0.8.2.ebuild b/dev-python/pep517/pep517-0.8.2.ebuild
54 new file mode 100644
55 index 0000000..d606c6d
56 --- /dev/null
57 +++ b/dev-python/pep517/pep517-0.8.2.ebuild
58 @@ -0,0 +1,38 @@
59 +# Copyright 1999-2020 Gentoo Authors
60 +# Distributed under the terms of the GNU General Public License v2
61 +
62 +EAPI="7"
63 +
64 +PYTHON_COMPAT=( python3_{6,7} )
65 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
66 +
67 +inherit distutils-r1
68 +
69 +DESCRIPTION="standard API for systems which build Python packages"
70 +HOMEPAGE="
71 + https://github.com/pypa/pep517
72 + https://pypi.org/project/pep517
73 +"
74 +SRC_URI="https://github.com/pypa/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
75 +
76 +LICENSE="MIT"
77 +SLOT="0"
78 +KEYWORDS="~amd64"
79 +IUSE="test"
80 +
81 +RDEPEND="
82 + >=dev-python/flit_core-2[${PYTHON_USEDEP}]
83 + <dev-python/flit_core-3[${PYTHON_USEDEP}]
84 + dev-python/toml[${PYTHON_USEDEP}]
85 +
86 + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_{6,7})
87 + $(python_gen_cond_dep 'dev-python/zipp[${PYTHON_USEDEP}]' python3_{6,7})
88 +"
89 +DEPEND="
90 + ${RDEPEND}
91 + test? (
92 + dev-python/mock[${PYTHON_USEDEP}]
93 + )
94 +"
95 +
96 +distutils_enable_tests pytest