commit:     67ef28832c62b655353a438c7a886270f8993b1f
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 16 11:29:15 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 23 14:06:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67ef2883

dev-python/rospkg: enable py3.10, use d_e_t

passes tests

Closes: https://bugs.gentoo.org/806860
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/rospkg/rospkg-1.3.0.ebuild | 16 +++-------------
 dev-python/rospkg/rospkg-9999.ebuild  | 16 +++-------------
 2 files changed, 6 insertions(+), 26 deletions(-)

diff --git a/dev-python/rospkg/rospkg-1.3.0.ebuild 
b/dev-python/rospkg/rospkg-1.3.0.ebuild
index 9a43e2fb6d1..fbd4db374f3 100644
--- a/dev-python/rospkg/rospkg-1.3.0.ebuild
+++ b/dev-python/rospkg/rospkg-1.3.0.ebuild
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python{3_7,3_8,3_9} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
+
+PYTHON_COMPAT=( python3_{8..10} )
 
 SCM=""
 if [ "${PV#9999}" != "${PV}" ] ; then
@@ -27,26 +27,16 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]
        dev-python/catkin_pkg[${PYTHON_USEDEP}]
        dev-python/distro[${PYTHON_USEDEP}]
 "
 BDEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
-       test? (
-               dev-python/nose[${PYTHON_USEDEP}]
-       )"
-DEPEND="${RDEPEND} ${BDEPEND}
        test? (
-               dev-python/coverage[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
        )
 "
 PATCHES=( "${FILESDIR}/gentoo.patch" "${FILESDIR}/yaml_load.patch" )
 
-python_test() {
-       nosetests --with-coverage --cover-package=rospkg --with-xunit test || 
die
-}
+distutils_enable_tests nose

diff --git a/dev-python/rospkg/rospkg-9999.ebuild 
b/dev-python/rospkg/rospkg-9999.ebuild
index 9a43e2fb6d1..fbd4db374f3 100644
--- a/dev-python/rospkg/rospkg-9999.ebuild
+++ b/dev-python/rospkg/rospkg-9999.ebuild
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python{3_7,3_8,3_9} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
+
+PYTHON_COMPAT=( python3_{8..10} )
 
 SCM=""
 if [ "${PV#9999}" != "${PV}" ] ; then
@@ -27,26 +27,16 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]
        dev-python/catkin_pkg[${PYTHON_USEDEP}]
        dev-python/distro[${PYTHON_USEDEP}]
 "
 BDEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
-       test? (
-               dev-python/nose[${PYTHON_USEDEP}]
-       )"
-DEPEND="${RDEPEND} ${BDEPEND}
        test? (
-               dev-python/coverage[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
        )
 "
 PATCHES=( "${FILESDIR}/gentoo.patch" "${FILESDIR}/yaml_load.patch" )
 
-python_test() {
-       nosetests --with-coverage --cover-package=rospkg --with-xunit test || 
die
-}
+distutils_enable_tests nose

Reply via email to