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/tomli/
Date: Thu, 04 Nov 2021 09:25:33
Message-Id: 1636017925.64a11922bd011119371ae12d288df277da722a64.mgorny@gentoo
1 commit: 64a11922bd011119371ae12d288df277da722a64
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 4 09:23:18 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 09:25:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a11922
7
8 dev-python/tomli: Install manually to avoid circular deps
9
10 Now that setuptools requires tomli as well, it is no longer possible
11 to cleanly bootstrap it. We could use plain distutils for the time
12 being but with its deprecation, this is only a short-term solution.
13 Instead, fetch the wheel to get dist-info and install it manually.
14
15 Closes: https://bugs.gentoo.org/821448
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 dev-python/tomli/Manifest | 1 +
19 dev-python/tomli/tomli-1.2.2-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++
20 2 files changed, 37 insertions(+)
21
22 diff --git a/dev-python/tomli/Manifest b/dev-python/tomli/Manifest
23 index cfc84879538..78558863025 100644
24 --- a/dev-python/tomli/Manifest
25 +++ b/dev-python/tomli/Manifest
26 @@ -1,2 +1,3 @@
27 DIST tomli-1.2.1.gh.tar.gz 122701 BLAKE2B d0280bb81a6e931a175c6ef2c58b4f36b1237f99a73331cbb95f98b9e68a98a4c6a635aa12751ac46492c2b1a06a821f1ae70cd0c36f268998488e824f3e577c SHA512 34f9529b137331b0ae03ac99170b3f6509847356594be14166bae306ea4fbbddff808ffe0c48d05434f72d223a2f35b511675217053029d287725b7142fbd089
28 +DIST tomli-1.2.2-py3-none-any.whl.zip 12118 BLAKE2B ae1dbc14e3c7c79240a327f3fb622c16aeba561274aedc93957549d838fcb2b6ed5889f8c28344a4cc9dbb52eacd6b9dc53aeff8f08642a8abeed2dd67c989a1 SHA512 fb9452663a46760ea442f2f06ad2f60b094368680dae315c2386457041f3ac5399c196ceec0524d432442ec72158c2d95bfa5d0cc288163b4eb1d6a07a62ae36
29 DIST tomli-1.2.2.gh.tar.gz 123150 BLAKE2B b07527a2a83615030037867c6011440a3814cbe265e8a760cca08e324954dbf7d1a393bc900559ddfc1bcbe1911f758948051823d9ef830ee05abb2539374dff SHA512 460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605
30
31 diff --git a/dev-python/tomli/tomli-1.2.2-r1.ebuild b/dev-python/tomli/tomli-1.2.2-r1.ebuild
32 new file mode 100644
33 index 00000000000..d05ada7dc1a
34 --- /dev/null
35 +++ b/dev-python/tomli/tomli-1.2.2-r1.ebuild
36 @@ -0,0 +1,36 @@
37 +# Copyright 2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
41 +EAPI=7
42 +
43 +DISTUTILS_USE_SETUPTOOLS=manual
44 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
45 +inherit distutils-r1
46 +
47 +DESCRIPTION="A lil' TOML parser"
48 +HOMEPAGE="
49 + https://pypi.org/project/tomli/
50 + https://github.com/hukkin/tomli/"
51 +SRC_URI="
52 + https://github.com/hukkin/tomli/archive/${PV}.tar.gz
53 + -> ${P}.gh.tar.gz
54 + https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P}-py3-none-any.whl
55 + -> ${P}-py3-none-any.whl.zip"
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
60 +
61 +BDEPEND="
62 + app-arch/unzip
63 + test? ( dev-python/python-dateutil[${PYTHON_USEDEP}] )"
64 +
65 +distutils_enable_tests pytest
66 +
67 +# do not use any build system to avoid circular deps
68 +python_compile() { :; }
69 +
70 +python_install() {
71 + python_domodule tomli "${WORKDIR}"/*.dist-info
72 +}