Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@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: Mon, 02 May 2022 10:18:31
Message-Id: 1651486699.1fba7d387fbeecca0fd20c3df542fcb8cb94969e.andrewammerlaan@gentoo
1 commit: 1fba7d387fbeecca0fd20c3df542fcb8cb94969e
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 10:15:29 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 10:18:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fba7d38
7
8 dev-python/mkdocs-git-revision-date-localized-plugin: add 1.0.1
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 .../Manifest | 1 +
13 ...git-revision-date-localized-plugin-1.0.1.ebuild | 58 ++++++++++++++++++++++
14 2 files changed, 59 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 c54c9fc1b9dc..e5ead20a4bc1 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,3 +1,4 @@
21 DIST mkdocs-git-revision-date-localized-plugin-0.11.1.tar.gz 369943 BLAKE2B 261813f3d63d6b1bfb021aab3f9db96f7977ac8f6bf6239158f1d8045e1eb5b21b89f2c4eb493634944b202334f59ce589797624137bfc643cda3ef52969bd73 SHA512 fb5e1c1b65f431585dc6a6887fc079a3181e73286697c331317a69f7748453af61abfb8fc58eb55203f09c9a70c752781dd834d03e13184ddb0bb761aa10e371
22 DIST mkdocs-git-revision-date-localized-plugin-0.12.1.tar.gz 370763 BLAKE2B 6b69b34a18288d042aa754bcb6f3c6a3b96de0016db1ef888d2b0fe09f479964e6d0473d8af700aec904befb79d5a56e775847c87cd06b1ffc90cfdbe6e73b18 SHA512 4368ae0341fa9e3af08f93cce883b03cc9bd3bef16dcec7314c7e439d6524726173ffb60bbc11bcdd9e3c9ef5f1fa7d24a1c01dc543241061c61a8b0f5044614
23 DIST mkdocs-git-revision-date-localized-plugin-1.0.0.tar.gz 375656 BLAKE2B 3dc850f219ca0396015c474d714412253b05075f5ad55fbfdcc4ed90468466e6c6735904517d598b66cf408c222e83ed35d176b1379a26a97b64d88bcbff06b6 SHA512 632f4e2d0ce8fc0f90707918526e49e2752ecc36c2623eb0df76d49476f6e4b347265166f5f1d6148475bb01bdb61a6337a3edf6ccba2cccb2c372a9aba70cac
24 +DIST mkdocs-git-revision-date-localized-plugin-1.0.1.tar.gz 375668 BLAKE2B 355b0fdced378305dd12c72d05186ef50fc1e5b7e5302c9c0887ced03329d598528367313e81d3c8a4658ed1bb2e940c9495c09c2e6e40a03cbc52833fbb13a5 SHA512 7f54ac18bb09ce1f396d593edb5e456476c18c68464dafc62e6b6e1f3aa89735319016925d2f2b8a4ff7aed03d8e02109da23f23a84d9ae0d138bbca278aafd5
25
26 diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.1.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.1.ebuild
27 new file mode 100644
28 index 000000000000..d39737874f73
29 --- /dev/null
30 +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-1.0.1.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517="setuptools"
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +DOCS_BUILDER="mkdocs"
41 +DOCS_DEPEND="
42 + dev-python/mkdocs-i18n
43 + dev-python/mkdocs-material
44 + dev-python/mkdocs-git-authors-plugin
45 + dev-python/mkdocs-git-revision-date-localized-plugin
46 +"
47 +
48 +inherit distutils-r1 docs
49 +
50 +DESCRIPTION="Display the localized date of the last git modification of a markdown file"
51 +HOMEPAGE="
52 + https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/
53 + https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/
54 +"
55 +SRC_URI="https://github.com/timvink/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~riscv ~x86"
60 +
61 +RDEPEND="
62 + >=dev-python/Babel-2.7.0[${PYTHON_USEDEP}]
63 + dev-python/GitPython[${PYTHON_USEDEP}]
64 + >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}]
65 +"
66 +BDEPEND="
67 + test? (
68 + dev-python/click[${PYTHON_USEDEP}]
69 + dev-python/mkdocs-material[${PYTHON_USEDEP}]
70 + dev-python/mkdocs-i18n[${PYTHON_USEDEP}]
71 + dev-vcs/git
72 + )
73 + doc? ( dev-vcs/git )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +python_prepare_all() {
79 + # mkdocs-git-revision-date-localized-plugin's tests need git repo
80 + if use test || use doc; then
81 + git init -q || die
82 + git config --global user.email "you@×××××××.com" || die
83 + git config --global user.name "Your Name" || die
84 + git add . || die
85 + git commit -qm 'init' || die
86 + fi
87 +
88 + distutils-r1_python_prepare_all
89 +}