head	1.43;
access;
symbols
	pkgsrc-2026Q1:1.43.0.4
	pkgsrc-2026Q1-base:1.43
	pkgsrc-2025Q4:1.43.0.2
	pkgsrc-2025Q4-base:1.43
	pkgsrc-2025Q3:1.40.0.2
	pkgsrc-2025Q3-base:1.40
	pkgsrc-2025Q2:1.39.0.2
	pkgsrc-2025Q2-base:1.39
	pkgsrc-2025Q1:1.37.0.2
	pkgsrc-2025Q1-base:1.37
	pkgsrc-2024Q4:1.34.0.2
	pkgsrc-2024Q4-base:1.34
	pkgsrc-2024Q3:1.32.0.2
	pkgsrc-2024Q3-base:1.32
	pkgsrc-2024Q2:1.30.0.2
	pkgsrc-2024Q2-base:1.30
	pkgsrc-2024Q1:1.29.0.2
	pkgsrc-2024Q1-base:1.29
	pkgsrc-2023Q4:1.25.0.2
	pkgsrc-2023Q4-base:1.25
	pkgsrc-2023Q3:1.23.0.2
	pkgsrc-2023Q3-base:1.23
	pkgsrc-2023Q2:1.22.0.4
	pkgsrc-2023Q2-base:1.22
	pkgsrc-2023Q1:1.22.0.2
	pkgsrc-2023Q1-base:1.22
	pkgsrc-2022Q4:1.21.0.2
	pkgsrc-2022Q4-base:1.21
	pkgsrc-2022Q3:1.18.0.2
	pkgsrc-2022Q3-base:1.18
	pkgsrc-2022Q2:1.17.0.2
	pkgsrc-2022Q2-base:1.17
	pkgsrc-2022Q1:1.15.0.2
	pkgsrc-2022Q1-base:1.15
	pkgsrc-2021Q4:1.9.0.2
	pkgsrc-2021Q4-base:1.9
	pkgsrc-2021Q3:1.8.0.4
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.2
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.7.0.6
	pkgsrc-2021Q1-base:1.7
	pkgsrc-2020Q4:1.7.0.4
	pkgsrc-2020Q4-base:1.7
	pkgsrc-2020Q3:1.7.0.2
	pkgsrc-2020Q3-base:1.7
	pkgsrc-2020Q2:1.6.0.2
	pkgsrc-2020Q2-base:1.6
	pkgsrc-2020Q1:1.5.0.6
	pkgsrc-2020Q1-base:1.5
	pkgsrc-2019Q4:1.5.0.8
	pkgsrc-2019Q4-base:1.5
	pkgsrc-2019Q3:1.5.0.4
	pkgsrc-2019Q3-base:1.5
	pkgsrc-2019Q2:1.5.0.2
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.3.0.2
	pkgsrc-2019Q1-base:1.3
	pkgsrc-2018Q4:1.2.0.4
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.2
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.1.0.4
	pkgsrc-2018Q2-base:1.1
	pkgsrc-2018Q1:1.1.0.2
	pkgsrc-2018Q1-base:1.1;
locks; strict;
comment	@# @;


1.43
date	2025.11.21.14.06.33;	author adam;	state Exp;
branches;
next	1.42;
commitid	G16HTOMAI3DexqjG;

1.42
date	2025.10.28.13.25.00;	author adam;	state Exp;
branches;
next	1.41;
commitid	4f3P6d5mp8wP4lgG;

1.41
date	2025.10.09.08.07.28;	author wiz;	state Exp;
branches;
next	1.40;
commitid	RA1puwGMZhROVRdG;

1.40
date	2025.08.22.10.30.00;	author wiz;	state Exp;
branches;
next	1.39;
commitid	ROUurMvIjOcpgI7G;

1.39
date	2025.06.13.08.59.40;	author adam;	state Exp;
branches;
next	1.38;
commitid	DfAkggMMr15N0IYF;

1.38
date	2025.04.12.21.15.36;	author adam;	state Exp;
branches;
next	1.37;
commitid	sUvSI47I93IQ4OQF;

1.37
date	2025.01.29.08.09.00;	author adam;	state Exp;
branches;
next	1.36;
commitid	Tt4x8g0yQhmw4mHF;

1.36
date	2025.01.08.10.03.44;	author adam;	state Exp;
branches;
next	1.35;
commitid	RJ4hZym3AYAInFEF;

1.35
date	2025.01.02.14.17.14;	author adam;	state Exp;
branches;
next	1.34;
commitid	jD7fUui02xECYUDF;

1.34
date	2024.12.16.05.49.13;	author adam;	state Exp;
branches;
next	1.33;
commitid	IwCZQ5BaojpeIGBF;

1.33
date	2024.11.11.07.28.24;	author wiz;	state Exp;
branches;
next	1.32;
commitid	1fBDq3LwS98NncxF;

1.32
date	2024.08.23.13.26.10;	author adam;	state Exp;
branches;
next	1.31;
commitid	z9qg2IaWnDl9WWmF;

1.31
date	2024.07.19.07.06.31;	author adam;	state Exp;
branches;
next	1.30;
commitid	t6Bfrh6Ve52FXpiF;

1.30
date	2024.05.20.07.43.16;	author adam;	state Exp;
branches;
next	1.29;
commitid	hBfUGqlnLEmT5IaF;

1.29
date	2024.03.20.13.41.17;	author adam;	state Exp;
branches;
next	1.28;
commitid	3BVJIJIJtwOd2U2F;

1.28
date	2024.02.10.07.28.09;	author adam;	state Exp;
branches;
next	1.27;
commitid	5p213AI12YzWdRXE;

1.27
date	2024.01.29.09.35.22;	author adam;	state Exp;
branches;
next	1.26;
commitid	Vl3TfNCCEaQvjkWE;

1.26
date	2024.01.01.17.03.13;	author adam;	state Exp;
branches;
next	1.25;
commitid	w9vzzFo4SWTYGLSE;

1.25
date	2023.12.05.17.58.43;	author adam;	state Exp;
branches;
next	1.24;
commitid	tAOmpwmavKlKRiPE;

1.24
date	2023.10.28.19.57.06;	author wiz;	state Exp;
branches;
next	1.23;
commitid	jP8MYROLWZ3yJqKE;

1.23
date	2023.07.17.08.59.48;	author adam;	state Exp;
branches;
next	1.22;
commitid	K0JboPSGLmTVp8xE;

1.22
date	2023.03.20.08.54.19;	author adam;	state Exp;
branches;
next	1.21;
commitid	iM8rfJhpD1CPcQhE;

1.21
date	2022.12.09.10.47.05;	author adam;	state Exp;
branches;
next	1.20;
commitid	0rmUnCq2KmQc5S4E;

1.20
date	2022.11.18.08.58.41;	author adam;	state Exp;
branches;
next	1.19;
commitid	kgZQjdOGr5MQ9a2E;

1.19
date	2022.10.21.17.42.48;	author adam;	state Exp;
branches;
next	1.18;
commitid	Cq47suZwqXfsXBYD;

1.18
date	2022.08.03.11.42.57;	author adam;	state Exp;
branches;
next	1.17;
commitid	XFdx9JpfzjrovqOD;

1.17
date	2022.03.31.21.48.45;	author wiz;	state Exp;
branches;
next	1.16;
commitid	afEmuH9FucurSpyD;

1.16
date	2022.03.31.10.42.16;	author adam;	state Exp;
branches;
next	1.15;
commitid	vEEG9VtKB7IIbmyD;

1.15
date	2022.02.21.08.31.36;	author adam;	state Exp;
branches;
next	1.14;
commitid	yC9oxMVKLlAFGstD;

1.14
date	2022.02.08.09.10.58;	author adam;	state Exp;
branches;
next	1.13;
commitid	KmnsneKgzUx4kNrD;

1.13
date	2022.02.07.08.20.04;	author wiz;	state Exp;
branches;
next	1.12;
commitid	IWKqohYzW7bB4FrD;

1.12
date	2022.02.06.22.47.02;	author wiz;	state Exp;
branches;
next	1.11;
commitid	tgRpGAvN9Eq3UBrD;

1.11
date	2022.02.02.19.04.57;	author adam;	state Exp;
branches;
next	1.10;
commitid	lVq6rjJKlS2nN4rD;

1.10
date	2022.01.04.20.53.40;	author wiz;	state Exp;
branches;
next	1.9;
commitid	CYyhdK9qtoffkmnD;

1.9
date	2021.10.26.17.24.44;	author adam;	state Exp;
branches;
next	1.8;
commitid	bERBmhKVbZsIqleD;

1.8
date	2021.04.22.12.06.38;	author adam;	state Exp;
branches;
next	1.7;
commitid	tocBUz0pXftbGhQC;

1.7
date	2020.07.06.15.43.46;	author adam;	state Exp;
branches;
next	1.6;
commitid	UoPVF0zZu4xDc2fC;

1.6
date	2020.05.16.14.00.48;	author adam;	state Exp;
branches;
next	1.5;
commitid	I0iSLBc5EHVTgt8C;

1.5
date	2019.05.02.09.18.28;	author adam;	state Exp;
branches;
next	1.4;
commitid	JAEj5i0I0X1wVBlB;

1.4
date	2019.04.26.13.13.54;	author maya;	state Exp;
branches;
next	1.3;
commitid	U4pISddzN4WXpRkB;

1.3
date	2019.01.08.09.10.11;	author adam;	state Exp;
branches;
next	1.2;
commitid	nbrwA2h3qAoOwX6B;

1.2
date	2018.08.05.10.19.16;	author adam;	state Exp;
branches;
next	1.1;
commitid	9nM405INaQrkWUMA;

1.1
date	2018.02.05.16.28.49;	author adam;	state Exp;
branches;
next	;
commitid	asybqVvsBdsPNGpA;


desc
@@


1.43
log
@py-test-asyncio: updated to 1.3.0

1.3.0

Removed

Support for Python 3.9

Added

Support for pytest 9
@
text
@# $NetBSD: Makefile,v 1.42 2025/10/28 13:25:00 adam Exp $

DISTNAME=	pytest_asyncio-1.3.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/pytest_/test-/}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytest-asyncio/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/pytest-dev/pytest-asyncio
COMMENT=	Pytest support for asyncio
LICENSE=	apache-2.0

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.2:../../devel/py-setuptools_scm
DEPENDS+=	${PYPKGPREFIX}-test>=8.2.0:../../devel/py-test
TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=6.2:../../devel/py-coverage
TEST_DEPENDS+=	${PYPKGPREFIX}-hypothesis>=5.7.1:../../devel/py-hypothesis

USE_LANGUAGES=	# none

PYTHON_VERSIONS_INCOMPATIBLE=	310 # requires backports-asyncio-runner

.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 313
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.12:../../devel/py-typing-extensions
.endif

# test status as of 1.1.0 after 'make install'
# 168 passed

# https://github.com/pytest-dev/pytest-asyncio/issues/1194
pre-configure:
	${MV} ${WRKSRC}/dependencies ${WRKSRC}/not-dependencies

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.42
log
@py-test-asyncio: updated to 1.2.0

1.2.0

Added

--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

Fixed

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]{.title-ref} mode. The warning message now refers to the correct package.

Notes for Downstream Packagers

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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2025/10/09 08:07:28 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-1.2.0
@


1.41
log
@*: remove more references to (removed) Python 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2025/08/22 10:30:00 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-1.1.0
d21 7
@


1.40
log
@py-test-asyncio: update to 1.1.0.

Added

    Propagation of ContextVars from async fixtures to other fixtures and tests on Python 3.10 and older (#127)
    Cancellation of tasks when the loop_scope ends (#200)
    Warning when the current event loop is closed by a test

Fixed

    Error about missing loop when calling functions requiring a loop in the finally clause of a task (#878)
    An error that could cause duplicate warnings to be issued

Notes for Downstream Packagers

    Added runtime dependency on backports.asyncio.runner for use with Python 3.10 and older
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2025/06/13 08:59:40 adam Exp $
a27 5
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 310
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.12:../../devel/py-typing-extensions
.endif

@


1.39
log
@py-test-asyncio: updated to 1.0.0

1.0.0

Removed

- The deprecated *event_loop* fixture.

Added

- Prelimiary support for Python 3.14

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.
- 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``.

Fixed

- An error caused when using pytest's `--setup-plan` option.
- Unsuppressed import errors with pytest option ``--doctest-ignore-import-errors``
- A "fixture not found" error in connection with package-scoped loops

Notes for Downstream Packagers

- Removed a test that had an ordering dependency on other tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2025/04/12 21:15:36 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-1.0.0
d21 7
@


1.38
log
@py-test-asyncio: updated to 0.26.0

0.26.0
Adds configuration option that sets default event loop scope for all tests
Improved type annotations for pytest_asyncio.fixture
Added typing-extensions as additional dependency for Python <3.10
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2025/01/29 08:09:00 adam Exp $
d3 2
a4 2
DISTNAME=	pytest_asyncio-0.26.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
@


1.37
log
@py-test-asyncio: updated to 0.25.3

0.25.3 (2025-01-28)
- Avoid errors in cleanup of async generators when event loop is already closed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2025/01/08 10:03:44 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.25.3
d13 1
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=51.0:../../devel/py-setuptools
d21 5
@


1.36
log
@py-test-asyncio: updated to 0.25.2

0.25.2 (2025-01-08)

- Call ``loop.shutdown_asyncgens()`` before closing the event loop to ensure async generators are closed in the same manner as ``asyncio.run`` does
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2025/01/02 14:17:14 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.25.2
@


1.35
log
@py-test-asyncio: updated to 0.25.1

0.25.1

Fixes an issue that caused a broken event loop when a function-scoped test was executed in between two tests with wider loop scope
Improves test collection speed in auto mode
Corrects the warning that is emitted upon redefining the event_loop fixture
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2024/12/16 05:49:13 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.25.1
@


1.34
log
@py-test-asyncio: updated to 0.25.0

0.25.0 (2024-12-13)

Deprecated: Added warning when asyncio test requests async @@pytest.fixture in strict mode. This will become an error in a future version of flake8-asyncio.
Updates the error message about pytest.mark.asyncio's scope keyword argument to say loop_scope instead.
Verbose log displays correct parameter name: asyncio_default_fixture_loop_scope
Propagates contextvars set in async fixtures to other fixtures and tests on Python 3.11 and above.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2024/11/11 07:28:24 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.25.0
@


1.33
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2024/08/23 13:26:10 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.24.0
@


1.32
log
@py-test-asyncio: updated to 0.24.0

0.24.0 (2024-08-22)

- BREAKING: Updated minimum supported pytest version to v8.2.0
- Adds an optional `loop_scope` keyword argument to `pytest.mark.asyncio`. This argument controls which event loop is used to run the marked async test.
- Deprecates the optional `scope` keyword argument to `pytest.mark.asyncio` for API consistency with ``pytest_asyncio.fixture``. Users are encouraged to use the `loop_scope` keyword argument, which does exactly the same.
- Raises an error when passing `scope` or `loop_scope` as a positional argument to ``@@pytest.mark.asyncio``.
- Fixes a bug that caused module-scoped async fixtures to fail when reused in other modules
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2024/07/19 07:06:31 adam Exp $
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel>=0.36:../../devel/py-wheel
@


1.31
log
@py-test-asyncio: updated to 0.23.8

0.23.8 (2024-07-17)

- Fixes a bug that caused duplicate markers in async tests
- Declare support for Python 3.13
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2024/05/20 07:43:16 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.23.8
d16 1
a16 1
DEPENDS+=	${PYPKGPREFIX}-test>=7.0.0:../../devel/py-test
a21 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.30
log
@py-test-asyncio: updated to 0.23.7

0.23.7 (2024-05-19)

- Silence deprecation warnings about unclosed event loops that occurred with certain CPython patch releases
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2024/03/20 13:41:17 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_asyncio-0.23.7
@


1.29
log
@py-test-asyncio: updated to 0.23.6

0.23.6 (2024-03-19)
===================
- Fix compatibility with pytest 8.2

Known issues
------------
As of v0.23, pytest-asyncio attaches an asyncio event loop to each item of the test suite (i.e. session, packages, modules, classes, functions) and allows tests to be run in those loops when marked accordingly. Pytest-asyncio currently assumes that async fixture scope is correlated with the new event loop scope. This prevents fixtures from being evaluated independently from the event loop scope and breaks some existing test suites. For example, a test suite may require all fixtures and tests to run in the same event loop, but have async fixtures that are set up and torn down for each module. If you're affected by this issue, please continue using the v0.21 release, until it is resolved.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2024/02/10 07:28:09 adam Exp $
d3 2
a4 2
DISTNAME=	pytest-asyncio-0.23.6
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
@


1.28
log
@py-test-asyncio: updated to 0.23.5

0.23.5 (2024-02-09)
===================
- Declare compatibility with pytest 8
- Fix typing errors with recent versions of mypy
- Prevent DeprecationWarning about internal use of `asyncio.get_event_loop()` from affecting test cases
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2024/01/29 09:35:22 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.23.5
@


1.27
log
@py-test-asyncio: updated to 0.23.4

0.23.4 (2024-01-28)
===================
- pytest-asyncio no longer imports additional, unrelated packages during test collection
- Addresses further issues that caused an internal pytest error during test collection
- Declares incompatibility with pytest 8

Known issues
------------
As of v0.23, pytest-asyncio attaches an asyncio event loop to each item of the test suite (i.e. session, packages, modules, classes, functions) and allows tests to be run in those loops when marked accordingly. Pytest-asyncio currently assumes that async fixture scope is correlated with the new event loop scope. This prevents fixtures from being evaluated independently from the event loop scope and breaks some existing test suites. For example, a test suite may require all fixtures and tests to run in the same event loop, but have async fixtures that are set up and torn down for each module. If you're affected by this issue, please continue using the v0.21 release, until it is resolved.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2024/01/01 17:03:13 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.23.4
@


1.26
log
@py-test-asyncio: updated to 0.23.3

0.23.3 (2024-01-01)

Fixes a bug that caused event loops to be closed prematurely when using async generator fixtures with class scope or wider in a function-scoped test
Fixes various bugs that caused an internal pytest error during test collection
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2023/12/05 17:58:43 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.23.3
@


1.25
log
@py-test-asyncio: updated to 0.23.2

0.23.2 (2023-12-04)
===================
- Fixes a bug that caused an internal pytest error when collecting .txt files


0.23.1 (2023-12-03)
===================
- Fixes a bug that caused an internal pytest error when using module-level skips


0.23.0 (2023-12-03)
===================
This release is backwards-compatible with v0.21.
Changes are non-breaking, unless you upgrade from v0.22.

- BREAKING: The *asyncio_event_loop* mark has been removed. Event loops with class, module, package, and session scopes can be requested via the *scope* keyword argument to the _asyncio_ mark.
- Introduces the *event_loop_policy* fixture which allows testing with non-default or multiple event loops
- Introduces ``pytest_asyncio.is_async_test`` which returns whether a test item is managed by pytest-asyncio
- Removes and *pytest-trio,* *mypy,* and *flaky* from the test dependencies

0.22.0 (2023-10-31)
===================
This release has been yanked from PyPI due to fundamental issues with the _asyncio_event_loop_ mark.

- Class-scoped and module-scoped event loops can be requested
  via the _asyncio_event_loop_ mark.
- Deprecate redefinition of the `event_loop` fixture.
  Users requiring a class-scoped or module-scoped asyncio event loop for their tests
  should mark the corresponding class or module with `asyncio_event_loop`.
- Test items based on asynchronous generators always exit with *xfail* status and emit a warning during the collection phase. This behavior is consistent with synchronous yield tests.
- Remove support for Python 3.7
- Declare support for Python 3.12
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2023/10/28 19:57:06 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.23.2
@


1.24
log
@python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2023/07/17 08:59:48 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.21.1
a4 1
PKGREVISION=	1
d13 1
a18 3
TEST_DEPENDS+=	${PYPKGPREFIX}-flaky>=3.5.0:../../devel/py-flaky
TEST_DEPENDS+=	${PYPKGPREFIX}-mypy>=0.931:../../lang/py-mypy
TEST_DEPENDS+=	${PYPKGPREFIX}-test-trio>=0.7.0:../../devel/py-test-trio
a23 5
# package needs to be installed before testing, next line is not enough
#TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}

@


1.23
log
@py-test-asyncio: updated to 0.21.1

0.21.1 (2023-07-12)
===================
- 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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2023/03/20 08:54:19 adam Exp $
d5 1
@


1.22
log
@py-test-asyncio: updated to 0.21.0

0.21.0 (23-03-19)

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. This behavior has been deprecated and pytest-asyncio emits a
DeprecationWarning when tearing down the event_loop fixture and current event loop
has not been closed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2022/12/09 10:47:05 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.21.0
@


1.21
log
@py-test-asyncio: updated to 0.20.3

0.20.3 (22-12-08)
=================
- Prevent DeprecationWarning to bubble up on CPython 3.10.9 and 3.11.1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2022/11/18 08:58:41 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.20.3
d15 2
a16 2
DEPENDS+=	${PYPKGPREFIX}-test>=6.1.0:../../devel/py-test
TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=5.2:../../devel/py-coverage
@


1.20
log
@py-test-asyncio: updated to 0.20.2

0.20.2 (22-11-11)
=================
- Fixes an issue with async fixtures that are defined as methods on a test class not being rebound to the actual test instance.
- Replaced usage of deprecated ``@@pytest.mark.tryfirst`` with ``@@pytest.hookimpl(tryfirst=True)``
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2022/10/21 17:42:48 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.20.2
d13 2
a14 2
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.2:../../devel/py-setuptools_scm
BUILD_DEPENDS+=	${PYPKGPREFIX}-wheel>=0.36:../../devel/py-wheel
@


1.19
log
@py-test-asyncio: updated to 0.20.1

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.

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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2022/08/03 11:42:57 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.20.1
a25 6
.include "../../lang/python/pyversion.mk"

.if ${_PYTHON_VERSION} < 38
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=3.7.2:../../devel/py-typing-extensions
.endif

@


1.18
log
@py-test-asyncio: updated to 0.19.0

0.19.0 (22-07-13)
=================
- BREAKING: The default ``asyncio_mode`` is now *strict*.
- Removes `setup.py` since all relevant configuration is present `setup.cfg`. Users requiring an editable installation of pytest-asyncio need to use pip v21.1 or newer.
- Declare support for Python 3.11.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2022/03/31 21:48:45 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.19.0
d20 1
a20 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-trio-[0-9]*:../../devel/py-test-trio
@


1.17
log
@py-test-asyncio: add new test dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2022/03/31 10:42:16 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.18.3
d13 2
a15 1
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.2:../../devel/py-setuptools_scm
d37 1
a37 1
.include "../../lang/python/egg.mk"
@


1.16
log
@py-test-asyncio: updated to 0.18.3

0.18.3 (22-03-25)
=================
- Adds `pytest-trio <https://pypi.org/project/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.

0.18.2 (22-03-03)
=================
- Fix asyncio auto mode not marking static methods.
- Fix a compatibility issue with Hypothesis 6.39.0.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2022/02/21 08:31:36 adam Exp $
d19 1
d24 1
d26 1
d31 2
a32 1
# package needs to be installed before testing
@


1.15
log
@py-test-asyncio: updated to 0.18.1

0.18.1

Fixes a regression that prevented async fixtures from working in
synchronous tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2022/02/08 09:10:58 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.18.1
@


1.14
log
@py-test-asyncio: updated to 0.18.0

0.18.0
Raise a warning if @@pytest.mark.asyncio is applied to non-async function.
Support parametrized event_loop fixture.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2022/02/07 08:20:04 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.18.0
@


1.13
log
@py-test-asyncio: add comment that this needs to be installed for testing
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2022/02/06 22:47:02 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.17.2
d15 1
a15 1
TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>0:../../devel/py-coverage
d25 1
a25 1
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions
@


1.12
log
@py-test-asyncio: add missing build dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2022/02/02 19:04:57 adam Exp $
d28 1
d30 1
a30 1
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
@


1.11
log
@py-test-asyncio: updated to 0.17.2

0.17.2 (22-01-17)

Require typing-extensions on Python<3.8 only.
Fix a regression in tests collection introduced by 0.17.1, the
plugin works fine with non-python tests again.


0.17.1 (22-01-16)

Fixes a bug that prevents async Hypothesis tests from working
without explicit asyncio marker when --asyncio-mode=auto is set.
Fixed a bug that closes the default event loop if the loop doesn't
exist
Added type annotations.
Show asyncio mode in pytest report headers.
Relax asyncio_mode type definition; it allows to support pytest
6.1+.


0.17.0 (22-01-13)
[pytest-asyncio]{.title-ref} no longer alters existing event loop
policies.
Drop support for Python 3.6
Fixed an issue when pytest-asyncio was used in combination with
[flaky]{.title-ref} or inherited asynchronous Hypothesis tests.
Added flaky to test dependencies
Added unused_udp_port and unused_udp_port_factory fixtures
(similar to unused_tcp_port and unused_tcp_port_factory
counterparts.
Added the plugin modes: strict, auto, and legacy. See
documentation
for details.
Correctly process KeyboardInterrupt during async fixture setup
phase
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2022/01/04 20:53:40 wiz Exp $
d14 1
@


1.10
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/10/26 17:24:44 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.16.0
a4 1
PKGREVISION=	1
d13 5
a17 1
DEPENDS+=	${PYPKGPREFIX}-test>=5.4.0:../../devel/py-test
d22 7
@


1.9
log
@py-test-asyncio: updated to 0.16.0

0.16.0
Add support for Python 3.10
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2021/04/22 12:06:38 adam Exp $
d5 1
@


1.8
log
@py-test-asyncio: updated to 0.15.1

0.15.1 (2021-04-22)

Hotfix for errors while closing event loops while replacing them.

0.15.0 (2021-04-19)

Add support for Python 3.9
Abandon support for Python 3.5. If you still require support for Python 3.5, please use pytest-asyncio v0.14 or earlier.
Set unused_tcp_port_factory fixture scope to 'session'.
Properly close event loops when replacing them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/07/06 15:43:46 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.15.1
@


1.7
log
@py-test-asyncio: updated to 0.14.0

0.14.0:
Fix 162, and event_loop fixture behavior now is coherent on all scopes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2020/05/16 14:00:48 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.14.0
@


1.6
log
@py-test-asyncio: updated to 0.12.0

0.12.0:
Run the event loop fixture as soon as possible. This helps with fixtures that have an implicit dependency on the event loop.

0.11.0:
Test on 3.8, drop 3.3 and 3.4. Stick to 0.10 for these versions.
Use the new Pytest 5.4.0 Function API. We therefore depend on pytest >= 5.4.0.
Better pytest.skip support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/05/02 09:18:28 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.12.0
@


1.5
log
@Forget about Python 3.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/04/26 13:13:54 maya Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.10.0
d13 1
a13 1
DEPENDS+=	${PYPKGPREFIX}-test>=3.0.6:../../devel/py-test
@


1.4
log
@Omit mentions of python 34 and 35, after those were removed.

- Includes some whitespace changes, to be handled in a separate commit.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/01/08 09:10:11 adam Exp $
a14 5
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 35
DEPENDS+=	${PYPKGPREFIX}-async_generator>=1.3:../../devel/py-async_generator
.endif

@


1.3
log
@py-test-asyncio: updated to 0.10.0

0.10.0:
pytest-asyncio integrates with Hypothesis to support @@given on async test functions using asyncio.
Pytest 4.1 support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/08/05 10:19:16 adam Exp $
d22 1
a22 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 34
@


1.2
log
@py-test-asyncio: updated to 0.9.0

0.9.0:
Python 3.7 support.
Remove event_loop_process_pool fixture and pytest.mark.asyncio_process_pool marker.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/02/05 16:28:49 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.9.0
d13 4
d18 1
a18 1
DEPENDS+=	${PYPKGPREFIX}-test>=3.0.6:../../devel/py-test
@


1.1
log
@py-test-asyncio: added version 0.8.0

pytest-asyncio is a library, written in Python, for testing asyncio code with
pytest.

asyncio code is usually written in the form of coroutines, which makes it
slightly more difficult to test using normal testing tools. pytest-asyncio
provides useful fixtures and markers to make testing easier.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	pytest-asyncio-0.8.0
@

