diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-01-15 09:45:02 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-01-23 11:53:18 +0200 |
commit | b8a6aa1b1b315fc5043688eccbc9f73fbd0b9168 (patch) | |
tree | 632d95874bddb417bc9f347e1ca41be3e43f99ea /dev-python/verboselogs | |
parent | dev-python/humanfriendly: Version bump 4.18 and add py3_7 (diff) | |
download | gentoo-b8a6aa1b1b315fc5043688eccbc9f73fbd0b9168.tar.gz gentoo-b8a6aa1b1b315fc5043688eccbc9f73fbd0b9168.tar.bz2 gentoo-b8a6aa1b1b315fc5043688eccbc9f73fbd0b9168.zip |
dev-python/verboselogs: Version bump 1.7 and add py3_7
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/verboselogs')
-rw-r--r-- | dev-python/verboselogs/Manifest | 1 | ||||
-rw-r--r-- | dev-python/verboselogs/files/verboselogs-1.7-skip-sandbox-violation-test.patch | 22 | ||||
-rw-r--r-- | dev-python/verboselogs/verboselogs-1.7.ebuild | 28 |
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/verboselogs/Manifest b/dev-python/verboselogs/Manifest index 028ee587614e..636c63d9a1f8 100644 --- a/dev-python/verboselogs/Manifest +++ b/dev-python/verboselogs/Manifest @@ -1 +1,2 @@ DIST verboselogs-1.6.tar.gz 8837 BLAKE2B e2bfa398e595c7229fae5b8087ecff8575441c0acde172ff81402cc64d27ee866557b0f7028b7c8a7b8a51cfa6f5601b94d600d48503f684d054b25536d4f600 SHA512 618556820c8585edea5ecf86d4b19800f216764c86eaf796dbdeaa5e2b6ace7940c01e9cf94a499a4619bda8b4b8761def8c6e4200a995da511bb23109dcc7e0 +DIST verboselogs-1.7.tar.gz 10338 BLAKE2B a0058a4697d642cc984e68983d499745b644380fd82a45d2aa424cb92b053da2ba5ae225f960427663c49ab78c47ed65c755b43d61c9c978dd881b52ce371ff3 SHA512 13e96ac21e1cb5c68428b348bab63fc4d4ad34eaffe8e1554c05380f9115d2a3ccc6fa2e0a5ca8941e73bfb06537a3e46f29880e7ba3f47da0284279a9740211 diff --git a/dev-python/verboselogs/files/verboselogs-1.7-skip-sandbox-violation-test.patch b/dev-python/verboselogs/files/verboselogs-1.7-skip-sandbox-violation-test.patch new file mode 100644 index 000000000000..ff463b4facc3 --- /dev/null +++ b/dev-python/verboselogs/files/verboselogs-1.7-skip-sandbox-violation-test.patch @@ -0,0 +1,22 @@ +diff --git a/verboselogs/tests.py b/verboselogs/tests.py +index c8759f2..640c002 100644 +--- a/verboselogs/tests.py ++++ b/verboselogs/tests.py +@@ -61,17 +61,6 @@ class VerboseLogsTestCase(unittest.TestCase): + method(message) + logger._log.assert_called_with(level, message, ()) + +- def test_pylint_plugin(self): +- """Test the :mod:`verboselogs.pylint` module.""" +- saved_args = sys.argv +- try: +- sys.argv = ['pylint', '--load-plugins', 'verboselogs.pylint', '--errors-only', 'verboselogs'] +- __import__('pylint').run_pylint() +- except SystemExit: +- pass +- finally: +- sys.argv = saved_args +- + + def random_string(length=25): + """Generate a random string.""" diff --git a/dev-python/verboselogs/verboselogs-1.7.ebuild b/dev-python/verboselogs/verboselogs-1.7.ebuild new file mode 100644 index 000000000000..f10678084f34 --- /dev/null +++ b/dev-python/verboselogs/verboselogs-1.7.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Verbose logging for Python's logging module" +HOMEPAGE="https://pypi.org/project/verboselogs + https://github.com/xolox/python-verboselogs" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +PATCHES="${FILESDIR}/${P}-skip-sandbox-violation-test.patch" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_test() { + pytest -vv ${PN}/tests.py || die "Tests fail with ${EPYTHON}" +} |