dev-python/loguru: new package

Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2019-04-29 12:35:17 -07:00
parent 871f258c97
commit a302878ec8
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST loguru-0.2.6_pre20190412.tar.gz 362315 BLAKE2B 8273fd42522396d4a17c405bebf01f8de272a56515e4a63766126494b4449333e7c25f5be5851bdbcf922d35affa9ee091ac7138482f9e2daf30f48093cee812 SHA512 49320c19f2bfdc55569290740b49889133003329dbf6cae2e993730a957d69e5200b41b75d255d2e19d937658778945ffe44350431661162eaa6141edfcfc499

View File

@@ -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}"
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gyakovlev@gentoo.org</email>
<name>Georgy Yakovlev</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<upstream>
<remote-id type="github">Delgan/loguru</remote-id>
<remote-id type="pypi">loguru</remote-id>
</upstream>
</pkgmetadata>