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/fixtures/
Date: Sun, 31 May 2020 15:43:02
Message-Id: 1590939744.e0855f6d069f394582bd55ab7042ba37e1515c44.mgorny@gentoo
1 commit: e0855f6d069f394582bd55ab7042ba37e1515c44
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 14:43:26 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 15:42:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0855f6d
7
8 dev-python/fixtures: Port to py39
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/fixtures/fixtures-3.0.0.ebuild | 13 ++++++++++---
13 1 file changed, 10 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-python/fixtures/fixtures-3.0.0.ebuild b/dev-python/fixtures/fixtures-3.0.0.ebuild
16 index d659f853923..0f6eb5d60dc 100644
17 --- a/dev-python/fixtures/fixtures-3.0.0.ebuild
18 +++ b/dev-python/fixtures/fixtures-3.0.0.ebuild
19 @@ -1,9 +1,9 @@
20 # Copyright 1999-2020 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI=6
24 +EAPI=7
25
26 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
27 +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 )
28
29 inherit distutils-r1
30
31 @@ -25,7 +25,14 @@ RDEPEND="
32 >=dev-python/testtools-0.9.22[${PYTHON_USEDEP}]"
33 DEPEND="${RDEPEND}
34 test? ( dev-python/mock[${PYTHON_USEDEP}] )"
35 -#DISTUTILS_IN_SOURCE_BUILD=1
36 +
37 +src_prepare() {
38 + # broken on py3.9
39 + # https://github.com/testing-cabal/fixtures/issues/44
40 + sed -i -e 's:test_patch_classmethod_with:_&:' \
41 + fixtures/tests/_fixtures/test_monkeypatch.py || die
42 + distutils-r1_src_prepare
43 +}
44
45 python_test() {
46 emake check