commit: 864388bb6e635ffa10fc1d7ed7b105cbbb855589 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Thu May 30 14:09:24 2024 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Thu May 30 16:52:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=864388bb
dev-python/pdoc3: fix deprecation warnings, enable py3.12 Closes: https://bugs.gentoo.org/929479 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> dev-python/pdoc3/Manifest | 1 + dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild | 42 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-python/pdoc3/Manifest b/dev-python/pdoc3/Manifest index aeb0b7e4a865..faddddc4258d 100644 --- a/dev-python/pdoc3/Manifest +++ b/dev-python/pdoc3/Manifest @@ -1 +1,2 @@ +DIST pdoc3-0.10.0-fix-deprecation-warnings.patch 1447 BLAKE2B 6a4c554f3e0d3b66927cef22ab87a07c0711e6b01203bc37e54097f29f4c2547bd6daf721fa8745f941b1c74cd122222ccf8896ab6174c6775a47703ac02d17b SHA512 73d91a8f0d5747cefb972e1a6a028216688fde2f92cd8e5c4139dcebacc4a825e86345c419af7ccf5682dc6458ea5b20fd45799896555a8acadebc61da549140 DIST pdoc3-0.10.0.tar.gz 86133 BLAKE2B 3bada6fb1b048c4eff7556108c29d7f92ee988332d160c4ff765c47bf0cf7a461ed90f93e7be25a7a3251f5d3e70492d23be7230a5ec4abb12612b7e0dd4b5b6 SHA512 646ffb9bceb4456a1ab36c840eb384858aab430443905bc71e62e9c71112a769b69e22cbd18a9d75b7968e2336cbbaa9072103f96dc2d0829ccc7515b057ca85 diff --git a/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild b/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild new file mode 100644 index 000000000000..b118fab9f094 --- /dev/null +++ b/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Auto-generate API documentation for Python projects" +HOMEPAGE="https://pdoc3.github.io/pdoc/" +SRC_URI+=" + https://github.com/pdoc3/pdoc/commit/14cd51c1b7431cdec5c3e7510b8a0e3b66c2f7d4.patch + -> ${PN}-0.10.0-fix-deprecation-warnings.patch +" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/mako[${PYTHON_USEDEP}] + >=dev-python/markdown-3.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch" + "${FILESDIR}/${PN}-0.10.0-update-tests.patch" + "${DISTDIR}"/${PN}-0.10.0-fix-deprecation-warnings.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -i \ + -e "/setuptools_git/d" \ + -e "/setuptools_scm/d" \ + setup.py || die +} + +distutils_enable_tests unittest
