diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-09-20 18:26:39 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-09-20 18:26:39 +0000 |
| commit | 8dfa4160bd746ed1e0f70310531606e4a33484ea (patch) | |
| tree | ceae711c5023203ed35799a8810d68f6b534fadc /dev-python/six | |
| parent | 2ac6366d92f666627bfef883713e84f652192f4f (diff) | |
| download | baldeagleos-repo-8dfa4160bd746ed1e0f70310531606e4a33484ea.tar.gz baldeagleos-repo-8dfa4160bd746ed1e0f70310531606e4a33484ea.tar.xz baldeagleos-repo-8dfa4160bd746ed1e0f70310531606e4a33484ea.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/six')
| -rw-r--r-- | dev-python/six/six-1.15.0.ebuild | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-python/six/six-1.15.0.ebuild b/dev-python/six/six-1.15.0.ebuild index 4d0b1f980188..79f882555960 100644 --- a/dev-python/six/six-1.15.0.ebuild +++ b/dev-python/six/six-1.15.0.ebuild @@ -14,7 +14,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]' -3) + )" distutils_enable_sphinx documentation --no-autodoc -distutils_enable_tests pytest + +python_test() { + if ! python_is_python3; then + einfo "Tests are skipped on Python 2 to unblock deps" + return + fi + pytest -vv || die "Tests failed with ${EPYTHON}" +} |
