Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mkdocs-git-authors-plugin/
Date: Sat, 25 Dec 2021 17:27:25
Message-Id: 1640453132.2667b179a6b8b5ad33faec63a7dfadf71c50c238.arthurzam@gentoo
1 commit: 2667b179a6b8b5ad33faec63a7dfadf71c50c238
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 25 17:25:32 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 17:25:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2667b179
7
8 dev-python/mkdocs-git-authors-plugin: add 0.6.3
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/mkdocs-git-authors-plugin/Manifest | 1 +
13 .../mkdocs-git-authors-plugin-0.6.3.ebuild | 51 ++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/mkdocs-git-authors-plugin/Manifest b/dev-python/mkdocs-git-authors-plugin/Manifest
17 index 793f6d69bbcf..9a3ffcb3f1c9 100644
18 --- a/dev-python/mkdocs-git-authors-plugin/Manifest
19 +++ b/dev-python/mkdocs-git-authors-plugin/Manifest
20 @@ -1 +1,2 @@
21 DIST mkdocs-git-authors-plugin-0.6.2.tar.gz 27623 BLAKE2B 7b0dd3b865b067b63e467fa75018a92cea8cfeabdeb66791664ea143ebecbb072110698f1366f917f390dd29c33794c7d2cc03e03bb84f8913b572d667e77b9d SHA512 75e4a4e6f3ca443257b5f61f5f0d9784cb4bb28a5a03412cde5c226da697117a29c2f4a3d1cac2aa362421f244fd56ea8580a923414a8e096bedc4502afcb5b0
22 +DIST mkdocs-git-authors-plugin-0.6.3.tar.gz 27644 BLAKE2B a8778baeb504db5d0571aa20603e8d60e04d8c315c096b5b3f89bb6a3b433a11b04a510d7f80ae86a9bb54259c6a2b0f2e1cb5cdade4220d4dfa1f06612e4aea SHA512 ab1f6984da002b72af2a53131222a3ff7b6b50a7a57f5d1986bca9e7d34365eaa5bfdf7d920e4dbc555e332587607480eef4134d847faf866a3b4750db3747eb
23
24 diff --git a/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.3.ebuild b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.3.ebuild
25 new file mode 100644
26 index 000000000000..5e3f4cc0b40d
27 --- /dev/null
28 +++ b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.6.3.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2021 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 +
37 +DOCS_BUILDER="mkdocs"
38 +DOCS_DEPEND="dev-python/mkdocs-material"
39 +
40 +inherit distutils-r1 docs
41 +
42 +DESCRIPTION="Mkdocs plugin to display git authors of a page"
43 +HOMEPAGE="
44 + https://github.com/timvink/mkdocs-git-authors-plugin/
45 + https://pypi.org/project/mkdocs-git-authors-plugin/
46 +"
47 +SRC_URI="https://github.com/timvink/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~riscv ~x86"
52 +
53 +RDEPEND="
54 + dev-python/GitPython[${PYTHON_USEDEP}]
55 + >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + test? (
59 + dev-python/click[${PYTHON_USEDEP}]
60 + dev-python/mkdocs-material[${PYTHON_USEDEP}]
61 + dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}]
62 + dev-vcs/git
63 + )
64 + doc? ( dev-vcs/git )
65 +"
66 +
67 +distutils_enable_tests --install pytest
68 +
69 +python_prepare_all() {
70 + # mkdocs-git-authors tests need git repo
71 + if use test || use doc; then
72 + git init -q || die
73 + git config --global user.email "you@×××××××.com" || die
74 + git config --global user.name "Your Name" || die
75 + git add . || die
76 + git commit -qm 'init' || die
77 + fi
78 +
79 + distutils-r1_python_prepare_all
80 +}