Accepting request 1315718 from devel:languages:python:pytest
- update to 1.2.0:
* --asyncio-debug CLI option and asyncio_debug configuration
option to enable asyncio debug mode for the default event
loop.
* A pytest.UsageError for invalid configuration values of
asyncio_default_fixture_loop_scope and
asyncio_default_test_loop_scope.
* Compatibility with the Pyright type checker
* RuntimeError: There is no current event loop in thread
'MainThread' when any test unsets the event loop (such as
when using asyncio.run and asyncio.Runner).
* Deprecation warning when decorating an asynchronous fixture
with @pytest.fixture in strict mode. The warning message now
refers to the correct package.
* Bump the minimum required version of tox to v4.28. This
change is only relevant if you use the tox.ini file provided
by pytest-asyncio to run tests.
* Extend dependency on typing-extensions>=4.12 from Python<3.10
to Python<3.13.
* Propagation of ContextVars from async fixtures to other
fixtures and tests on Python 3.10 and older
* Cancellation of tasks when the loop_scope ends
* Warning when the current event loop is closed by a test
* Error about missing loop when calling functions requiring a
loop in the finally clause of a task
* An error that could cause duplicate warnings to be issued
* Added runtime dependency on backports.asyncio.runner for use
with Python 3.10 and older
- drop pytest84.patch (upstream)
OBS-URL: https://build.opensuse.org/request/show/1315718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=28
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-asyncio
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,22 +26,24 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-asyncio%{psuffix}
|
||||
Version: 1.0.0
|
||||
Version: 1.2.0
|
||||
Release: 0
|
||||
Summary: Pytest support for asyncio
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/pytest-dev/pytest-asyncio
|
||||
Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-asyncio/commit/8c6612fda96f78a1df2f0d271426b7b6e3c10737 test: Adapt unmarked async tests in strict mode for pytest 8.4.0
|
||||
Patch0: pytest84.patch
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing-extensions >= 4.12 if %python-base < 3.13}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: (python-pytest >= 8.2.0 with python-pytest < 9)
|
||||
%if 0%{?python_version_nodots} < 313
|
||||
Requires: python-typing-extensions >= 4.12
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module hypothesis >= 5.7.1}
|
||||
|
||||
Reference in New Issue
Block a user