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 BA186138334 for ; Wed, 3 Jul 2019 23:36:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E0BAE0907; Wed, 3 Jul 2019 23:36:35 +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 3C977E0907 for ; Wed, 3 Jul 2019 23:36:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 0B380346F4A for ; Wed, 3 Jul 2019 23:36:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 89E4158B for ; Wed, 3 Jul 2019 23:36:31 +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: <1562196984.ef3b9e1459534821f257d5c8f0c4d3284aface0a.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-text/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jaraco-text/Manifest dev-python/jaraco-text/jaraco-text-3.0.ebuild X-VCS-Directories: dev-python/jaraco-text/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: ef3b9e1459534821f257d5c8f0c4d3284aface0a X-VCS-Branch: master Date: Wed, 3 Jul 2019 23:36:31 +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: a048abc8-a62c-4199-9cbe-c7993c94c34b X-Archives-Hash: cf7c76cb9240d24e478d002181fedd5e commit: ef3b9e1459534821f257d5c8f0c4d3284aface0a Author: Louis Sautier gentoo org> AuthorDate: Wed Jul 3 22:16:12 2019 +0000 Commit: Louis Sautier gentoo org> CommitDate: Wed Jul 3 23:36:24 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3b9e14 dev-python/jaraco-text: bump to 3.0, switches to pkgutil This new version also lifts the circular dependency on dev-python/jaraco-collections. Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Louis Sautier gentoo.org> dev-python/jaraco-text/Manifest | 1 + dev-python/jaraco-text/jaraco-text-3.0.ebuild | 58 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-python/jaraco-text/Manifest b/dev-python/jaraco-text/Manifest index 0a0014b4bc2..db56948aa3d 100644 --- a/dev-python/jaraco-text/Manifest +++ b/dev-python/jaraco-text/Manifest @@ -1,2 +1,3 @@ DIST jaraco.text-1.10.1.tar.gz 8790 BLAKE2B 268c13a9a84c4b29ac9141d8a43c716d8248b87c2b71f6bb8a34c2cf1568acdd012e84b1be0469f70ee8e102f723e218b6d551a9bd0cab5192a28d712ed39f03 SHA512 5c09b90f586d5ddf7419013f7e36814598337c257e6bd1c1eec993d7df021440798ec9300a6d45c960c5458c4197b458d1863f478b60a9a003241e98a644f28e DIST jaraco.text-1.8.tar.gz 7364 BLAKE2B 60e3ce561ca5c6dca3093a51f8397e925279882ee5b1c02e5359b518f2344481f3d86a927fbd1c7fc903e3207c46cd052a6efbcfac693debce721884188ab87a SHA512 7f13eee9553d7531bf2f51af1b1c7fbb9d778cf082e6eb49948fc0943b7eb5a0268ec51b363ae9e96df854e0af5e38fbc4a679c746160e422759c044d4a33654 +DIST jaraco.text-3.0.tar.gz 12082 BLAKE2B 474a3701460dc899015ef0331f2d4de996915e4b840dfcbb8963fd2eb98571bf7f398285dd4df0a0df36e5d1ba8ce04fa59d396dede5ac059c2b991f6a203a1d SHA512 449b917919f074e0b8a285083163fb5141fdee0db0e6d49c58c8e07ca6f284b5d53d01174e266bf8d21914870574672425abf9b094e815d0d9f0c94b1219de16 diff --git a/dev-python/jaraco-text/jaraco-text-3.0.ebuild b/dev-python/jaraco-text/jaraco-text-3.0.ebuild new file mode 100644 index 00000000000..cc95fcac534 --- /dev/null +++ b/dev-python/jaraco-text/jaraco-text-3.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Text utilities used by other projects by developer jaraco" +HOMEPAGE="https://github.com/jaraco/jaraco.text" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/jaraco-functools[${PYTHON_USEDEP}] + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=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 + sphinx-build docs docs/_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 +}