mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
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>
This commit is contained in:
committed by
Joonas Niilola
parent
90a99f1529
commit
b8a6aa1b1b
@@ -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
|
||||
|
||||
@@ -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."""
|
||||
28
dev-python/verboselogs/verboselogs-1.7.ebuild
Normal file
28
dev-python/verboselogs/verboselogs-1.7.ebuild
Normal file
@@ -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}"
|
||||
}
|
||||
Reference in New Issue
Block a user