From 8cb3cd1ca74433a633be0773a1bfeb3b42fab6b4 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 27 Sep 2021 01:40:15 +0000 Subject: Adding metadata --- dev-python/vcstools/metadata.xml | 1 + dev-python/vcstools/vcstools-0.1.42.ebuild | 56 ++++++++++++++---------------- 2 files changed, 28 insertions(+), 29 deletions(-) (limited to 'dev-python/vcstools') diff --git a/dev-python/vcstools/metadata.xml b/dev-python/vcstools/metadata.xml index 27e07d86b329..a29d03936817 100644 --- a/dev-python/vcstools/metadata.xml +++ b/dev-python/vcstools/metadata.xml @@ -9,4 +9,5 @@ vcstools gentoo-staging + \ No newline at end of file diff --git a/dev-python/vcstools/vcstools-0.1.42.ebuild b/dev-python/vcstools/vcstools-0.1.42.ebuild index 2bf276548dda..75346c4d96a7 100644 --- a/dev-python/vcstools/vcstools-0.1.42.ebuild +++ b/dev-python/vcstools/vcstools-0.1.42.ebuild @@ -2,58 +2,56 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -SCM="" -if [ "${PV#9999}" != "${PV}" ] ; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/vcstools/vcstools" -fi +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit ${SCM} distutils-r1 +inherit distutils-r1 DESCRIPTION="Python library for interacting with various VCS systems" HOMEPAGE="https://wiki.ros.org/vcstools" -if [ "${PV#9999}" != "${PV}" ] ; then - SRC_URI="" -else - SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz - https://github.com/vcstools/vcstools/archive/${PV}.tar.gz -> ${P}.tar.gz - " - KEYWORDS="~amd64 ~arm" -fi +SRC_URI=" + http://download.ros.org/downloads/${PN}/${P}.tar.gz + https://github.com/vcstools/vcstools/archive/${PV}.tar.gz -> ${P}.tar.gz +" LICENSE="BSD" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" +KEYWORDS="~amd64 ~arm" RDEPEND=" dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/python-dateutil[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" BDEPEND="test? ( - dev-python/nose[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] dev-vcs/git - dev-vcs/bzr dev-vcs/mercurial dev-vcs/subversion ) " + PATCHES=( "${FILESDIR}/yaml.patch" ) -python_test() { +distutils_enable_tests nose + +src_prepare() { + # Those fail because of broken upstream testing + rm test/test_bzr.py || die + sed -e 's/test_checkout_timeout/_&/' -i test/test_git.py || die + + distutils-r1_src_prepare +} + +src_test() { # From travis.yml # Set git config to silence some stuff in the tests - git config --global user.email "foo@example.com" - git config --global user.name "Foo Bar" + git config --global user.email "foo@example.com" || die + git config --global user.name "Foo Bar" || die # Set the hg user - echo -e "[ui]\nusername = Your Name " >> ~/.hgrc - # Set the bzr user - bzr whoami "Your Name " - #git config --global user.email "you@example.com" - #git config --global user.name "Your Name" + cat > ~/.hgrc <<- EOF || die + [ui] + username = Your Name + EOF - nosetests --with-coverage --cover-package vcstools || die + distutils-r1_src_test } -- cgit v1.3