Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mkdocs-git-revision-date-localized-plugin/
Date: Fri, 03 Mar 2023 05:53:21
Message-Id: 1677822783.ff857d6851a91ad678642f024fca004ad74d8ff3.mgorny@gentoo
1 commit: ff857d6851a91ad678642f024fca004ad74d8ff3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 05:00:18 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 05:53:03 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff857d68
7
8 dev-python/mkdocs-git-revision-date-localized-plugin: Bump to 1.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../Manifest | 1 +
13 ...git-revision-date-localized-plugin-1.2.0.ebuild | 63 ++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
17 index 80c05789b155..899e3d8835fc 100644
18 --- a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
19 +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest
20 @@ -1 +1,2 @@
21 DIST mkdocs-git-revision-date-localized-plugin-1.1.0.gh.tar.gz 375907 BLAKE2B d39f1d807616da95962cca6bdc5a4501163d008f0a8fcac5df2e7542bf8401d04362a38383558689f467c9249f2ad6dff636a8ebf4568aa920ea0078f90fb367 SHA512 f5f911cba9b9e3747c5628e4c947a87fa07c798f854b6ed8783b74c732cf29e4afdacb37e074a5d04672d90f96de560ab6b86cd3d826ce46226d73f48c54c27d
22 +DIST mkdocs-git-revision-date-localized-plugin-1.2.0.gh.tar.gz 378268 BLAKE2B ee4270e60a23b4c040de1b931c1d18f785d95b1947facd66d0b9180452dd30fee518fcdf24840b6523ee4944cf363ebbf9a27c93b09f45cc09daf277d4fd7085 SHA512 627c1b6c955f8c787ac01e9be5827648a8c9bbd1f9449c8a734f47fc83d28e3eba5faad142f69da12291c4ac3f728ae2c090e9b8e0a84b585557977a9fe04241
23
24 diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.2.0.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.2.0.ebuild
25 new file mode 100644
26 index 000000000000..fe90f4d520d0
27 --- /dev/null
28 +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.2.0.ebuild
29 @@ -0,0 +1,63 @@
30 +# Copyright 1999-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517="setuptools"
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +
38 +DOCS_BUILDER="mkdocs"
39 +DOCS_DEPEND="
40 + dev-python/regex
41 + dev-python/mkdocs-i18n
42 + dev-python/mkdocs-material
43 + dev-python/mkdocs-git-authors-plugin
44 + dev-python/mkdocs-git-revision-date-localized-plugin
45 +"
46 +
47 +inherit distutils-r1 docs
48 +
49 +DESCRIPTION="Display the localized date of the last git modification of a markdown file"
50 +HOMEPAGE="
51 + https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/
52 + https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/
53 +"
54 +SRC_URI="
55 + https://github.com/timvink/${PN}/archive/v${PV}.tar.gz
56 + -> ${P}.gh.tar.gz
57 +"
58 +
59 +LICENSE="MIT"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86"
62 +
63 +RDEPEND="
64 + >=dev-python/Babel-2.7.0[${PYTHON_USEDEP}]
65 + dev-python/GitPython[${PYTHON_USEDEP}]
66 + >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}]
67 + dev-python/pytz[${PYTHON_USEDEP}]
68 +"
69 +BDEPEND="
70 + test? (
71 + dev-python/click[${PYTHON_USEDEP}]
72 + dev-python/mkdocs-material[${PYTHON_USEDEP}]
73 + dev-python/mkdocs-i18n[${PYTHON_USEDEP}]
74 + dev-vcs/git
75 + )
76 + doc? ( dev-vcs/git )
77 +"
78 +
79 +distutils_enable_tests pytest
80 +
81 +python_prepare_all() {
82 + # mkdocs-git-revision-date-localized-plugin's tests need git repo
83 + if use test || use doc; then
84 + git init -q || die
85 + git config --global user.email "you@×××××××.com" || die
86 + git config --global user.name "Your Name" || die
87 + git add . || die
88 + git commit -qm 'init' || die
89 + fi
90 +
91 + distutils-r1_python_prepare_all
92 +}