diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-29 01:23:18 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-29 01:23:18 +0000 |
| commit | 4ac9d95b9cabcb380254e7c7f1060a3c281c83a3 (patch) | |
| tree | d7d09e3e2a0a36a6a5590c0655965934b4f69465 /dev-python/priority | |
| parent | c75cc8dbd0ca371afa6f110fd0ca079d48d572ed (diff) | |
| download | baldeagleos-repo-4ac9d95b9cabcb380254e7c7f1060a3c281c83a3.tar.gz baldeagleos-repo-4ac9d95b9cabcb380254e7c7f1060a3c281c83a3.tar.xz baldeagleos-repo-4ac9d95b9cabcb380254e7c7f1060a3c281c83a3.zip | |
Adding metadata
Diffstat (limited to 'dev-python/priority')
| -rw-r--r-- | dev-python/priority/priority-1.3.0-r1.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/priority/priority-2.0.0-r1.ebuild | 19 |
2 files changed, 34 insertions, 4 deletions
diff --git a/dev-python/priority/priority-1.3.0-r1.ebuild b/dev-python/priority/priority-1.3.0-r1.ebuild index 43edb3c815cd..cdd3e85a3774 100644 --- a/dev-python/priority/priority-1.3.0-r1.ebuild +++ b/dev-python/priority/priority-1.3.0-r1.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) +PYTHON_TESTED=( python3_{7,8,9,10,11} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) inherit distutils-r1 pypi @@ -20,7 +21,11 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" BDEPEND=" - test? ( >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_cond_dep ' + >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) " PATCHES=( @@ -28,3 +33,13 @@ PATCHES=( ) distutils_enable_tests pytest + +python_test() { + # https://github.com/python/cpython/issues/105042 + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON} (xfail)" + return + fi + + epytest +} diff --git a/dev-python/priority/priority-2.0.0-r1.ebuild b/dev-python/priority/priority-2.0.0-r1.ebuild index 8bd57c3acfad..ae42b9c61c28 100644 --- a/dev-python/priority/priority-2.0.0-r1.ebuild +++ b/dev-python/priority/priority-2.0.0-r1.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) +PYTHON_TESTED=( python3_{7,8,9,10,11} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) inherit distutils-r1 pypi @@ -20,7 +21,21 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" BDEPEND=" - test? ( >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_cond_dep ' + >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) " distutils_enable_tests pytest + +python_test() { + # https://github.com/python/cpython/issues/105042 + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON} (xfail)" + return + fi + + epytest +} |
