diff options
Diffstat (limited to 'dev-python/mkdocs')
-rw-r--r-- | dev-python/mkdocs/Manifest | 2 | ||||
-rw-r--r-- | dev-python/mkdocs/mkdocs-1.3.1.ebuild | 83 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/mkdocs/Manifest b/dev-python/mkdocs/Manifest index 1bf6fb6ac044..42acc89c699e 100644 --- a/dev-python/mkdocs/Manifest +++ b/dev-python/mkdocs/Manifest @@ -1,3 +1,5 @@ DIST mkdocs-1.3.0.tar.gz 4085674 BLAKE2B e34605c2d1122ff86ed5cfb6134cdda67450e8f32d7628626ff4ac8c36c45b127312ad693efe35237b714adb9efd244f12f90cf8ecacf6009b75786db30ebb1b SHA512 d33d728eaff4e39106c1187cf04f579706ce28af364852c67706ab85f6b9ccdcd26ae84cd4d5ea7572e52fde1d1137eb3e424679dd4c8ef043c9637aac062270 +DIST mkdocs-1.3.1.gh.tar.gz 4088396 BLAKE2B b54d0090318fef205d84c4e914f916f91309bdfe6857cd2592fea24e6fb68baaa2eede6dc768681c85ae37adf794546a6ac82dd34d300f421969991f9a796cae SHA512 6eb041f9d0a628eb3a2e6585fde0959f5ef35501edf2c69db640059d98523e2cfa723bc49aedfac1dea4804dcf3c51791e4a052b77ef97bd85a0f4ace2a4d9ad EBUILD mkdocs-1.3.0-r1.ebuild 2288 BLAKE2B 8a7422e0e7ee24f4af1a3a789cbb07c6d69b396d568d803efe932098af4bd74315e5701b1c8347d60fa050362bd580509f3c21d6861c735ca31b87c281de382f SHA512 82903c70c5aba1a350deebde695dbe48a2e8bbd3eeb12cb53ca30508edb412e899e34d07e82b1d38fe898384a009b3a7eb0ee963d5b4b6435b0768c4a082aa2a +EBUILD mkdocs-1.3.1.ebuild 2336 BLAKE2B 2dff7e1ad7fdb261c848e4b1e58e1f7533a592df711d8613d81f668b75771b82e593430ff9ed0a2e8dfb954a70bfd29923d5074ddcb48b083074f31309806c69 SHA512 9e2b3fa2edd3a0cc6b4e481032b2ed6d72f190c7c97d5b22f957b155a97c548cba3fd9b03465a29098279bc0885e9a8523e48d29a98da30b0633ca11db282081 MISC metadata.xml 405 BLAKE2B de9dd789fea13afc3622c6961674d046806db1025e9d0475c0ff8bfe1c6d91a741b6112ccaafb46cb19b9dac971c50095ac89b13353c7c0e1571961a19a90387 SHA512 7a19785dbacb67aa5679d6e7c9617b52b25f724430fa3471b645e31df04157efc4060dbd4fccbfc37b5709138164d8ec89c2e94cddfd727b3ee4c705ddd38dcf diff --git a/dev-python/mkdocs/mkdocs-1.3.1.ebuild b/dev-python/mkdocs/mkdocs-1.3.1.ebuild new file mode 100644 index 000000000000..02a4adfa756e --- /dev/null +++ b/dev-python/mkdocs/mkdocs-1.3.1.ebuild @@ -0,0 +1,83 @@ +# 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}.gh.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/markdown-3.4[${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-4.3[${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/* +} |