diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-04-29 12:35:17 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-04-29 12:37:12 -0700 |
commit | a302878ec8697526f0b2b1ca3b539fd4da1885a7 (patch) | |
tree | daa7b24cce454219295a840d10ac2bf566dc4bf0 /dev-python/loguru | |
parent | dev-python/ansimarkup: new package (diff) | |
download | gentoo-a302878ec8697526f0b2b1ca3b539fd4da1885a7.tar.gz gentoo-a302878ec8697526f0b2b1ca3b539fd4da1885a7.tar.bz2 gentoo-a302878ec8697526f0b2b1ca3b539fd4da1885a7.zip |
dev-python/loguru: new package
Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-python/loguru')
-rw-r--r-- | dev-python/loguru/Manifest | 1 | ||||
-rw-r--r-- | dev-python/loguru/loguru-0.2.6_pre20190412.ebuild | 49 | ||||
-rw-r--r-- | dev-python/loguru/metadata.xml | 16 |
3 files changed, 66 insertions, 0 deletions
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 @@ +<?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> |