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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 694B5158030 for ; Sun, 26 Feb 2023 04:01:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B896E0824; Sun, 26 Feb 2023 04:01:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C10EE0863 for ; Sun, 26 Feb 2023 04:01:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06BA5340DA5 for ; Sun, 26 Feb 2023 04:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49DB78C1 for ; Sun, 26 Feb 2023 04:01:28 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1677383986.446e9be3ad00d46fb0c594577fcc8de0f15ca793.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/doit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/doit/doit-0.36.0-r1.ebuild X-VCS-Directories: dev-python/doit/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 446e9be3ad00d46fb0c594577fcc8de0f15ca793 X-VCS-Branch: master Date: Sun, 26 Feb 2023 04:01:28 +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: 9f7a0781-46d4-49ad-96ef-c8d4973c0b84 X-Archives-Hash: 825b7608aa04a70b7f166640208712fc commit: 446e9be3ad00d46fb0c594577fcc8de0f15ca793 Author: Azamat H. Hackimov gmail com> AuthorDate: Sat Feb 25 19:03:45 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 26 03:59:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=446e9be3 dev-python/doit: add python3_11 target Closes: https://bugs.gentoo.org/896774 Signed-off-by: Azamat H. Hackimov gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29793 Signed-off-by: Michał Górny gentoo.org> dev-python/doit/doit-0.36.0-r1.ebuild | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/dev-python/doit/doit-0.36.0-r1.ebuild b/dev-python/doit/doit-0.36.0-r1.ebuild new file mode 100644 index 000000000000..086ace410ac9 --- /dev/null +++ b/dev-python/doit/doit-0.36.0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Automation tool" +HOMEPAGE="https://pydoit.org/ + https://pypi.org/project/doit/ + https://github.com/pydoit/doit" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/pyinotify[${PYTHON_USEDEP}] + || ( + dev-python/tomli[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + dev-python/pyflakes[${PYTHON_USEDEP}] + ) +" +PDEPEND=">=dev-python/doit-py-0.4.0[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest +distutils_enable_sphinx doc \ + dev-python/sphinx-rtd-theme + +EPYTEST_DESELECT=( + # test failing due to impact on PATH run in a sandbox + tests/test_cmd_strace.py::TestCmdStrace::test_dep # #836164 + tests/test_cmd_strace.py::TestCmdStrace::test_target +) + +src_prepare() { + # Replace custom theme with builtin for documentation + sed -e '/html_theme/s/press/sphinx_rtd_theme/' -i doc/conf.py || die + # Remove non-exist modules for doc generation (#832754) + sed \ + -e '/sphinx_sitemap/d' \ + -e '/sphinx_reredirects/d' \ + -i doc/conf.py || die + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + newbashcomp bash_completion_doit ${PN} + insinto /usr/share/zsh/site-functions + newins zsh_completion_doit _${PN} +}