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/ordered-set/
Date: Wed, 26 Jan 2022 10:51:59
Message-Id: 1643194305.8b9f74bd3cc92d566cf4fbe74439fe4db72160a8.mgorny@gentoo
1 commit: 8b9f74bd3cc92d566cf4fbe74439fe4db72160a8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 26 10:24:35 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 26 10:51:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b9f74bd
7
8 dev-python/ordered-set: Use flit to ease bootstrap
9
10 Use flit to make it possible to easily bootstrap dev-python/setuptools
11 without having to vendor this package.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-python/ordered-set/ordered-set-4.0.2-r1.ebuild | 37 ++++++++++++++++++++++
16 1 file changed, 37 insertions(+)
17
18 diff --git a/dev-python/ordered-set/ordered-set-4.0.2-r1.ebuild b/dev-python/ordered-set/ordered-set-4.0.2-r1.ebuild
19 new file mode 100644
20 index 000000000000..0e3b25027632
21 --- /dev/null
22 +++ b/dev-python/ordered-set/ordered-set-4.0.2-r1.ebuild
23 @@ -0,0 +1,37 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
28 +EAPI=7
29 +
30 +DISTUTILS_USE_PEP517=flit
31 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
32 +inherit distutils-r1
33 +
34 +DESCRIPTION="A mutable set that remembers the order of its entries"
35 +HOMEPAGE="https://github.com/rspeer/ordered-set"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~riscv ~x86"
41 +
42 +distutils_enable_tests pytest
43 +
44 +src_configure() {
45 + [[ -e pyproject.toml ]] &&
46 + die "Upstream added pyproject.toml, recheck"
47 + # write a custom pyproject.toml to ease setuptools bootstrap
48 + cat > pyproject.toml <<-EOF || die
49 + [build-system]
50 + requires = ["flit_core >=3.2,<4"]
51 + build-backend = "flit_core.buildapi"
52 +
53 + [project]
54 + name = "ordered-set"
55 + dynamic = ["version", "description"]
56 +
57 + [tool.flit.module]
58 + name = "ordered_set"
59 + EOF
60 +}