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/webob/
Date: Tue, 17 May 2022 07:03:11
Message-Id: 1652770983.a24df88bcb9e88cf4631a44b43d6924cf01b0381.mgorny@gentoo
1 commit: a24df88bcb9e88cf4631a44b43d6924cf01b0381
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 06:55:53 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 07:03:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a24df88b
7
8 dev-python/webob: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/webob/webob-1.8.7-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-python/webob/webob-1.8.7-r1.ebuild b/dev-python/webob/webob-1.8.7-r1.ebuild
16 new file mode 100644
17 index 000000000000..88698405f304
18 --- /dev/null
19 +++ b/dev-python/webob/webob-1.8.7-r1.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=( pypy3 python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_PN=WebOb
32 +MY_P=${MY_PN}-${PV}
33 +
34 +DESCRIPTION="WSGI request and response object"
35 +HOMEPAGE="
36 + https://webob.org/
37 + https://github.com/Pylons/webob/
38 + https://pypi.org/project/WebOb/
39 +"
40 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
41 +S="${WORKDIR}/${MY_P}"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
46 +
47 +distutils_enable_sphinx docs 'dev-python/alabaster'
48 +distutils_enable_tests pytest
49 +
50 +src_prepare() {
51 + # py3.9
52 + sed -i -e 's:isAlive:is_alive:' tests/conftest.py || die
53 + distutils-r1_src_prepare
54 +}