Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mox3/files/, dev-python/mox3/
Date: Thu, 16 Feb 2017 09:06:20
Message-Id: 1487235970.88ef7616ba87731e8c5b0d2177136449ab219d5e.zmedico@gentoo
1 commit: 88ef7616ba87731e8c5b0d2177136449ab219d5e
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 16 08:14:18 2017 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 16 09:06:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88ef7616
7
8 dev-python/mox3: PYTHON_COMPAT: add python3_6
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../mox3/files/mox3-0.12.0-RegexTest-python3.6.patch | 18 ++++++++++++++++++
13 dev-python/mox3/mox3-0.10.0.ebuild | 4 ++--
14 dev-python/mox3/mox3-0.12.0.ebuild | 6 ++++--
15 3 files changed, 24 insertions(+), 4 deletions(-)
16
17 diff --git a/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch b/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch
18 new file mode 100644
19 index 0000000000..8c118e6a9c
20 --- /dev/null
21 +++ b/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch
22 @@ -0,0 +1,18 @@
23 +From: Zac Medico <zmedico@g.o>
24 +Subject: [PATCH] RegexTest: python3.6 compatibility
25 +
26 +https://bugs.launchpad.net/python-mox3/+bug/1665266
27 +
28 +--- mox3-0.12.0/mox3/tests/test_mox.py
29 ++++ mox3-0.12.0/mox3/tests/test_mox.py
30 +@@ -316,8 +316,8 @@
31 +
32 + def testReprWithFlags(self):
33 + """repr should return the regular expression pattern and flags."""
34 +- self.assertTrue(repr(mox.Regex(r"a\s+b", flags=4)) ==
35 +- "<regular expression 'a\s+b', flags=4>")
36 ++ self.assertTrue(repr(mox.Regex(r"a\s+b", flags=8)) ==
37 ++ r"<regular expression 'a\s+b', flags=8>")
38 +
39 +
40 + class IsTest(testtools.TestCase):
41
42 diff --git a/dev-python/mox3/mox3-0.10.0.ebuild b/dev-python/mox3/mox3-0.10.0.ebuild
43 index 5404e3405e..15856263ac 100644
44 --- a/dev-python/mox3/mox3-0.10.0.ebuild
45 +++ b/dev-python/mox3/mox3-0.10.0.ebuild
46 @@ -1,9 +1,9 @@
47 -# Copyright 1999-2015 Gentoo Foundation
48 +# Copyright 1999-2017 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Id$
51
52 EAPI=5
53 -PYTHON_COMPAT=( python2_7 python3_4 )
54 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
55 DISTUTILS_IN_SOURCE_BUILD=TRUE
56
57 inherit distutils-r1
58
59 diff --git a/dev-python/mox3/mox3-0.12.0.ebuild b/dev-python/mox3/mox3-0.12.0.ebuild
60 index 2ceca6dc06..c412788fc1 100644
61 --- a/dev-python/mox3/mox3-0.12.0.ebuild
62 +++ b/dev-python/mox3/mox3-0.12.0.ebuild
63 @@ -1,9 +1,9 @@
64 -# Copyright 1999-2015 Gentoo Foundation
65 +# Copyright 1999-2017 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67 # $Id$
68
69 EAPI=5
70 -PYTHON_COMPAT=( python2_7 python3_4 )
71 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
72
73 inherit distutils-r1
74
75 @@ -40,6 +40,8 @@ RDEPEND="
76 ${CRDEPEND}
77 "
78
79 +PATCHES=( "${FILESDIR}"/${P}-RegexTest-python3.6.patch )
80 +
81 python_compile_all() {
82 use doc && esetup.py build_sphinx
83 }