Skip to content

Commit

Permalink
dev-python/setuptools_scm_git_archive: python2 support not needed, fi…
Browse files Browse the repository at this point in the history
…x tests

All reverse deps are ported to python3, fix tests

Thanks-to: Agostino Sarubbo
Closes: https://bugs.gentoo.org/720064
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Pacho Ramos <[email protected]>
  • Loading branch information
pacho2 committed Apr 30, 2020
1 parent e8c293d commit e50f915
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
inherit distutils-r1

DESCRIPTION="A setuptools_scm plugin for git archives"
Expand All @@ -21,11 +21,13 @@ DEPEND="
"
RDEPEND="${DEPEND}"

distutils_enable_tests pytest

src_prepare() {
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
distutils-r1_src_prepare
}

python_test() {
esetup.py test
pytest tests.py || die
}

0 comments on commit e50f915

Please sign in to comment.