Sync from SUSE:SLFO:Main python-pytest-timeout revision 47159ea796baaf69e89098e4a587ce78
This commit is contained in:
commit
953adde03e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
pytest-timeout-2.1.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pytest-timeout-2.1.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
99
python-pytest-timeout.changes
Normal file
99
python-pytest-timeout.changes
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 21 12:32:02 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:44:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 19 18:22:49 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 2.1.0
|
||||||
|
* Get terminal width from shutil instead of deprecated py, thanks
|
||||||
|
Andrew Svetlov.
|
||||||
|
* Add an API for extending ``pytest-timeout`` functionality
|
||||||
|
with third-party plugins, thanks Andrew Svetlov.
|
||||||
|
- Don't test with pytest-cov in Staging: Put Ring1 on coverage diet
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 6 01:39:29 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.0.2:
|
||||||
|
* Fix debugger detection on OSX, thanks Alexander Pacha.
|
||||||
|
* Fix Python 2 removal, thanks Nicusor Picatureanu.
|
||||||
|
* Increase pytest requirement to >=5.0.0. Thanks Dominic Davis-Foster.
|
||||||
|
* Use thread timeout method when plugin is not called from main thread
|
||||||
|
to avoid crash.
|
||||||
|
* Fix pycharm debugger detection so timeouts are not triggered during
|
||||||
|
debugger usage.
|
||||||
|
* Dropped support for Python 2, minimum pytest version upported is 5.0.0.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 5 14:37:31 UTC 2020 - Marketa Machova <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.4.2
|
||||||
|
* Fix is_debugging function
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 29 12:15:28 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.4.1
|
||||||
|
* Better detection of when we are debugging, thanks Mattwmaster58.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 08:24:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.3.4:
|
||||||
|
* upstream moved to github
|
||||||
|
* support newer pytest releases
|
||||||
|
- Drop merged patch pytest4.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 12 15:43:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build with pytest4 from upstream:
|
||||||
|
* pytest4.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 21 14:20:15 UTC 2018 - Enno Gotthold <egotthold@suse.com>
|
||||||
|
|
||||||
|
- Version update to 1.3.3
|
||||||
|
* Fix support for pytest >= 3.10.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 19 09:59:42 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- version update to 1.3.2
|
||||||
|
* Fix deprecation warning on Python 3.6.
|
||||||
|
* Fix pytest 3.7.3 compatibility.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 17 12:55:33 UTC 2018 - scarabeus@opensuse.org
|
||||||
|
|
||||||
|
- Version update to 1.3.0:
|
||||||
|
* Fixes for python3.7
|
||||||
|
* Various small fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 3 19:13:13 UTC 2017 - arun@gmx.de
|
||||||
|
|
||||||
|
- update to version 1.2.1:
|
||||||
|
* Fix for pytest 3.3, thanks Bruno Oliveira.
|
||||||
|
* Update supported python versions:
|
||||||
|
+ Add CPython 3.6.
|
||||||
|
+ Drop CPyhon 2.6 (as did pytest 3.3)
|
||||||
|
+ Drop CPyhon 3.3
|
||||||
|
+ Drop CPyhon 3.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 6 18:09:04 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix building
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 28 21:52:12 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Initial version
|
82
python-pytest-timeout.spec
Normal file
82
python-pytest-timeout.spec
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pytest-timeout
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
|
%bcond_with ringdisabled
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-pytest-timeout
|
||||||
|
Version: 2.1.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Pytest plugin to abort hanging tests
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/pytest-dev/pytest-timeout/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pytest >= 5.0.0}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-pytest >= 5.0.0
|
||||||
|
# SECTION test
|
||||||
|
%if !%{with ringdisabled}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
|
%endif
|
||||||
|
BuildRequires: %{python_module pexpect}
|
||||||
|
# /SECTION
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a plugin which will terminate tests after a certain timeout.
|
||||||
|
When doing so it will show a stack dump of all threads running at the
|
||||||
|
time. This is useful when running tests under a continuous
|
||||||
|
integration server or simply if you don't know why the test suite
|
||||||
|
hangs.
|
||||||
|
|
||||||
|
Note that while by default on POSIX systems pytest will continue to
|
||||||
|
execute the tests after a test has timed, out this is not always
|
||||||
|
possible. Often the only sure way to interrupt a hanging test is by
|
||||||
|
terminating the entire process. As this is a hard termination
|
||||||
|
(``os._exit()``) it will result in no teardown, JUnit XML output etc.
|
||||||
|
But the plugin will ensure you will have the debugging output on
|
||||||
|
stderr nevertheless, which is the most important part at this stage.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n pytest-timeout-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with ringdisabled}
|
||||||
|
donttest="or test_cov"
|
||||||
|
%endif
|
||||||
|
%pytest -k "not (donttestprefix $donttest)"
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python_sitelib}/pytest_timeout-%{version}*-info
|
||||||
|
%{python_sitelib}/pytest_timeout.py*
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/pytest_timeout*.pyc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user