From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 28768138334 for ; Tue, 16 Jul 2019 15:33:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E064E0825; Tue, 16 Jul 2019 15:33:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D23DE0825 for ; Tue, 16 Jul 2019 15:33:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2243A347D86 for ; Tue, 16 Jul 2019 15:33:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB1D06E9 for ; Tue, 16 Jul 2019 15:33:07 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1563290538.c7c44e7d68910acacef6d3c2efdfca980c44098c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-musicbrainz-ngs/files/, dev-python/python-musicbrainz-ngs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-musicbrainz-ngs/files/0.6-fix-test-submit.patch dev-python/python-musicbrainz-ngs/python-musicbrainz-ngs-0.6.ebuild X-VCS-Directories: dev-python/python-musicbrainz-ngs/ dev-python/python-musicbrainz-ngs/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c7c44e7d68910acacef6d3c2efdfca980c44098c X-VCS-Branch: master Date: Tue, 16 Jul 2019 15:33:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d814b6b5-879c-460c-bbfd-8aa509c88663 X-Archives-Hash: f3ae6fffa3cb14840ceab8203ce1dc6e commit: c7c44e7d68910acacef6d3c2efdfca980c44098c Author: Gerion Entrup sra uni-hannover de> AuthorDate: Fri Jul 12 22:02:45 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jul 16 15:22:18 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c44e7d dev-python/python-musicbrainz-ngs: python3.7 and fix test cases Closes: https://bugs.gentoo.org/689178 Closes: https://bugs.gentoo.org/653426 Package-Manager: Portage-2.3.66, Repoman-2.3.11 Signed-off-by: Gerion Entrup flump.de> Closes: https://github.com/gentoo/gentoo/pull/12436 Signed-off-by: Michał Górny gentoo.org> .../files/0.6-fix-test-submit.patch | 32 ++++++++++++++++++++++ .../python-musicbrainz-ngs-0.6.ebuild | 8 ++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/dev-python/python-musicbrainz-ngs/files/0.6-fix-test-submit.patch b/dev-python/python-musicbrainz-ngs/files/0.6-fix-test-submit.patch new file mode 100644 index 00000000000..4881936c80b --- /dev/null +++ b/dev-python/python-musicbrainz-ngs/files/0.6-fix-test-submit.patch @@ -0,0 +1,32 @@ +diff --git a/test/test_submit.py b/test/test_submit.py +index bce5362..2d13811 100644 +--- a/test/test_submit.py ++++ b/test/test_submit.py +@@ -1,13 +1,23 @@ + import unittest +-import os +-import sys +-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) +- + import musicbrainzngs + from musicbrainzngs import musicbrainz + from test import _common + ++ + class SubmitTest(unittest.TestCase): ++ ++ def setUp(self): ++ self.orig_opener = musicbrainzngs.compat.build_opener ++ musicbrainz.set_useragent("test_client", "1.0") ++ musicbrainz.auth("user", "password") ++ ++ def tearDown(self): ++ musicbrainzngs.compat.build_opener = self.orig_opener ++ musicbrainz._useragent = "" ++ musicbrainz._client = "" ++ musicbrainz.user = "" ++ musicbrainz.password = "" ++ + def test_submit_tags(self): + self.opener = _common.FakeOpener("") + musicbrainzngs.compat.build_opener = lambda *args: self.opener diff --git a/dev-python/python-musicbrainz-ngs/python-musicbrainz-ngs-0.6.ebuild b/dev-python/python-musicbrainz-ngs/python-musicbrainz-ngs-0.6.ebuild index 6dbb0b8902d..4c2de26e499 100644 --- a/dev-python/python-musicbrainz-ngs/python-musicbrainz-ngs-0.6.ebuild +++ b/dev-python/python-musicbrainz-ngs/python-musicbrainz-ngs-0.6.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) inherit distutils-r1 @@ -20,6 +20,8 @@ IUSE="doc examples test" S="${WORKDIR}/${MY_PN}-${PV}" +PATCHES="${FILESDIR}/0.6-fix-test-submit.patch" + DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"