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 2C1FC138350 for ; Sun, 1 Mar 2020 03:47:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E0BEE09D5; Sun, 1 Mar 2020 03:47:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 5425FE09D5 for ; Sun, 1 Mar 2020 03:47:06 +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 6338634F060 for ; Sun, 1 Mar 2020 03:47:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7744103 for ; Sun, 1 Mar 2020 03:47:03 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1583034416.11104e9baef936cee2fb877b6c01e98313084a3b.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/xlwt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/xlwt/xlwt-1.3.0-r1.ebuild X-VCS-Directories: dev-python/xlwt/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 11104e9baef936cee2fb877b6c01e98313084a3b X-VCS-Branch: master Date: Sun, 1 Mar 2020 03:47:03 +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: a2c9d805-f048-4398-a1a7-193eef7576ed X-Archives-Hash: 262d24ffa8d4c263c3e860f6b815fc2d commit: 11104e9baef936cee2fb877b6c01e98313084a3b Author: Andrey Grozin gentoo org> AuthorDate: Sun Mar 1 03:46:56 2020 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Sun Mar 1 03:46:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11104e9b dev-python/xlwt: add python3_8 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andrey Grozin gentoo.org> dev-python/xlwt/xlwt-1.3.0-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/dev-python/xlwt/xlwt-1.3.0-r1.ebuild b/dev-python/xlwt/xlwt-1.3.0-r1.ebuild new file mode 100644 index 00000000000..c3f628912de --- /dev/null +++ b/dev-python/xlwt/xlwt-1.3.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +DESCRIPTION="Python library to create spreadsheet files compatible with Excel" +HOMEPAGE="https://pypi.org/project/xlwt/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] + dev-python/pkginfo[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +# Prevent d'loading in the doc build +PATCHES=( "${FILESDIR}/${PN}-1.3.0-no-intersphinx.patch" ) + +python_prepare_all() { + # Don't install documentation and examples in site-packages directories. + sed -e "/package_data/d" -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + nosetests tests || die "tests failed under ${EPYTHON}}" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF} + fi + distutils-r1_python_install_all +}