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/yarl/
Date: Fri, 13 May 2022 16:11:12
Message-Id: 1652458263.96bef225e760a4aa97755811b9298929f2f540ea.mgorny@gentoo
1 commit: 96bef225e760a4aa97755811b9298929f2f540ea
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 16:07:00 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 16:11:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96bef225
7
8 dev-python/yarl: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/yarl/yarl-1.7.2-r2.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-python/yarl/yarl-1.7.2-r2.ebuild b/dev-python/yarl/yarl-1.7.2-r2.ebuild
16 new file mode 100644
17 index 000000000000..16df0c37c1eb
18 --- /dev/null
19 +++ b/dev-python/yarl/yarl-1.7.2-r2.ebuild
20 @@ -0,0 +1,34 @@
21 +# Copyright 1999-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
30 +
31 +DESCRIPTION="Yet another URL library"
32 +HOMEPAGE="
33 + https://github.com/aio-libs/yarl/
34 + https://pypi.org/project/yarl/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="Apache-2.0"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
41 +
42 +RDEPEND="
43 + >=dev-python/multidict-4.0[${PYTHON_USEDEP}]
44 + >=dev-python/idna-2.0[${PYTHON_USEDEP}]
45 +"
46 +
47 +distutils_enable_tests pytest
48 +distutils_enable_sphinx docs \
49 + dev-python/alabaster
50 +
51 +python_test() {
52 + cd tests || die
53 + epytest --override-ini=addopts=
54 +}