1 |
commit: b27bee1c248cd1d475d9d23fd35f4af3c023785e |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 7 10:37:02 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 7 10:37:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b27bee1c |
7 |
|
8 |
dev-python/mkdocs-git-authors-plugin: new dep of mkdocs-git- |
9 |
|
10 |
revision-date-localized-plugin |
11 |
|
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
14 |
|
15 |
dev-python/mkdocs-git-authors-plugin/Manifest | 1 + |
16 |
dev-python/mkdocs-git-authors-plugin/metadata.xml | 17 ++++++++ |
17 |
.../mkdocs-git-authors-plugin-0.6.2.ebuild | 51 ++++++++++++++++++++++ |
18 |
3 files changed, 69 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/mkdocs-git-authors-plugin/Manifest b/dev-python/mkdocs-git-authors-plugin/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..793f6d69bbcf |
23 |
--- /dev/null |
24 |
+++ b/dev-python/mkdocs-git-authors-plugin/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST mkdocs-git-authors-plugin-0.6.2.tar.gz 27623 BLAKE2B 7b0dd3b865b067b63e467fa75018a92cea8cfeabdeb66791664ea143ebecbb072110698f1366f917f390dd29c33794c7d2cc03e03bb84f8913b572d667e77b9d SHA512 75e4a4e6f3ca443257b5f61f5f0d9784cb4bb28a5a03412cde5c226da697117a29c2f4a3d1cac2aa362421f244fd56ea8580a923414a8e096bedc4502afcb5b0 |
27 |
|
28 |
diff --git a/dev-python/mkdocs-git-authors-plugin/metadata.xml b/dev-python/mkdocs-git-authors-plugin/metadata.xml |
29 |
new file mode 100644 |
30 |
index 000000000000..1ac0758baa56 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/mkdocs-git-authors-plugin/metadata.xml |
33 |
@@ -0,0 +1,17 @@ |
34 |
+<?xml version="1.0" encoding="UTF-8"?> |
35 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
36 |
+<pkgmetadata> |
37 |
+ <maintainer type="person"> |
38 |
+ <email>andrewammerlaan@g.o</email> |
39 |
+ <name>Andrew Ammerlaan</name> |
40 |
+ </maintainer> |
41 |
+ <maintainer type="project"> |
42 |
+ <email>python@g.o</email> |
43 |
+ <name>Python</name> |
44 |
+ </maintainer> |
45 |
+ <upstream> |
46 |
+ <remote-id type="github">timvink/mkdocs-git-authors-plugin</remote-id> |
47 |
+ <remote-id type="pypi">mkdocs-git-authors-plugin</remote-id> |
48 |
+ </upstream> |
49 |
+ <stabilize-allarches/> |
50 |
+</pkgmetadata> |
51 |
|
52 |
diff --git a/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.2.ebuild b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.2.ebuild |
53 |
new file mode 100644 |
54 |
index 000000000000..f267258de4cb |
55 |
--- /dev/null |
56 |
+++ b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.2.ebuild |
57 |
@@ -0,0 +1,51 @@ |
58 |
+# Copyright 1999-2021 Gentoo Authors |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=8 |
62 |
+ |
63 |
+PYTHON_COMPAT=( python3_{8..10} ) |
64 |
+ |
65 |
+DOCS_BUILDER="mkdocs" |
66 |
+DOCS_DEPEND="dev-python/mkdocs-material" |
67 |
+ |
68 |
+inherit distutils-r1 docs |
69 |
+ |
70 |
+DESCRIPTION="Mkdocs plugin to display git authors of a page" |
71 |
+HOMEPAGE=" |
72 |
+ https://github.com/timvink/mkdocs-git-authors-plugin/ |
73 |
+ https://pypi.org/project/mkdocs-git-authors-plugin/ |
74 |
+" |
75 |
+SRC_URI="https://github.com/timvink/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
76 |
+ |
77 |
+LICENSE="MIT" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~amd64" |
80 |
+ |
81 |
+RDEPEND=" |
82 |
+ dev-python/GitPython[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}] |
84 |
+" |
85 |
+BDEPEND=" |
86 |
+ test? ( |
87 |
+ dev-python/click[${PYTHON_USEDEP}] |
88 |
+ dev-python/mkdocs-material[${PYTHON_USEDEP}] |
89 |
+ dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}] |
90 |
+ dev-vcs/git |
91 |
+ ) |
92 |
+ doc? ( dev-vcs/git ) |
93 |
+" |
94 |
+ |
95 |
+distutils_enable_tests --install pytest |
96 |
+ |
97 |
+python_prepare_all() { |
98 |
+ # mkdocs-git-authors tests need git repo |
99 |
+ if use test || use doc; then |
100 |
+ git init -q || die |
101 |
+ git config --global user.email "you@×××××××.com" || die |
102 |
+ git config --global user.name "Your Name" || die |
103 |
+ git add . || die |
104 |
+ git commit -qm 'init' || die |
105 |
+ fi |
106 |
+ |
107 |
+ distutils-r1_python_prepare_all |
108 |
+} |