17
0

29 Commits

Author SHA256 Message Date
3c40e37133 Accepting request 1274654 from devel:languages:python:pytest
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1274654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=26
2025-05-06 14:40:17 +00:00
d937cf86bd - update to 0.26.0:
* Adds configuration option that sets default event loop scope
    for all tests #793
  * Improved type annotations for pytest_asyncio.fixture #1045
  * Added typing-extensions as additional dependency for Python
    <3.10 #1045

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=54
2025-04-28 14:19:50 +00:00
0d097c0969 Accepting request 1250596 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1250596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=25
2025-03-06 13:48:07 +00:00
b1fd431cd1 update to 0.25.3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=52
2025-03-06 10:01:49 +00:00
36d0c84cb6 Accepting request 1234718 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1234718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=24
2025-01-06 15:05:05 +00:00
7afde0eff5 update to 0.25.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=50
2025-01-03 11:06:24 +00:00
24efb77e1a Accepting request 1227110 from devel:languages:python:pytest
- Update to 0.24.0
  * BREAKING: Updated minimum supported pytest version to v8.2.0
  * Adds an optional loop_scope keyword argument to pytest.mark.asyncio.
  * Deprecates the optional scope keyword argument to pytest.mark.asyncio 
    for API consistency with pytest_asyncio.fixture.
  * Fixes a bug that caused module-scoped async fixtures to fail when 
    reused in other modules
  * Fixes a bug that caused duplicate markers in async tests
  * Declare support for Python 3.13
- Drop merged duplicated-markers.patch

OBS-URL: https://build.opensuse.org/request/show/1227110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=23
2024-11-28 21:42:35 +00:00
b1d5daabf2 Accepting request 1206345 from home:mcalabkova:branches:devel:languages:python
- Update to 0.24.0
  * BREAKING: Updated minimum supported pytest version to v8.2.0
  * Adds an optional loop_scope keyword argument to pytest.mark.asyncio.
  * Deprecates the optional scope keyword argument to pytest.mark.asyncio 
    for API consistency with pytest_asyncio.fixture.
  * Fixes a bug that caused module-scoped async fixtures to fail when 
    reused in other modules
  * Fixes a bug that caused duplicate markers in async tests
  * Declare support for Python 3.13
- Drop merged duplicated-markers.patch

OBS-URL: https://build.opensuse.org/request/show/1206345
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=48
2024-10-09 05:30:01 +00:00
47fc0b7465 Accepting request 1186442 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1186442
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=22
2024-07-10 14:48:00 +00:00
4ad6649829 - Add duplicated-markers.patch to fix some testsuites broken by
that issue.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=46
2024-07-09 15:33:36 +00:00
5e476c6c7c Accepting request 1179085 from devel:languages:python:pytest
- update to 0.23.7:
  * Silence deprecation warnings about unclosed event loops that
    occurred with certain CPython patch releases

OBS-URL: https://build.opensuse.org/request/show/1179085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=21
2024-06-07 13:01:51 +00:00
48d227f89e Accepting request 1160433 from devel:languages:python:pytest
- update to 0.23.6:
  * compatibiltiy with pytest 8.2

OBS-URL: https://build.opensuse.org/request/show/1160433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=20
2024-03-26 18:24:21 +00:00
4f724d43ca Accepting request 1158427 from devel:languages:python:pytest
- update to 0.23.5.post1:
  * Declare compatibility with pytest 8
  * Fix typing errors with recent versions of mypy #769
  * Prevent DeprecationWarning about internal use of
    `asyncio.get_event_loop()` from affecting test cases #757

OBS-URL: https://build.opensuse.org/request/show/1158427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=19
2024-03-18 15:44:07 +00:00
615a458611 Accepting request 1154886 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1154886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=18
2024-03-06 22:02:58 +00:00
06a166d79c Accepting request 1124081 from devel:languages:python:pytest
remove unnecessary dependency on async_generator

  * Prevent DeprecationWarning to bubble up on CPython 3.10.9 and 3.11.1. #460
- Inject multibuild to defeat a build loop
- Initial release of python-pytest-asyncio 0.8.0

OBS-URL: https://build.opensuse.org/request/show/1124081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=17
2023-11-08 21:17:08 +00:00
25b861864f Accepting request 1118228 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1118228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=16
2023-10-19 20:47:10 +00:00
5fba09db8b Accepting request 1100438 from devel:languages:python:pytest
- update to 0.21.1:
  * Output a proper error message when an invalid
    ``asyncio_mode`` is selected.
  * Extend warning message about unclosed event loops with
    additional possible cause.
  * Previously, some tests reported "skipped" or "xfailed" as a
    result. Now all tests report a "success" result.

OBS-URL: https://build.opensuse.org/request/show/1100438
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=15
2023-07-26 11:21:39 +00:00
9a70025e21 Accepting request 1084898 from devel:languages:python:pytest
- update to 0.21.0:
  * Drop compatibility with pytest 6.1. Pytest-asyncio now
    depends on pytest 7.0 or newer.
  * pytest-asyncio cleans up any stale event loops when setting
    up and tearing down the event_loop fixture.

OBS-URL: https://build.opensuse.org/request/show/1084898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=14
2023-05-09 11:06:27 +00:00
faec3a4723 Accepting request 1082442 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1082442
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=13
2023-04-25 14:53:40 +00:00
8593e6ef29 Accepting request 1041848 from devel:languages:python:pytest
- Update to 0.20.3:
  * Prevent DeprecationWarning to bubble up on CPython 3.10.9 and 3.11.1. #460 
- Update to 0.20.2:
  * Fixes an issue with async fixtures that are defined as methods on a test
    class not being rebound to the actual test instance. #197
  * Replaced usage of deprecated @pytest.mark.tryfirst with
    @pytest.hookimpl(tryfirst=True) #438
- 0.20.1 (22-10-21)
  * Fixes an issue that warned about using an old version of pytest, even
    though the most recent version was installed. #430
- 0.20.0 (22-10-21)
  * BREAKING: Removed legacy mode. If you're upgrading from v0.19 and you
    haven't configured asyncio_mode = legacy, you can upgrade without taking
    any additional action. If you're upgrading from an earlier version or you
    have explicitly enabled legacy mode, you need to switch to auto or strict
    mode before upgrading to this version.
  * Deprecate use of pytest v6.
  * Fixed an issue which prevented fixture setup from being cached. #404

OBS-URL: https://build.opensuse.org/request/show/1041848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=12
2022-12-12 17:59:12 +00:00
ce37f39229 Accepting request 993601 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/993601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=11
2022-08-10 15:12:26 +00:00
433ac0ccce Accepting request 986981 from devel:languages:python:pytest
- Inject multibuild to defeat a build loop 

- Update to 0.18.3
  * Adds pytest-trio to the test dependencies
  * Fixes a bug that caused pytest-asyncio to try to set up async
    pytest_trio fixtures in strict mode. #298
- Release 0.18.2
  * Fix asyncio auto mode not marking static methods. #295
  * Fix a compatibility issue with Hypothesis 6.39.0. #302
- Release 0.18.1
  * Fixes a regression that prevented async fixtures from working
    in synchronous tests. #286
- Release 0.18.0
  * Raise a warning if @pytest.mark.asyncio is applied to non-async
    function. #275
  * Support parametrized event_loop fixture. #278

OBS-URL: https://build.opensuse.org/request/show/986981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=10
2022-07-06 13:41:41 +00:00
6a8e358e1b Accepting request 947748 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/947748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=9
2022-01-23 15:25:39 +00:00
03b3fdab64 Accepting request 926285 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/926285
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=8
2021-10-20 18:23:06 +00:00
84c282ef77 Accepting request 904060 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/904060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=7
2021-07-10 20:54:00 +00:00
92a94a53b5 Accepting request 817722 from devel:languages:python:pytest
- Update to 0.14.0
  * Fix #162, and event_loop fixture behavior now is coherent on all scopes.

OBS-URL: https://build.opensuse.org/request/show/817722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=6
2020-06-30 19:54:46 +00:00
badd4634c7 Accepting request 812821 from devel:languages:python:pytest
- Update to 0.12.0:
  * Run the event loop fixture as soon as possible.

- Update to 0.11.0:
  * Fix with pytest 5.4

OBS-URL: https://build.opensuse.org/request/show/812821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=5
2020-06-11 12:45:39 +00:00
5df94c6228 Accepting request 782858 from devel:languages:python:pytest
py38 fix

OBS-URL: https://build.opensuse.org/request/show/782858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=4
2020-03-09 10:42:37 +00:00
93498edb4c Accepting request 674560 from devel:languages:python:pytest
- Update to 0.10.0:
  * support for pytest 4+

OBS-URL: https://build.opensuse.org/request/show/674560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-asyncio?expand=0&rev=3
2019-02-14 13:34:22 +00:00
4 changed files with 7 additions and 88 deletions

BIN
pytest-asyncio-0.26.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c2f599c88c9417b539628c7dc538c465829c31d634e39e1972f6dccd71b31a5
size 48706

View File

@@ -1,80 +1,3 @@
-------------------------------------------------------------------
Sat Sep 13 09:39:08 UTC 2025 - Dirk Müller <dmueller@suse.com>
- 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)
-------------------------------------------------------------------
Fri Jun 20 12:27:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream pytest84.patch for compatibility with pytest 8.4.0
-------------------------------------------------------------------
Tue May 27 11:12:52 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.0.0:
https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.0.0
* Removed
- The deprecated event_loop fixture.
(#1106)
* Added
- Prelimiary support for Python 3.14
(#1025)
* Changed
+ Scoped event loops (e.g. module-scoped loops) are created
once rather than per scope (e.g. per module). This reduces
the number of fixtures and speeds up collection time,
especially for large test suites.
(#1107)
* The loop_scope argument to pytest.mark.asyncio no longer
forces that a pytest Collector exists at the level of the
specified scope. For example, a test function marked with
pytest.mark.asyncio(loop_scope="class") no longer requires a
class surrounding the test. This is consistent with the
behavior of the scope argument to pytest_asyncio.fixture.
(#1112)
* Fixed
* An error caused when using pytest's
[--setup-plan]{.title-ref} option.
(#630)
* Unsuppressed import errors with pytest option
--doctest-ignore-import-errors
(#797)
* A "fixture not found" error in connection with package-scoped
loops
(#1052)
* Notes for Downstream Packagers
* Removed a test that had an ordering dependency on other
tests.
(#1114)
-------------------------------------------------------------------
Mon Apr 28 14:19:40 UTC 2025 - Dirk Müller <dmueller@suse.com>
@@ -127,9 +50,9 @@ Tue Oct 8 15:42:52 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 0.24.0
* BREAKING: Updated minimum supported pytest version to v8.2.0
* Adds an optional loop_scope keyword argument to pytest.mark.asyncio.
* Deprecates the optional scope keyword argument to pytest.mark.asyncio
* Deprecates the optional scope keyword argument to pytest.mark.asyncio
for API consistency with pytest_asyncio.fixture.
* Fixes a bug that caused module-scoped async fixtures to fail when
* Fixes a bug that caused module-scoped async fixtures to fail when
reused in other modules
* Fixes a bug that caused duplicate markers in async tests
* Declare support for Python 3.13

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-asyncio
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pytest-asyncio%{psuffix}
Version: 1.2.0
Version: 0.26.0
Release: 0
Summary: Pytest support for asyncio
License: Apache-2.0
@@ -36,14 +36,10 @@ 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}