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/wcmatch/
Date: Wed, 03 Nov 2021 06:43:16
Message-Id: 1635921778.42957501b336c5ee8a3d87c9419d92a39131a814.mgorny@gentoo
1 commit: 42957501b336c5ee8a3d87c9419d92a39131a814
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 3 06:28:16 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 3 06:42:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42957501
7
8 dev-python/wcmatch: Bump to 8.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/wcmatch/Manifest | 1 +
13 dev-python/wcmatch/wcmatch-8.3.ebuild | 57 +++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/wcmatch/Manifest b/dev-python/wcmatch/Manifest
17 index f72ef09386d..de2f81d5d20 100644
18 --- a/dev-python/wcmatch/Manifest
19 +++ b/dev-python/wcmatch/Manifest
20 @@ -1 +1,2 @@
21 DIST wcmatch-8.2.tar.gz 113537 BLAKE2B d1fe53f7d2394af31750c0b98451749201b1adbd8d00a734418afd8e208a9480b913059f78f62016be2fc2109813406c096f8ab60973a716b6ca275377551281 SHA512 d56d868ec0578ae59eb5f39ff17005faed13162141e3ced15c60d8de5f8e8b1a16eaf66e7c73cffdbd288b94db57843112624de8e5b588d26a5e46d4edb72168
22 +DIST wcmatch-8.3.tar.gz 116600 BLAKE2B 8576a546278a69ba46af262bc925370e6d8b1828975d54fe3fe1a2e39fc8456134c7f7986e1674883ca0f0298c223be7efc67c7296a29d9a4f1b64e42614ce17 SHA512 64cd84e69ceb6c5953f281711d026540ac198256cda3ca32c90d2acb01b18c93ceaebd3440b395c3e77fc7ec38f350821b0095518ab5c065e698cfe0f2df4c1b
23
24 diff --git a/dev-python/wcmatch/wcmatch-8.3.ebuild b/dev-python/wcmatch/wcmatch-8.3.ebuild
25 new file mode 100644
26 index 00000000000..61d6e0564f4
27 --- /dev/null
28 +++ b/dev-python/wcmatch/wcmatch-8.3.ebuild
29 @@ -0,0 +1,57 @@
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="
39 + ~dev-python/mkdocs_pymdownx_material_extras-1.0.7
40 + dev-python/mkdocs-material
41 + dev-python/mkdocs-git-revision-date-localized-plugin
42 + dev-python/mkdocs-minify-plugin
43 + dev-python/pyspelling
44 +"
45 +
46 +inherit distutils-r1 docs
47 +
48 +DESCRIPTION="Wildcard/glob file name matcher"
49 +HOMEPAGE="
50 + https://github.com/facelessuser/wcmatch/
51 + https://pypi.org/project/wcmatch/"
52 +SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~riscv ~x86"
57 +
58 +RDEPEND="
59 + >=dev-python/backrefs-4.1[${PYTHON_USEDEP}]
60 + >=dev-python/bracex-2.0[${PYTHON_USEDEP}]
61 +"
62 +
63 +BDEPEND="
64 + test? (
65 + dev-python/mock[${PYTHON_USEDEP}]
66 + dev-vcs/git
67 + )"
68 +
69 +distutils_enable_tests pytest
70 +
71 +python_prepare_all() {
72 + # tests require some files in homedir
73 + > "${HOME}"/test1.txt || die
74 + > "${HOME}"/test2.txt || die
75 +
76 + # mkdocs-git-revision-date-localized-plugin needs git repo
77 + if use doc; then
78 + git init || die
79 + git config --global user.email "you@×××××××.com" || die
80 + git config --global user.name "Your Name" || die
81 + git add . || die
82 + git commit -m 'init' || die
83 + fi
84 +
85 + distutils-r1_python_prepare_all
86 +}