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: Tue, 31 May 2022 06:18:53
Message-Id: 1653977920.5f46cda902df89d0f0f68c944638b8437eb52260.mgorny@gentoo
1 commit: 5f46cda902df89d0f0f68c944638b8437eb52260
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 05:47:43 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 06:18:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f46cda9
7
8 dev-python/wcmatch: Bump to 8.4
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.4.ebuild | 61 +++++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-python/wcmatch/Manifest b/dev-python/wcmatch/Manifest
17 index 87219ce1e621..6500eaa4c51c 100644
18 --- a/dev-python/wcmatch/Manifest
19 +++ b/dev-python/wcmatch/Manifest
20 @@ -1 +1,2 @@
21 DIST wcmatch-8.3.tar.gz 116600 BLAKE2B 8576a546278a69ba46af262bc925370e6d8b1828975d54fe3fe1a2e39fc8456134c7f7986e1674883ca0f0298c223be7efc67c7296a29d9a4f1b64e42614ce17 SHA512 64cd84e69ceb6c5953f281711d026540ac198256cda3ca32c90d2acb01b18c93ceaebd3440b395c3e77fc7ec38f350821b0095518ab5c065e698cfe0f2df4c1b
22 +DIST wcmatch-8.4.gh.tar.gz 116596 BLAKE2B cdfbc243fa62f4854490510a563163f99dac09eed16248fa7a72d0a2a7b96484fab4edf3ba497e96a46dca1f734b9c1b098da4d71784775f51b48fcfa5b8a24c SHA512 92478a769be129f9997ef75a384b9978d0647bbd7f2212aa058f1438e698a0a77d069871daf20889455f6e9bb73266d4e312f29f61c704a708fa48fa565d7614
23
24 diff --git a/dev-python/wcmatch/wcmatch-8.4.ebuild b/dev-python/wcmatch/wcmatch-8.4.ebuild
25 new file mode 100644
26 index 000000000000..c5bddee62f3a
27 --- /dev/null
28 +++ b/dev-python/wcmatch/wcmatch-8.4.ebuild
29 @@ -0,0 +1,61 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..11} )
36 +DISTUTILS_USE_PEP517=hatchling
37 +
38 +DOCS_BUILDER="mkdocs"
39 +DOCS_DEPEND="
40 + >=dev-python/mkdocs_pymdownx_material_extras-2.0
41 + dev-python/mkdocs-material
42 + dev-python/mkdocs-git-revision-date-localized-plugin
43 + dev-python/mkdocs-minify-plugin
44 + dev-python/pyspelling
45 +"
46 +
47 +inherit distutils-r1 docs
48 +
49 +DESCRIPTION="Wildcard/glob file name matcher"
50 +HOMEPAGE="
51 + https://github.com/facelessuser/wcmatch/
52 + https://pypi.org/project/wcmatch/
53 +"
54 +SRC_URI="
55 + https://github.com/facelessuser/wcmatch/archive/${PV}.tar.gz
56 + -> ${P}.gh.tar.gz
57 +"
58 +
59 +LICENSE="MIT"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~riscv ~x86"
62 +
63 +RDEPEND="
64 + >=dev-python/bracex-2.1.1[${PYTHON_USEDEP}]
65 +"
66 +
67 +BDEPEND="
68 + test? (
69 + dev-vcs/git
70 + )
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +python_prepare_all() {
76 + # tests require some files in homedir
77 + > "${HOME}"/test1.txt || die
78 + > "${HOME}"/test2.txt || die
79 +
80 + # mkdocs-git-revision-date-localized-plugin needs git repo
81 + if use doc; then
82 + git init || die
83 + git config --global user.email "you@×××××××.com" || die
84 + git config --global user.name "Your Name" || die
85 + git add . || die
86 + git commit -m 'init' || die
87 + fi
88 +
89 + distutils-r1_python_prepare_all
90 +}