diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-08 18:15:15 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-08 18:15:15 +0000 |
| commit | 38e23e89fe2b880cb81fadb0fdf0c81106ff068b (patch) | |
| tree | 0855fd6ac78e34b69f345217f12a90ce3bc38e1f /dev-python/pytest-timeout | |
| parent | 29d308db3d57a7b53af49edbca93ff4f770c73a2 (diff) | |
| download | baldeagleos-repo-38e23e89fe2b880cb81fadb0fdf0c81106ff068b.tar.gz baldeagleos-repo-38e23e89fe2b880cb81fadb0fdf0c81106ff068b.tar.xz baldeagleos-repo-38e23e89fe2b880cb81fadb0fdf0c81106ff068b.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-timeout')
| -rw-r--r-- | dev-python/pytest-timeout/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pytest-timeout/Manifest b/dev-python/pytest-timeout/Manifest index 74b4d5a96c03..339ebf919692 100644 --- a/dev-python/pytest-timeout/Manifest +++ b/dev-python/pytest-timeout/Manifest @@ -1 +1,2 @@ DIST pytest-timeout-2.2.0.tar.gz 16391 BLAKE2B 550b803ed4a64ab0fead7f6e61297ea6bfc6e59988998c5383fdccdebb3664fe9f6651314bb1a439f6431e844bb770feb50bedcabd568e4dfea7526d8c328dd7 SHA512 11a0c4e958b324bff3e149bf2a7dc5bf6ab6549405d5061856f8f1ad0e43df1cddce83df4c804b717276bfbcfcf60ee6b400625d0f4e4e73c98785146c22164f +DIST pytest-timeout-2.3.1.tar.gz 17697 BLAKE2B 5f0ffa2fdda59ef28a92bfd5742891f63c1fa400db4ef89077fa13d917932d83e76d543c4c326a27df582a025122d8a75f1f7adf0daebbecc42273d4323ff93a SHA512 f200d625d11f76173521f4e2e4e09d57f6613d9b1420c57893b454ec496d5f11b32390b95eb995b403d15f8563b742a58fa0e0cbad42246b4049787a389ad83e diff --git a/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild new file mode 100644 index 000000000000..d1dbc31b81e0 --- /dev/null +++ b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="pytest plugin to abort hanging tests" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-timeout/ + https://pypi.org/project/pytest-timeout/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +# do not rdepend on pytest, it won't be used without it anyway +# pytest-cov used to test compatibility +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + !hppa? ( + dev-python/pytest-cov[${PYTHON_USEDEP}] + ) + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_timeout + + if has_version dev-python/pytest-cov; then + PYTEST_PLUGINS+=,pytest_cov.plugin + else + EPYTEST_DESELECT+=( + test_pytest_timeout.py::test_cov + ) + fi + + epytest +} |
