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/url-normalize/
Date: Thu, 27 Jan 2022 10:02:33
Message-Id: 1643277742.8b5a1cd17ae546b84dd835e8b449ead391482af9.mgorny@gentoo
1 commit: 8b5a1cd17ae546b84dd835e8b449ead391482af9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:53:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b5a1cd1
7
8 dev-python/url-normalize: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../url-normalize/url-normalize-1.4.3-r1.ebuild | 33 ++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/dev-python/url-normalize/url-normalize-1.4.3-r1.ebuild b/dev-python/url-normalize/url-normalize-1.4.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..8ede2a4e84e6
18 --- /dev/null
19 +++ b/dev-python/url-normalize/url-normalize-1.4.3-r1.ebuild
20 @@ -0,0 +1,33 @@
21 +# Copyright 2021-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=poetry
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="URL normalization for Python"
31 +HOMEPAGE="
32 + https://github.com/niksite/url-normalize/
33 + https://pypi.org/project/url-normalize/"
34 +SRC_URI="
35 + https://github.com/niksite/url-normalize/archive/${PV}.tar.gz
36 + -> ${P}.gh.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
43 +
44 +distutils_enable_tests pytest
45 +
46 +src_prepare() {
47 + # remove problematic pytest options
48 + rm tox.ini || die
49 + sed -e '/requires/s:poetry:&-core:' \
50 + -e '/backend/s:poetry:&.core:' \
51 + -i pyproject.toml || die
52 + distutils-r1_src_prepare
53 +}