From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93873138334 for ; Tue, 31 Dec 2019 14:14:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69216E0D20; Tue, 31 Dec 2019 14:14:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E903E0D20 for ; Tue, 31 Dec 2019 14:14:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C82EF34DDD9 for ; Tue, 31 Dec 2019 14:14:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52FBD74 for ; Tue, 31 Dec 2019 14:14:45 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1577801677.1db32248868329eea9b57247b9eb2e3ebc383b37.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-logging/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jaraco-logging/Manifest dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild X-VCS-Directories: dev-python/jaraco-logging/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 1db32248868329eea9b57247b9eb2e3ebc383b37 X-VCS-Branch: master Date: Tue, 31 Dec 2019 14:14:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b0970c6-f86e-4871-bf42-7b9cde0ee71f X-Archives-Hash: 38ad60aba11792faba7524ed23bee93d commit: 1db32248868329eea9b57247b9eb2e3ebc383b37 Author: Louis Sautier gentoo org> AuthorDate: Tue Dec 31 13:30:23 2019 +0000 Commit: Louis Sautier gentoo org> CommitDate: Tue Dec 31 14:14:37 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1db32248 dev-python/jaraco-logging: bump to 3.0.0, drops gentoo.org> dev-python/jaraco-logging/Manifest | 1 + .../jaraco-logging/jaraco-logging-3.0.0.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-python/jaraco-logging/Manifest b/dev-python/jaraco-logging/Manifest index 4aa6976fa1e..cbb953c7e1a 100644 --- a/dev-python/jaraco-logging/Manifest +++ b/dev-python/jaraco-logging/Manifest @@ -1,2 +1,3 @@ DIST jaraco.logging-1.5.2.tar.gz 7135 BLAKE2B 5235566df80008270f2f28101ab5df1d7fbc1446f138eb4cb851c9bb464b741c0ebb8528d3502130b5c557f30214ec27ce1ea563e09e78776e22d37811da21b5 SHA512 3299adc9c9ca6113198cddbc34147afe1bf453edee16a2d6bfcce64e63deeaff7f87beb74ff44f092435f3433a921b19167fb45778dce444512807357bce1661 DIST jaraco.logging-2.0.tar.gz 10356 BLAKE2B a7522fa9895784a68c8c0af265ad5a82ba27f69e90a17ba18b4a579e1ca5785ad11b7718273adb33661e45e780876b885b581af1b4518ef5322c077ed76242ba SHA512 9262575c3071f78ded2284ebef3a1a80c8ffd60addecf9b215db04471672bd892f6c6bd06a84f9a82e872adf31d45d4eb3faa2884815fcce608840821f49954e +DIST jaraco.logging-3.0.0.tar.gz 10739 BLAKE2B c5cad0b6d7702a1216869dd0cd388d51a0a8e7bd24000108ef818623b54d23ce1adf0de2e017b869d764342484bf25d676ee18af9647b82964933ebb184cec0e SHA512 bc0edeef6223d0eb78110d51159a70afd16542e830e3cd37dec7628e582bce44218cd7669c03c41125db9824b6fc774f608dd7f6540224659f4dc2f1927d681c diff --git a/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild b/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild new file mode 100644 index 00000000000..2c8fcf0eb31 --- /dev/null +++ b/dev-python/jaraco-logging/jaraco-logging-3.0.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Additional facilities to supplement Python's stdlib logging module" +HOMEPAGE="https://github.com/jaraco/jaraco.logging" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +# TODO: remove six +# https://github.com/jaraco/jaraco.logging/pull/1 +RDEPEND=" + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/tempora[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] + doc? ( + >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] + >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_compile_all() { + if use doc; then + # conf.py looks for '../CHANGES.rst' + cd docs || die + sphinx-build . _build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + # Override pytest options to skip flake8 + PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \ + || die "tests failed with ${EPYTHON}" +} + +# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages +python_install() { + rm "${BUILD_DIR}"/lib/jaraco/__init__.py || die + # note: eclass may default to --skip-build in the future + distutils-r1_python_install --skip-build +}