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 8D048138334 for ; Tue, 2 Jul 2019 21:58:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1A18E07EA; Tue, 2 Jul 2019 21:58:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 73DBCE07EA for ; Tue, 2 Jul 2019 21:58:19 +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 43CBD346E59 for ; Tue, 2 Jul 2019 21:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B911A58B for ; Tue, 2 Jul 2019 21:58:15 +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: <1562104675.6c95f223c35aae386592b2d97a038fb0439775a2.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-classes/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jaraco-classes/Manifest dev-python/jaraco-classes/jaraco-classes-2.0.ebuild X-VCS-Directories: dev-python/jaraco-classes/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 6c95f223c35aae386592b2d97a038fb0439775a2 X-VCS-Branch: master Date: Tue, 2 Jul 2019 21:58:15 +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: 9a5bd11b-ab87-4292-ade7-573fbcdee109 X-Archives-Hash: ac954f81165eea882835bb8fc63713f7 commit: 6c95f223c35aae386592b2d97a038fb0439775a2 Author: Louis Sautier gentoo org> AuthorDate: Tue Jul 2 21:54:46 2019 +0000 Commit: Louis Sautier gentoo org> CommitDate: Tue Jul 2 21:57:55 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c95f223 dev-python/jaraco-classes: bump to 2.0, switches to pkgutil Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Louis Sautier gentoo.org> dev-python/jaraco-classes/Manifest | 1 + .../jaraco-classes/jaraco-classes-2.0.ebuild | 60 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/dev-python/jaraco-classes/Manifest b/dev-python/jaraco-classes/Manifest index 3ea0e7e35ed..bbee372ff5b 100644 --- a/dev-python/jaraco-classes/Manifest +++ b/dev-python/jaraco-classes/Manifest @@ -1,2 +1,3 @@ DIST jaraco.classes-1.4.tar.gz 5171 BLAKE2B 193333a9a543328b6f781888ba7a6ae3cf0b1ae7cab078c9da65a1ed26cc71164aa06a31f2495b62c7d7a388b6fc075e97c7af58f7d67bc0ecc1785f9c7056dd SHA512 d434b470424c104f91e9a4a5e3a1f2109b919a35edf45540ad1ef8600f0b10864f32aefb411d747e13b5d99ba06601ea7abe5032e24e5dc6b25254b4e68f8a89 DIST jaraco.classes-1.5.tar.gz 6710 BLAKE2B 884e756c7bff272a0b35d9ef8cd30538eba793e6d838b7bd409a59fde9539776906aeb95a456f7095178ce0623e20634fe1a09a8f3515d4b661bf702480cd934 SHA512 8fe3d40863424547e5396fd6a2b4ef3f27a92185ca82206bb88de2716419a9c2dc917fc945c732d5dab1a1795727a12014e0bbaceee7834896351de05491f99c +DIST jaraco.classes-2.0.tar.gz 9911 BLAKE2B aa5e5c90f16c9536239ed61e6dccbc426244c98a33a944de32239bd42a0a4944e5df3529cfd525e05cf276a4a4b028edcec734006b549053ac8817032f52b2ea SHA512 83c9a570f951ef6c3708243dce6397cfbfe963db5920550ac807878a69860b34831af5f277f956fd0b327d85462676fd6386a22d6d97c7616e01ca81d7ace694 diff --git a/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild b/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild new file mode 100644 index 00000000000..dfe803bba47 --- /dev/null +++ b/dev-python/jaraco-classes/jaraco-classes-2.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Tests fail with pypy +PYTHON_COMPAT=( pypy3 python{2_7,3_{5,6,7}} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Classes used by other projects by developer jaraco" +HOMEPAGE="https://github.com/jaraco/jaraco.classes" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/namespace-jaraco-2[${PYTHON_USEDEP}] + dev-python/six[${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 + cd docs || die + sphinx-build . _build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + # Avoid ImportMismatchError, override pytest options to skip flake8 + pytest -vv "${BUILD_DIR}"/lib --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 +}