From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/humanize/Manifest | 2 ++ dev-python/humanize/humanize-0.5.1.ebuild | 38 +++++++++++++++++++++++++++++++ dev-python/humanize/humanize-2.4.0.ebuild | 36 +++++++++++++++++++++++++++++ dev-python/humanize/metadata.xml | 18 +++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 dev-python/humanize/Manifest create mode 100644 dev-python/humanize/humanize-0.5.1.ebuild create mode 100644 dev-python/humanize/humanize-2.4.0.ebuild create mode 100644 dev-python/humanize/metadata.xml (limited to 'dev-python/humanize') diff --git a/dev-python/humanize/Manifest b/dev-python/humanize/Manifest new file mode 100644 index 000000000000..d8adbb8174a2 --- /dev/null +++ b/dev-python/humanize/Manifest @@ -0,0 +1,2 @@ +DIST humanize-0.5.1.tar.gz 20507 BLAKE2B 55d7b598b32658b1d4c4741b37b5c33bdc9d63a5a779455e2fb93e1e4c3a0d8fd58e8522ef82734e1ba2b161fd881829373ba3569baffd9ea3271ad7ed3e7568 SHA512 dd7ad7f3c564cc6abcb6b128e50dbea7f19f7f418bfd936aae2472961c53ec71202133c5c2b5b930ef41ef807b51d6ba1210565627ed32c0b41acc0abd32a2d5 +DIST humanize-2.4.0.tar.gz 46489 BLAKE2B bb2cfeebd25f4aa073539bb616a5d05db2827dd2aaa6f093d46b51415ef3b954918a45f2434b9ce41845389be986200e23b1cb752e8a0bd03649377ea46fbec6 SHA512 20707a59f2f0bbc52e1e5d906e733561f53c3bc429ce24662ea9014d7f73f87a8f3ae9aa62f2564fafbe9de0d6b250e8fecec4a3cb81968c5b24d61ad9627d1b diff --git a/dev-python/humanize/humanize-0.5.1.ebuild b/dev-python/humanize/humanize-0.5.1.ebuild new file mode 100644 index 000000000000..9fb7249b70dd --- /dev/null +++ b/dev-python/humanize/humanize-0.5.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Common humanization utilities" +HOMEPAGE="https://github.com/jmoiron/humanize/" +# Tests are not included in PyPI tarballs +# https://github.com/jmoiron/humanize/issues/33 +SRC_URI="https://github.com/jmoiron/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] ) +" + +python_compile_all() { + if use doc; then + cd docs || die + sphinx-build . _build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + esetup.py test || die "tests failed with ${EPYTHON}" +} diff --git a/dev-python/humanize/humanize-2.4.0.ebuild b/dev-python/humanize/humanize-2.4.0.ebuild new file mode 100644 index 000000000000..4785489816a4 --- /dev/null +++ b/dev-python/humanize/humanize-2.4.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) +# The package uses pkg_resources to determine its version +DISTUTILS_USE_SETUPTOOLS=manual + +inherit distutils-r1 + +DESCRIPTION="Common humanization utilities" +HOMEPAGE="https://github.com/jmoiron/humanize/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_test() { + # The package uses pkg_resources to determine its version + distutils_install_for_testing + pytest -vv || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/humanize/metadata.xml b/dev-python/humanize/metadata.xml new file mode 100644 index 000000000000..51bed0858f14 --- /dev/null +++ b/dev-python/humanize/metadata.xml @@ -0,0 +1,18 @@ + + + + + sbraz@gentoo.org + Louis Sautier + + + python@gentoo.org + Python + + + humanize + jmoiron/humanize + https://github.com/jmoiron/humanize/issues + + gentoo-staging + -- cgit v1.3.1