diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2023-02-25 22:03:45 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-26 04:59:46 +0100 |
commit | 446e9be3ad00d46fb0c594577fcc8de0f15ca793 (patch) | |
tree | 566fa9174a7bf43411288926e7542b8b134e9237 /dev-python/doit | |
parent | dev-python/doit-py: update to EAPI8 (diff) | |
download | gentoo-446e9be3ad00d46fb0c594577fcc8de0f15ca793.tar.gz gentoo-446e9be3ad00d46fb0c594577fcc8de0f15ca793.tar.bz2 gentoo-446e9be3ad00d46fb0c594577fcc8de0f15ca793.zip |
dev-python/doit: add python3_11 target
Closes: https://bugs.gentoo.org/896774
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29793
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/doit')
-rw-r--r-- | dev-python/doit/doit-0.36.0-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
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} +} |