Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/font-v/
Date: Mon, 27 Feb 2023 15:06:57
Message-Id: 1677451295.a68a969e8e5f40bb53760612a544a6b097ab3fc3.flow@gentoo
1 commit: a68a969e8e5f40bb53760612a544a6b097ab3fc3
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Feb 26 19:46:53 2023 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 26 22:41:35 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a68a969e
7
8 dev-python/font-v: enable py3.11
9
10 Closes: https://bugs.gentoo.org/848774
11 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
12
13 dev-python/font-v/font-v-2.1.0-r1.ebuild | 45 ++++++++++++++++++++++++++++++++
14 dev-python/font-v/font-v-2.1.0.ebuild | 41 -----------------------------
15 2 files changed, 45 insertions(+), 41 deletions(-)
16
17 diff --git a/dev-python/font-v/font-v-2.1.0-r1.ebuild b/dev-python/font-v/font-v-2.1.0-r1.ebuild
18 new file mode 100644
19 index 000000000..2a70cb0b8
20 --- /dev/null
21 +++ b/dev-python/font-v/font-v-2.1.0-r1.ebuild
22 @@ -0,0 +1,45 @@
23 +# Copyright 1999-2023 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +PYTHON_COMPAT=( python3_{9..11} )
29 +DISTUTILS_USE_PEP517=setuptools
30 +inherit distutils-r1 edo
31 +
32 +DESCRIPTION="Font version reporting and modification tool"
33 +HOMEPAGE="https://github.com/source-foundry/font-v"
34 +SRC_URI="https://github.com/source-foundry/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
35 +S="${WORKDIR}/${PN}"
36 +
37 +KEYWORDS="~amd64"
38 +LICENSE="MIT"
39 +SLOT="0"
40 +
41 +RDEPEND="
42 + dev-python/fonttools[${PYTHON_USEDEP}]
43 + dev-python/GitPython[${PYTHON_USEDEP}]
44 +"
45 +BDEPEND="test? ( dev-vcs/git )"
46 +
47 +distutils_enable_tests pytest
48 +
49 +distutils_enable_sphinx docs \
50 + dev-python/sphinx-rtd-theme
51 +
52 +src_unpack() {
53 + default
54 +
55 + # tests expect default git clone
56 + mv "${WORKDIR}"/{${P},${PN}} || die
57 +}
58 +
59 +src_test() {
60 + edo git init
61 + edo git config --global user.email "larry@×××××××.com"
62 + edo git config --global user.name "Larry the Cow"
63 + edo git add .
64 + edo git commit -m "init"
65 +
66 + distutils-r1_src_test
67 +}
68
69 diff --git a/dev-python/font-v/font-v-2.1.0.ebuild b/dev-python/font-v/font-v-2.1.0.ebuild
70 deleted file mode 100644
71 index 069561113..000000000
72 --- a/dev-python/font-v/font-v-2.1.0.ebuild
73 +++ /dev/null
74 @@ -1,41 +0,0 @@
75 -# Copyright 1999-2022 Gentoo Authors
76 -# Distributed under the terms of the GNU General Public License v2
77 -
78 -EAPI=8
79 -
80 -PYTHON_COMPAT=( python3_{8..10} )
81 -
82 -inherit distutils-r1
83 -
84 -DESCRIPTION="Font version string reporting and modification library"
85 -HOMEPAGE="https://github.com/source-foundry/font-v"
86 -SRC_URI="https://github.com/source-foundry/font-v/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
87 -
88 -KEYWORDS="~amd64"
89 -LICENSE="MIT"
90 -SLOT="0"
91 -
92 -RDEPEND="
93 - dev-python/fonttools[${PYTHON_USEDEP}]
94 - dev-python/GitPython[${PYTHON_USEDEP}]
95 -"
96 -DEPEND="${RDEPEND}"
97 -BDEPEND="test? ( dev-vcs/git )"
98 -
99 -distutils_enable_tests --install pytest
100 -distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
101 -
102 -src_test() {
103 - #it want a git repo
104 - git init || die
105 - git config --global user.email "you@×××××××.com" || die
106 - git config --global user.name "Your Name" || die
107 - git add . || die
108 - git commit -m 'init' || die
109 -
110 - #pure madness
111 - #https://github.com/source-foundry/font-v/blob/e6746e4a045c99e56af661918c96259b1f444ed4/tests/test_utilities.py#L34
112 - sed -e "s|\"font-v\"|\"${PWD##*/}\"|g" -i "tests/test_utilities.py" || die
113 -
114 - python_foreach_impl python_test
115 -}