1 |
commit: 29671e13c2b2a8c498e8062da02383f69e2ffe78 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 06:24:11 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 06:30:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29671e13 |
7 |
|
8 |
dev-util/wstool: enable py3.9, py3.10, cleanup |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832247 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-util/wstool/wstool-0.1.18.ebuild | 43 ++++++++++++++---------------------- |
14 |
dev-util/wstool/wstool-9999.ebuild | 43 ++++++++++++++---------------------- |
15 |
2 files changed, 34 insertions(+), 52 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/wstool/wstool-0.1.18.ebuild b/dev-util/wstool/wstool-0.1.18.ebuild |
18 |
index 48cc34f6d138..643dad95a575 100644 |
19 |
--- a/dev-util/wstool/wstool-0.1.18.ebuild |
20 |
+++ b/dev-util/wstool/wstool-0.1.18.ebuild |
21 |
@@ -1,21 +1,18 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
-PYTHON_COMPAT=( python{3_7,3_8} ) |
28 |
|
29 |
-SCM="" |
30 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
31 |
- SCM="git-r3" |
32 |
- EGIT_REPO_URI="https://github.com/vcstools/wstool" |
33 |
-fi |
34 |
- |
35 |
-inherit ${SCM} distutils-r1 |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+DISTUTILS_IN_SOURCE_BUILD="yes" |
38 |
+inherit distutils-r1 |
39 |
|
40 |
DESCRIPTION="Commands to manage several local SCM repositories for ROS" |
41 |
HOMEPAGE="https://wiki.ros.org/wstool" |
42 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
43 |
- SRC_URI="" |
44 |
+ |
45 |
+if [[ ${PV} == 9999* ]] ; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://github.com/vcstools/wstool" |
48 |
else |
49 |
SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz |
50 |
https://github.com/vcstools/wstool/archive/${PV}.tar.gz -> ${P}.tar.gz |
51 |
@@ -25,38 +22,32 @@ fi |
52 |
|
53 |
LICENSE="BSD" |
54 |
SLOT="0" |
55 |
-IUSE="test" |
56 |
-RESTRICT="!test? ( test )" |
57 |
|
58 |
RDEPEND=" |
59 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
60 |
>=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}] |
61 |
" |
62 |
-DEPEND="${RDEPEND} |
63 |
+BDEPEND="${RDEPEND} |
64 |
+ dev-python/sphinx |
65 |
test? ( |
66 |
- dev-python/nose[${PYTHON_USEDEP}] |
67 |
- dev-python/coverage[${PYTHON_USEDEP}] |
68 |
dev-vcs/git |
69 |
dev-vcs/bzr |
70 |
dev-vcs/mercurial |
71 |
dev-vcs/subversion |
72 |
) |
73 |
" |
74 |
-BDEPEND=" |
75 |
- dev-python/sphinx |
76 |
-" |
77 |
|
78 |
-DISTUTILS_IN_SOURCE_BUILD="yes" |
79 |
+distutils_enable_tests nose |
80 |
|
81 |
-python_test() { |
82 |
+src_test() { |
83 |
# From travis.yml |
84 |
# Set git config to silence some stuff in the tests |
85 |
- git config --global user.email "foo@×××××××.com" |
86 |
- git config --global user.name "Foo Bar" |
87 |
+ git config --global user.email "foo@×××××××.com" || die |
88 |
+ git config --global user.name "Foo Bar" || die |
89 |
# Set the hg user |
90 |
- echo -e "[ui]\nusername = Your Name <your@××××.com>" >> ~/.hgrc |
91 |
+ echo -e "[ui]\nusername = Your Name <your@××××.com>" >> ~/.hgrc || die |
92 |
# Set the bzr user |
93 |
- bzr whoami "Your Name <name@×××××××.com>" |
94 |
+ bzr whoami "Your Name <name@×××××××.com>" || die |
95 |
# command to run tests |
96 |
- nosetests --with-coverage --cover-package=wstool || die |
97 |
+ distutils-r1_src_test |
98 |
} |
99 |
|
100 |
diff --git a/dev-util/wstool/wstool-9999.ebuild b/dev-util/wstool/wstool-9999.ebuild |
101 |
index 48cc34f6d138..643dad95a575 100644 |
102 |
--- a/dev-util/wstool/wstool-9999.ebuild |
103 |
+++ b/dev-util/wstool/wstool-9999.ebuild |
104 |
@@ -1,21 +1,18 @@ |
105 |
-# Copyright 1999-2021 Gentoo Authors |
106 |
+# Copyright 1999-2022 Gentoo Authors |
107 |
# Distributed under the terms of the GNU General Public License v2 |
108 |
|
109 |
EAPI=7 |
110 |
-PYTHON_COMPAT=( python{3_7,3_8} ) |
111 |
|
112 |
-SCM="" |
113 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
114 |
- SCM="git-r3" |
115 |
- EGIT_REPO_URI="https://github.com/vcstools/wstool" |
116 |
-fi |
117 |
- |
118 |
-inherit ${SCM} distutils-r1 |
119 |
+PYTHON_COMPAT=( python3_{8..10} ) |
120 |
+DISTUTILS_IN_SOURCE_BUILD="yes" |
121 |
+inherit distutils-r1 |
122 |
|
123 |
DESCRIPTION="Commands to manage several local SCM repositories for ROS" |
124 |
HOMEPAGE="https://wiki.ros.org/wstool" |
125 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
126 |
- SRC_URI="" |
127 |
+ |
128 |
+if [[ ${PV} == 9999* ]] ; then |
129 |
+ inherit git-r3 |
130 |
+ EGIT_REPO_URI="https://github.com/vcstools/wstool" |
131 |
else |
132 |
SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz |
133 |
https://github.com/vcstools/wstool/archive/${PV}.tar.gz -> ${P}.tar.gz |
134 |
@@ -25,38 +22,32 @@ fi |
135 |
|
136 |
LICENSE="BSD" |
137 |
SLOT="0" |
138 |
-IUSE="test" |
139 |
-RESTRICT="!test? ( test )" |
140 |
|
141 |
RDEPEND=" |
142 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
143 |
>=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}] |
144 |
" |
145 |
-DEPEND="${RDEPEND} |
146 |
+BDEPEND="${RDEPEND} |
147 |
+ dev-python/sphinx |
148 |
test? ( |
149 |
- dev-python/nose[${PYTHON_USEDEP}] |
150 |
- dev-python/coverage[${PYTHON_USEDEP}] |
151 |
dev-vcs/git |
152 |
dev-vcs/bzr |
153 |
dev-vcs/mercurial |
154 |
dev-vcs/subversion |
155 |
) |
156 |
" |
157 |
-BDEPEND=" |
158 |
- dev-python/sphinx |
159 |
-" |
160 |
|
161 |
-DISTUTILS_IN_SOURCE_BUILD="yes" |
162 |
+distutils_enable_tests nose |
163 |
|
164 |
-python_test() { |
165 |
+src_test() { |
166 |
# From travis.yml |
167 |
# Set git config to silence some stuff in the tests |
168 |
- git config --global user.email "foo@×××××××.com" |
169 |
- git config --global user.name "Foo Bar" |
170 |
+ git config --global user.email "foo@×××××××.com" || die |
171 |
+ git config --global user.name "Foo Bar" || die |
172 |
# Set the hg user |
173 |
- echo -e "[ui]\nusername = Your Name <your@××××.com>" >> ~/.hgrc |
174 |
+ echo -e "[ui]\nusername = Your Name <your@××××.com>" >> ~/.hgrc || die |
175 |
# Set the bzr user |
176 |
- bzr whoami "Your Name <name@×××××××.com>" |
177 |
+ bzr whoami "Your Name <name@×××××××.com>" || die |
178 |
# command to run tests |
179 |
- nosetests --with-coverage --cover-package=wstool || die |
180 |
+ distutils-r1_src_test |
181 |
} |