From: "Ian Delaney" <idella4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/speaklater/
Date: Mon, 18 Apr 2016 09:06:31 +0000 (UTC) [thread overview]
Message-ID: <1460970366.69b1ea1b8c474a01ee13b7f0b4d829a0ab716e7e.idella4@gentoo> (raw)
commit: 69b1ea1b8c474a01ee13b7f0b4d829a0ab716e7e
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sun Apr 17 18:11:41 2016 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Apr 18 09:06:06 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69b1ea1b
dev-python/speaklater: Fix Python 3 support, add Python 3.5 and tests
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1293
Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>
dev-python/speaklater/metadata.xml | 1 +
dev-python/speaklater/speaklater-1.3-r1.ebuild | 20 +++++++++++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/dev-python/speaklater/metadata.xml b/dev-python/speaklater/metadata.xml
index 28a065d..f4503d2 100644
--- a/dev-python/speaklater/metadata.xml
+++ b/dev-python/speaklater/metadata.xml
@@ -8,5 +8,6 @@
<upstream>
<remote-id type="pypi">speaklater</remote-id>
<remote-id type="github">mitsuhiko/speaklater</remote-id>
+ <bugs-to>https://github.com/mitsuhiko/speaklater/issues</bugs-to>
</upstream>
</pkgmetadata>
diff --git a/dev-python/speaklater/speaklater-1.3-r1.ebuild b/dev-python/speaklater/speaklater-1.3-r1.ebuild
index a02509c..f59954c 100644
--- a/dev-python/speaklater/speaklater-1.3-r1.ebuild
+++ b/dev-python/speaklater/speaklater-1.3-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} pypy )
inherit distutils-r1
DESCRIPTION="Lazy strings for Python"
@@ -17,3 +17,17 @@ IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
+
+python_prepare() {
+ # https://github.com/mitsuhiko/speaklater/issues/2
+ if python_is_python3; then
+ 2to3 -n -w --no-diffs ${PN}.py || die
+ 2to3 -d -n -w --no-diffs ${PN}.py || die
+ # fix unicode in doctests
+ sed -ri "s/(^ {4}l?)u'/\1'/" ${PN}.py || die
+ fi
+}
+
+python_test() {
+ "${PYTHON}" -m doctest -v ${PN}.py || die "tests failed with ${EPYTHON}"
+}
next reply other threads:[~2016-04-18 9:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 9:06 Ian Delaney [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-05-05 12:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/speaklater/ Manuel Rüger
2019-12-01 19:27 Andreas Sturmlechner
2020-02-06 6:18 Michał Górny
2020-06-24 7:07 Michał Górny
2020-06-24 7:07 Michał Górny
2021-06-05 18:20 Michał Górny
2022-03-24 22:50 Jakov Smolić
2022-05-21 9:09 Michał Górny
2022-06-22 10:10 Agostino Sarubbo
2022-06-22 10:16 Agostino Sarubbo
2022-06-22 12:01 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460970366.69b1ea1b8c474a01ee13b7f0b4d829a0ab716e7e.idella4@gentoo \
--to=idella4@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox