From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C0C541382C5 for ; Fri, 11 Jun 2021 14:05:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A45ADE0885; Fri, 11 Jun 2021 14:05:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D05FE0885 for ; Fri, 11 Jun 2021 14:05:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAF13335D6A for ; Fri, 11 Jun 2021 14:05:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 265147A1 for ; Fri, 11 Jun 2021 14:05:19 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1623419614.11364a081bc013d061ca2497e30491eeb835c659.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mkdocs-git-revision-date-localized-plugin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mkdocs-git-revision-date-localized-plugin/Manifest dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.9.2.ebuild X-VCS-Directories: dev-python/mkdocs-git-revision-date-localized-plugin/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 11364a081bc013d061ca2497e30491eeb835c659 X-VCS-Branch: master Date: Fri, 11 Jun 2021 14:05:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3ecf054d-fdeb-4d18-80e8-60e6c7aa863f X-Archives-Hash: dc619edb5fb33591cfd64f078cbd68a8 commit: 11364a081bc013d061ca2497e30491eeb835c659 Author: Andrew Ammerlaan gentoo org> AuthorDate: Fri Jun 11 13:53:34 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Fri Jun 11 13:53:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11364a08 dev-python/mkdocs-git-revision-date-localized-plugin: add version 0.9.2 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan gentoo.org> .../Manifest | 1 + ...git-revision-date-localized-plugin-0.9.2.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest index a379f1b932f..479cefa6b59 100644 --- a/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/Manifest @@ -1,2 +1,3 @@ DIST mkdocs-git-revision-date-localized-plugin-0.8.tar.gz 364352 BLAKE2B cfd1709b5c9e1f99ca1a2d8d194634afde6d57aecaca1d2cb70edc21c28d0b210c3497a4214d6a95592bc5a7aad3b88d96b275427f3218aa198ab7b3ae8f364a SHA512 84f19aa13189b74f18f98433939935052f1d757f66972d4f1cc1bfd14b614f8fd57b0ac0dcf41fcb678eb8dddba93ddc78dc776d6a81977d096920128d31f58e +DIST mkdocs-git-revision-date-localized-plugin-0.9.2.tar.gz 367301 BLAKE2B ac4d69117dea856a209d144e452cf408ee3d111eaa8a9825602b9f8d604a79143e96a51e67b74e430eecc6ee33335161e409149220a8b216f3b47f22e7a49f12 SHA512 11714323a6e300d0d8d05198f617019158dc48ba43e8a685f52702da7f52558f1358dfce294dcd421ba9d59131c17e4d6ea6ff483397055dee62dffb76032d4c DIST mkdocs-git-revision-date-localized-plugin-0.9.tar.gz 367850 BLAKE2B 0bf02b9de2b9ee8c4ae36548ffab85a9c880fc89dd5a4f39961093e36fc0b87b53dce8269400c804fed67f5a3a3a2ec45e6486ec80706be0651b9ceefe7de6af SHA512 488cd20e7ce8cd8df4c277f3626b8d628ce58090791a1b7e36efbdcacf6bf434bd4bc3e73f0402fdc8cb60767e6d63fac56a56b0dfd4728d6a49438caf5ad3d2 diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.9.2.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.9.2.ebuild new file mode 100644 index 00000000000..55060a07791 --- /dev/null +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.9.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +DOCS_BUILDER="mkdocs" +DOCS_DEPEND="dev-python/mkdocs-material" + +inherit distutils-r1 docs + +DESCRIPTION="Display the localized date of the last git modification of a markdown file" +HOMEPAGE=" + https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/ + https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/ +" +SRC_URI="https://github.com/timvink/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/Babel-2.7.0[${PYTHON_USEDEP}] + dev-python/GitPython[${PYTHON_USEDEP}] + >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/click[${PYTHON_USEDEP}] + dev-python/mkdocs-material[${PYTHON_USEDEP}] + dev-vcs/git + ) + doc? ( dev-vcs/git ) +" + +distutils_enable_tests --install pytest + +python_prepare_all() { + # mkdocs-git-revision-date-localized-plugin's tests need git repo + if use test || use doc; then + git init -q || die + git config --global user.email "you@example.com" || die + git config --global user.name "Your Name" || die + git add . || die + git commit -qm 'init' || die + fi + + # The release tarball is missing some required file + # FileNotFoundError: [Errno 2] No such file or directory: + rm tests/test_builds.py || die + + distutils-r1_python_prepare_all +}