diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
commit | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (patch) | |
tree | ce9341d77d1507f67d4a3a1472da9011b5baa0a8 /dev-python/python-musicbrainz-ngs | |
parent | dd762ff83c330186ee2ede002e08b2f780cddd51 (diff) |
gentoo resync : 19.07.2019
Diffstat (limited to 'dev-python/python-musicbrainz-ngs')
3 files changed, 40 insertions, 5 deletions
diff --git a/dev-python/python-musicbrainz-ngs/Manifest b/dev-python/python-musicbrainz-ngs/Manifest index df37b01e2416..06e87318338e 100644 --- a/dev-python/python-musicbrainz-ngs/Manifest +++ b/dev-python/python-musicbrainz-ngs/Manifest @@ -1,3 +1,4 @@ +AUX 0.6-fix-test-submit.patch 993 BLAKE2B 3347bd841f0f1b23477f387275ad8e6d40fcffc434150e93c0d57c9291c239639018c28e519032ee2cb251371343d0f3ce6c070b960d4ca8bd1dc5b5b480511f SHA512 ed5b6b674edddcc1d6047bfd97ffdbc1bd4ae3b83e61100b0389cabad84014dce894857faf5555824f245eacaea7541ee18424f630881698b8f2bebceabf8b78 DIST python-musicbrainzngs0.6.tar.gz 110948 BLAKE2B 9528d966565f7c927a98d311dcbb6db73a84614efa3eb071fe944b29b655526f9dd6e8a4a217428883d30b93c18e45c3d752d321d3c0689e5af00423b5fd7faa SHA512 901729f736b207f2f086e3d44a3515d405f6621706ad9c7ca07dd304349e048c5790bb16b054393651808bac4905ceb9493dd66d9fb17a1612692427c0bd3bd4 -EBUILD python-musicbrainz-ngs-0.6.ebuild 1063 BLAKE2B 2672487cb31fbb65d72cc962b8c28b797c39a99491a3bc9c1ada3267d42aae11537091bf3cda0762d473142e13950ed88d688f954bc6b74f30c5cd470cdf5eef SHA512 5c8efd8ca84a857f79bf42a2c0b42794345d7bf268ed914da98378f1c394ce61d37e463197748cb95c9f0e8f62279337a33b42d1d6a7573a1fe8f14e6964c566 +EBUILD python-musicbrainz-ngs-0.6.ebuild 1127 BLAKE2B fca3698bfdee1c08be861bbb8701a04b8dc0901a5cc8ea2d3c2259da2239fec66a7a0ef16bb7179aedb7b0088046ac486dab475abbe8ca6656c0d1d20a649f93 SHA512 32cdb9268f706fdea88fca4a61796b686f81c71bf98c001ed756d9d1bd575af8fc5ca29641bfb1ce2ecfe8198bf934179cc461fd48d58066a8f2b89c8eae96f3 MISC metadata.xml 608 BLAKE2B 2fb7e36555a1ce07fc8da2d81e412e2b1194cbacb6657779e37a40831878dc6b462e0cddfbe983d301bb84736e4bdbb6d12002f94a4038f0afde45fe35c82069 SHA512 811ffe495005e46570b10c03f4de36d8fd096123108300f21afc12f7c6af46f2ac66a9c69d1df89f1266df4b83afc5281aedd1e978d7eabd7cdd9acda7a338b0 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 000000000000..4881936c80b1 --- /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("<response/>") + 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 6dbb0b8902d6..0a6996ca9ef8 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}] )" @@ -35,7 +37,7 @@ python_compile_all() { } python_test() { - esetup.py test + esetup.py test --verbosity=2 } python_install_all() { |