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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B3928158090 for ; Tue, 24 May 2022 13:02:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC8D2E0870; Tue, 24 May 2022 13:02:53 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0F95E086D for ; Tue, 24 May 2022 13:02:52 +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 827CB341CE6 for ; Tue, 24 May 2022 13:02:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5A64471 for ; Tue, 24 May 2022 13:02:48 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1653397343.21d5c5f28606a72c5b8d84f26b63473259e50de2.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mkdocs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild X-VCS-Directories: dev-python/mkdocs/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 21d5c5f28606a72c5b8d84f26b63473259e50de2 X-VCS-Branch: master Date: Tue, 24 May 2022 13:02:48 +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: 4161e3c2-1d2f-4c5b-8c8d-994f19f14c85 X-Archives-Hash: c72547dd94054606711ad53fac1e2a50 commit: 21d5c5f28606a72c5b8d84f26b63473259e50de2 Author: Andrew Ammerlaan gentoo org> AuthorDate: Tue May 24 12:02:40 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue May 24 13:02:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21d5c5f2 dev-python/mkdocs: enable py3.11, nose --> pytest Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild | 82 ++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild b/dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild new file mode 100644 index 000000000000..07d01f86a1a2 --- /dev/null +++ b/dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Project documentation with Markdown" +HOMEPAGE="https://www.mkdocs.org https://github.com/mkdocs/mkdocs" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +IUSE="doc" + +BDEPEND=" + doc? ( + $(python_gen_any_dep ' + dev-python/mdx_gh_links[${PYTHON_USEDEP}] + dev-python/mkdocs-redirects[${PYTHON_USEDEP}] + ') + ) +" + +RDEPEND=" + >=dev-python/Babel-2.9.0[${PYTHON_USEDEP}] + >=dev-python/click-3.3[${PYTHON_USEDEP}] + >=dev-python/jinja-2.10.2[${PYTHON_USEDEP}] + >=dev-python/markdown-3.2.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] + >=dev-python/watchdog-2.0[${PYTHON_USEDEP}] + >=dev-python/ghp-import-1.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml_env_tag-0.1[${PYTHON_USEDEP}] + >=dev-python/importlib_metadata-3.10[${PYTHON_USEDEP}] + >=dev-python/packaging-20.5[${PYTHON_USEDEP}] + >=dev-python/mergedeep-1.3.4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Tests fails if additional themes are installed + sed -i -e 's:test_get_themes:_&:' \ + mkdocs/tests/utils/utils_tests.py || die + + # Skip this network test, "does not appear to be an IPv4 or IPv6 address" + sed -i -e 's/test_IP_normalization/_&/' \ + mkdocs/tests/config/config_options_tests.py || die + + # livereload has been dropped in this release, this test is a remnant + rm mkdocs/tests/livereload_tests.py || die + + # fix apparent typo in test (importing wrong thing) + sed -i -e 's/from localization import/from mkdocs.localization import/g' \ + mkdocs/tests/theme_tests.py || die + + # Does not work in emerge env + sed -i -e 's/test_paths_localized_to_config/_&/' \ + mkdocs/tests/config/config_options_tests.py + + distutils-r1_python_prepare_all +} + +python_compile_all() { + default + if use doc; then + # cannot just do mkdocs build, because that fails if + # the package isn't already installed + python -m mkdocs build || die "Failed to make docs" + # Colliding files found by ecompress: + rm site/sitemap.xml.gz || die + HTML_DOCS=( "site/." ) + fi +} + +python_test() { + epytest mkdocs/tests/* +}