1 |
commit: b71e1f9c096902d6212c5c9811b42f8809ec9f69 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 28 17:55:56 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 28 18:21:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71e1f9c |
7 |
|
8 |
dev-python/mkdocs: add 1.3.0 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/mkdocs/Manifest | 1 + |
13 |
dev-python/mkdocs/mkdocs-1.3.0.ebuild | 78 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 79 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/mkdocs/Manifest b/dev-python/mkdocs/Manifest |
17 |
index f427076fefe4..6b5df73196ca 100644 |
18 |
--- a/dev-python/mkdocs/Manifest |
19 |
+++ b/dev-python/mkdocs/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mkdocs-1.2.3.tar.gz 6919177 BLAKE2B 43ff118149a497dd366f7132487564be51ffeaff644a519c7bf9e52a3e3239e9696c21616e5d7494f7c4af8ee60ec77f27fd15e80f5c5c6c1b2db4cf1f672e44 SHA512 03385bc940df8a6b3668300f3752afe973b95f149bee58217ace82063aacb661dbd000a2a7a383c4804434473c3945cec3cb41d6608388350da3098c32709541 |
22 |
+DIST mkdocs-1.3.0.tar.gz 4085674 BLAKE2B e34605c2d1122ff86ed5cfb6134cdda67450e8f32d7628626ff4ac8c36c45b127312ad693efe35237b714adb9efd244f12f90cf8ecacf6009b75786db30ebb1b SHA512 d33d728eaff4e39106c1187cf04f579706ce28af364852c67706ab85f6b9ccdcd26ae84cd4d5ea7572e52fde1d1137eb3e424679dd4c8ef043c9637aac062270 |
23 |
|
24 |
diff --git a/dev-python/mkdocs/mkdocs-1.3.0.ebuild b/dev-python/mkdocs/mkdocs-1.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..46541abdf194 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/mkdocs/mkdocs-1.3.0.ebuild |
29 |
@@ -0,0 +1,78 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Project documentation with Markdown" |
40 |
+HOMEPAGE="https://www.mkdocs.org https://github.com/mkdocs/mkdocs" |
41 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="amd64 ~riscv x86" |
46 |
+ |
47 |
+IUSE="doc" |
48 |
+ |
49 |
+BDEPEND=" |
50 |
+ doc? ( |
51 |
+ $(python_gen_any_dep ' |
52 |
+ dev-python/mdx_gh_links[${PYTHON_USEDEP}] |
53 |
+ dev-python/mkdocs-redirects[${PYTHON_USEDEP}] |
54 |
+ ') |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ >=dev-python/Babel-2.9.0[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/click-3.3[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/jinja-2.10.2[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/markdown-3.2.1[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/watchdog-2.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/ghp-import-1.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/pyyaml_env_tag-0.1[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/importlib_metadata-3.10[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/packaging-20.5[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/mergedeep-1.3.4[${PYTHON_USEDEP}] |
70 |
+" |
71 |
+ |
72 |
+distutils_enable_tests nose |
73 |
+ |
74 |
+python_prepare_all() { |
75 |
+ # Tests fails if additional themes are installed |
76 |
+ sed -i -e 's:test_get_themes:_&:' \ |
77 |
+ mkdocs/tests/utils/utils_tests.py || die |
78 |
+ |
79 |
+ # Skip this network test, "does not appear to be an IPv4 or IPv6 address" |
80 |
+ sed -i -e 's/test_IP_normalization/_&/' \ |
81 |
+ mkdocs/tests/config/config_options_tests.py || die |
82 |
+ |
83 |
+ # livereload has been dropped in this release, this test is a remnant |
84 |
+ rm mkdocs/tests/livereload_tests.py || die |
85 |
+ |
86 |
+ # fix apparent typo in test (importing wrong thing) |
87 |
+ sed -i -e 's/from localization import/from mkdocs.localization import/g' \ |
88 |
+ mkdocs/tests/theme_tests.py || die |
89 |
+ |
90 |
+ # Does not work in emerge env |
91 |
+ sed -i -e 's/test_paths_localized_to_config/_&/' \ |
92 |
+ mkdocs/tests/config/config_options_tests.py |
93 |
+ |
94 |
+ distutils-r1_python_prepare_all |
95 |
+} |
96 |
+ |
97 |
+python_compile_all() { |
98 |
+ default |
99 |
+ if use doc; then |
100 |
+ # cannot just do mkdocs build, because that fails if |
101 |
+ # the package isn't already installed |
102 |
+ python -m mkdocs build || die "Failed to make docs" |
103 |
+ # Colliding files found by ecompress: |
104 |
+ rm site/sitemap.xml.gz || die |
105 |
+ HTML_DOCS=( "site/." ) |
106 |
+ fi |
107 |
+} |