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/trio/
Date: Sat, 26 Nov 2022 15:40:55
Message-Id: 1669477249.5c50b9bc472e08cc3f0fc07f5237add7f7fe12a0.mgorny@gentoo
1 commit: 5c50b9bc472e08cc3f0fc07f5237add7f7fe12a0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 26 15:40:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 26 15:40:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c50b9bc
7
8 dev-python/trio: Fix incorrect version in metadata
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/trio/{trio-0.22.0.ebuild => trio-0.22.0-r1.ebuild} | 7 +++++++
13 1 file changed, 7 insertions(+)
14
15 diff --git a/dev-python/trio/trio-0.22.0.ebuild b/dev-python/trio/trio-0.22.0-r1.ebuild
16 similarity index 91%
17 rename from dev-python/trio/trio-0.22.0.ebuild
18 rename to dev-python/trio/trio-0.22.0-r1.ebuild
19 index 88fa5db8d5e3..08ba007b088a 100644
20 --- a/dev-python/trio/trio-0.22.0.ebuild
21 +++ b/dev-python/trio/trio-0.22.0-r1.ebuild
22 @@ -47,6 +47,13 @@ distutils_enable_sphinx docs/source \
23 dev-python/sphinx_rtd_theme \
24 dev-python/towncrier
25
26 +src_prepare() {
27 + # fix incorrect version
28 + # https://github.com/python-trio/trio/issues/2485
29 + sed -i -e "s:0.21.0+dev:${PV}:" trio/_version.py || die
30 + distutils-r1_src_prepare
31 +}
32 +
33 python_test() {
34 local EPYTEST_IGNORE=(
35 # these tests require internet access