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/uri_template/
Date: Fri, 24 Jun 2022 18:35:21
Message-Id: 1656095711.43a5a5b9b75f270d7a1c34d09a222e8a7e508c37.mgorny@gentoo
1 commit: 43a5a5b9b75f270d7a1c34d09a222e8a7e508c37
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 18:18:38 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 18:35:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a5a5b9
7
8 dev-python/uri_template: Fix version number in metadata
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../{uri_template-1.2.0.ebuild => uri_template-1.2.0-r1.ebuild} | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/dev-python/uri_template/uri_template-1.2.0.ebuild b/dev-python/uri_template/uri_template-1.2.0-r1.ebuild
16 similarity index 84%
17 rename from dev-python/uri_template/uri_template-1.2.0.ebuild
18 rename to dev-python/uri_template/uri_template-1.2.0-r1.ebuild
19 index 90ea54cc924f..6338f0309acd 100644
20 --- a/dev-python/uri_template/uri_template-1.2.0.ebuild
21 +++ b/dev-python/uri_template/uri_template-1.2.0-r1.ebuild
22 @@ -23,6 +23,12 @@ LICENSE="MIT"
23 SLOT="0"
24 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
25
26 +src_prepare() {
27 + distutils-r1_src_prepare
28 + # fix the version number
29 + sed -i -e "/version/s:0\.0\.0:${PV}:" setup.py || die
30 +}
31 +
32 python_test() {
33 "${EPYTHON}" "test.py" || die "Tests fail with ${EPYTHON}."
34 }