From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- dev-python/mkdocs/Manifest | 2 +- dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild | 82 ++++++++++++++++++++++++++++++++ dev-python/mkdocs/mkdocs-1.3.0.ebuild | 78 ------------------------------ 3 files changed, 83 insertions(+), 79 deletions(-) create mode 100644 dev-python/mkdocs/mkdocs-1.3.0-r1.ebuild delete mode 100644 dev-python/mkdocs/mkdocs-1.3.0.ebuild (limited to 'dev-python/mkdocs') diff --git a/dev-python/mkdocs/Manifest b/dev-python/mkdocs/Manifest index 0e4dfa2f2fc2..1bf6fb6ac044 100644 --- a/dev-python/mkdocs/Manifest +++ b/dev-python/mkdocs/Manifest @@ -1,3 +1,3 @@ DIST mkdocs-1.3.0.tar.gz 4085674 BLAKE2B e34605c2d1122ff86ed5cfb6134cdda67450e8f32d7628626ff4ac8c36c45b127312ad693efe35237b714adb9efd244f12f90cf8ecacf6009b75786db30ebb1b SHA512 d33d728eaff4e39106c1187cf04f579706ce28af364852c67706ab85f6b9ccdcd26ae84cd4d5ea7572e52fde1d1137eb3e424679dd4c8ef043c9637aac062270 -EBUILD mkdocs-1.3.0.ebuild 2243 BLAKE2B 46ea225d6b41d485e2bce065e084fe951e31ea52639dbb2ea1488142cd677524f64ba4aa31d9a24121cc22f6ec4fa335389cdba40b62229fff749f6d5bdeef84 SHA512 f9e684ecb8377e2271c316ba9c7db28d19ccf96e5fd6b91e58ba2ffbc0a2e652f719e745847bd231c3775d18678ddac0aa34493d2e6c23f1e755cec3c5d3c57b +EBUILD mkdocs-1.3.0-r1.ebuild 2288 BLAKE2B 8a7422e0e7ee24f4af1a3a789cbb07c6d69b396d568d803efe932098af4bd74315e5701b1c8347d60fa050362bd580509f3c21d6861c735ca31b87c281de382f SHA512 82903c70c5aba1a350deebde695dbe48a2e8bbd3eeb12cb53ca30508edb412e899e34d07e82b1d38fe898384a009b3a7eb0ee963d5b4b6435b0768c4a082aa2a MISC metadata.xml 405 BLAKE2B de9dd789fea13afc3622c6961674d046806db1025e9d0475c0ff8bfe1c6d91a741b6112ccaafb46cb19b9dac971c50095ac89b13353c7c0e1571961a19a90387 SHA512 7a19785dbacb67aa5679d6e7c9617b52b25f724430fa3471b645e31df04157efc4060dbd4fccbfc37b5709138164d8ec89c2e94cddfd727b3ee4c705ddd38dcf 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..41fd1b9bcc69 --- /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/* +} diff --git a/dev-python/mkdocs/mkdocs-1.3.0.ebuild b/dev-python/mkdocs/mkdocs-1.3.0.ebuild deleted file mode 100644 index 46541abdf194..000000000000 --- a/dev-python/mkdocs/mkdocs-1.3.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -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 nose - -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 -} -- cgit v1.2.3