From: Georgy Yakovlev Date: Mon, 29 Apr 2019 19:35:17 +0000 (-0700) Subject: dev-python/loguru: new package X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a302878ec8697526f0b2b1ca3b539fd4da1885a7;p=gentoo.git dev-python/loguru: new package Package-Manager: Portage-2.3.65, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev --- diff --git a/dev-python/loguru/Manifest b/dev-python/loguru/Manifest new file mode 100644 index 000000000000..ebafdee512ab --- /dev/null +++ b/dev-python/loguru/Manifest @@ -0,0 +1 @@ +DIST loguru-0.2.6_pre20190412.tar.gz 362315 BLAKE2B 8273fd42522396d4a17c405bebf01f8de272a56515e4a63766126494b4449333e7c25f5be5851bdbcf922d35affa9ee091ac7138482f9e2daf30f48093cee812 SHA512 49320c19f2bfdc55569290740b49889133003329dbf6cae2e993730a957d69e5200b41b75d255d2e19d937658778945ffe44350431661162eaa6141edfcfc499 diff --git a/dev-python/loguru/loguru-0.2.6_pre20190412.ebuild b/dev-python/loguru/loguru-0.2.6_pre20190412.ebuild new file mode 100644 index 000000000000..04098605437c --- /dev/null +++ b/dev-python/loguru/loguru-0.2.6_pre20190412.ebuild @@ -0,0 +1,49 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit distutils-r1 + +EGIT_COMMIT="6571879c37904e3a18567e694d70651c6886b860" + +DESCRIPTION="Python logging made (stupidly) simple" +HOMEPAGE="https://github.com/Delgan/loguru" +SRC_URI="https://github.com/Delgan/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +DEPEND=" + >=dev-python/ansimarkup-1.4.0[${PYTHON_USEDEP}] + >=dev-python/colorama-0.3.4[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( + >=dev-python/isort-4.3.4[${PYTHON_USEDEP}] + >=dev-python/pytest-3.9.0[${PYTHON_USEDEP}] + ) +" +RDEPEND="${DEPEND}" +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_install_all() { + use doc && HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +} + +python_test() { + pytest -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/loguru/metadata.xml b/dev-python/loguru/metadata.xml new file mode 100644 index 000000000000..b72d659dc843 --- /dev/null +++ b/dev-python/loguru/metadata.xml @@ -0,0 +1,16 @@ + + + + + gyakovlev@gentoo.org + Georgy Yakovlev + + + This library is intended to make Python logging less painful by adding a bunch of useful functionalities that solve caveats of the standard loggers. + Using logs in your application should be an automatism, Loguru tries to make it both pleasant and powerful. + + + Delgan/loguru + loguru + +