head	1.16;
access;
symbols
	pkgsrc-2026Q1:1.16.0.8
	pkgsrc-2026Q1-base:1.16
	pkgsrc-2025Q4:1.16.0.6
	pkgsrc-2025Q4-base:1.16
	pkgsrc-2025Q3:1.16.0.4
	pkgsrc-2025Q3-base:1.16
	pkgsrc-2025Q2:1.16.0.2
	pkgsrc-2025Q2-base:1.16
	pkgsrc-2025Q1:1.15.0.4
	pkgsrc-2025Q1-base:1.15
	pkgsrc-2024Q4:1.15.0.2
	pkgsrc-2024Q4-base:1.15
	pkgsrc-2024Q3:1.14.0.4
	pkgsrc-2024Q3-base:1.14
	pkgsrc-2024Q2:1.14.0.2
	pkgsrc-2024Q2-base:1.14
	pkgsrc-2024Q1:1.12.0.2
	pkgsrc-2024Q1-base:1.12
	pkgsrc-2023Q4:1.11.0.2
	pkgsrc-2023Q4-base:1.11
	pkgsrc-2023Q3:1.10.0.6
	pkgsrc-2023Q3-base:1.10
	pkgsrc-2023Q2:1.10.0.4
	pkgsrc-2023Q2-base:1.10
	pkgsrc-2023Q1:1.10.0.2
	pkgsrc-2023Q1-base:1.10
	pkgsrc-2022Q4:1.9.0.2
	pkgsrc-2022Q4-base:1.9
	pkgsrc-2022Q3:1.8.0.6
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.4
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.2
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.7.0.8
	pkgsrc-2021Q4-base:1.7
	pkgsrc-2021Q3:1.7.0.6
	pkgsrc-2021Q3-base:1.7
	pkgsrc-2021Q2:1.7.0.4
	pkgsrc-2021Q2-base:1.7
	pkgsrc-2021Q1:1.7.0.2
	pkgsrc-2021Q1-base:1.7
	pkgsrc-2020Q4:1.5.0.6
	pkgsrc-2020Q4-base:1.5
	pkgsrc-2020Q3:1.5.0.4
	pkgsrc-2020Q3-base:1.5
	pkgsrc-2020Q2:1.5.0.2
	pkgsrc-2020Q2-base:1.5
	pkgsrc-2020Q1:1.4.0.2
	pkgsrc-2020Q1-base:1.4
	pkgsrc-2019Q4:1.2.0.10
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.6
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.4
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.2
	pkgsrc-2019Q1-base:1.2;
locks; strict;
comment	@# @;


1.16
date	2025.04.12.21.10.59;	author adam;	state Exp;
branches;
next	1.15;
commitid	hogTAPDx6qJl3OQF;

1.15
date	2024.11.11.07.28.27;	author wiz;	state Exp;
branches;
next	1.14;
commitid	1fBDq3LwS98NncxF;

1.14
date	2024.05.20.07.44.37;	author adam;	state Exp;
branches;
next	1.13;
commitid	xWzznppJcIFn6IaF;

1.13
date	2024.04.03.14.56.57;	author adam;	state Exp;
branches;
next	1.12;
commitid	HGPGeTfRqkqm0I4F;

1.12
date	2024.03.24.07.37.16;	author adam;	state Exp;
branches;
next	1.11;
commitid	1W0IDOA9U53rTn3F;

1.11
date	2023.09.27.15.23.59;	author adam;	state Exp;
branches;
next	1.10;
commitid	0LXjhIUptroheqGE;

1.10
date	2023.01.24.20.10.28;	author adam;	state Exp;
branches;
next	1.9;
commitid	KnLrLnFf5W3KIPaE;

1.9
date	2022.11.30.15.12.55;	author adam;	state Exp;
branches;
next	1.8;
commitid	wrc5u7iqmA3kQJ3E;

1.8
date	2022.01.04.20.53.43;	author wiz;	state Exp;
branches;
next	1.7;
commitid	CYyhdK9qtoffkmnD;

1.7
date	2021.03.15.14.57.01;	author adam;	state Exp;
branches;
next	1.6;
commitid	qLFb29BU06ZrQpLC;

1.6
date	2021.01.21.20.19.43;	author adam;	state Exp;
branches;
next	1.5;
commitid	LbXFJTBW5LcGkDEC;

1.5
date	2020.05.16.17.38.40;	author adam;	state Exp;
branches;
next	1.4;
commitid	oSs30AomUgyOtu8C;

1.4
date	2020.03.23.09.48.37;	author tnn;	state Exp;
branches;
next	1.3;
commitid	XkcCadKnCMm2Cv1C;

1.3
date	2020.02.14.09.53.32;	author adam;	state Exp;
branches;
next	1.2;
commitid	BOAVKsnemLsvRCWB;

1.2
date	2019.02.25.08.47.37;	author adam;	state Exp;
branches;
next	1.1;
commitid	JAc1VFp0mXPsS7dB;

1.1
date	2019.02.25.08.47.03;	author adam;	state Exp;
branches;
next	;
commitid	e1ORO2zITtubS7dB;


desc
@@


1.16
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@# $NetBSD: Makefile,v 1.15 2024/11/11 07:28:27 wiz Exp $

DISTNAME=	pytest-xprocess-1.0.2
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
PKGREVISION=	1
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytest-xprocess/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/pytest-dev/pytest-xprocess
COMMENT=	Pytest plugin to manage external processes across test runs
LICENSE=	mit

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.2.3:../../devel/py-setuptools_scm
DEPENDS+=	${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
DEPENDS+=	${PYPKGPREFIX}-test>=2.8:../../devel/py-test

USE_LANGUAGES=	# none

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


1.15
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2024/05/20 07:44:37 adam Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=45.0:../../devel/py-setuptools
a20 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.14
log
@py-test-xprocess: updated to 1.0.2

1.0.2
Unknown changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2024/04/03 14:56:57 adam Exp $
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.13
log
@py-test-xprocess: updated to 1.0.1

1.0.1
Add missing test suite files to source distribution
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2024/03/24 07:37:16 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-1.0.1
@


1.12
log
@py-test-xprocess: updated to 1.0.0

1.0.0

ProcessStarter.pattern is now optional. Users may provide either ProcessStarter.pattern or ProcessStarter.callback or both.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2023/09/27 15:23:59 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-1.0.0
@


1.11
log
@py-test-xprocess: updated to 0.23.0

0.23.0 (2023-09-23)
- Drop support for Python 3.7
- Add support for Python 3.11
- Remove dependency on `py`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/01/24 20:10:28 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.23.0
d13 3
a15 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm
d23 1
a23 4
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests

.include "../../lang/python/egg.mk"
@


1.10
log
@py-test-xprocess: updated to 0.22.2

0.22.2 (2023-01-05)
-------------------
- Python 3.10 is now officially supported
- `surrogateescape` will now be used as error handling strategy for encode/decode operations.
- Make log files persistency, added in `0.21.0`, optional, defaulting to True. The previous logging behavior (prior to `0.21.0`) can be enabled by setting `persist_logs` flag to `False` when calling `XProcess.ensure`.
- Fix resource warnings due to leaked internal file handles
- Ignore zombie processes which are erroneously considered alive with python 3.11
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/11/30 15:12:55 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.22.2
a14 1
DEPENDS+=	${PYPKGPREFIX}-py-[0-9]*:../../devel/py-py
@


1.9
log
@py-test-xprocess: updated to 0.21.0

0.21.0 (2022-11-27)
-------------------

- Explicitly add `py` package as a dependency, fixing issue with `pytest` >= 7.2.0
- Process log files will not be overwritten for each new process anymore, making it
  easier to debug issues that occurred in the middle of failed test runs

0.20.0 (2022-08-29)
-------------------

- Cleanup reminders will now only be printed for verbosity
  levels equal or greater than 1

0.19.0 (2022-05-23)
-------------------

- drop support for python 3.5 and 3.6
- reorganize internals. ``pytest-xprocess`` is now a package and all resources
  used by running processes are kept as instances of :class:``XProcessResources``.

0.18.1 (2021-07-27)
-------------------

- Fix bug with previous release where internal module was missing

0.18.0 (2021-07-21)
-------------------

- :method:`ProcessInfo.terminate` will now terminate outer leaves in process
  tree first and work its way towards root process. For example, if a process
  has child and grandchild, xprocess will terminate first child and grandchild
  and only then will the root process receive a termination signal.

- :class:`ProcessStarter` now has attr:`terminate_on_interrupt`. This flag will
  make xprocess attempt to terminate and clean up all started process resources
  upon interruptions during pytest runs (`CTRL+C`, `SIGINT` and internal errors)
  when set to `True`. It will default to `False`, so if the described behaviour
  is desired the flag must be explicitly set `True`.

- Add a new `popen_kwargs` variable to `ProcessStarter`, this variable can
  be used for passing keyword values to the `subprocess.Popen` constructor,
  giving the user more control over how the process is initialized.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2022/01/04 20:53:43 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.21.0
@


1.8
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.7 2021/03/15 14:57:01 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.17.1
a4 1
PKGREVISION=	1
d13 1
a13 1
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm
d15 1
d22 3
@


1.7
log
@py-test-xprocess: updated to 0.17.1

0.17.1
- Fix `ResourceWarning` in :meth:`XProcess.ensure` caused by not properly
  waiting on process exit and leaked File handles
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2021/01/21 20:19:43 adam Exp $
d5 1
@


1.6
log
@py-test-xprocess: updated to 0.17.0

0.17.0 (2020-11-26)
-------------------
- :class:`ProcessStarter` now has :meth:`startup_check`. This method can be optionaly overridden and will be called upon to check process responsiveness
  after :attr:`ProcessStarter.pattern` is matched. By default, :meth:`XProcess.ensure` will only attempt to match :attr:`ProcessStarter.pattern` when starting a process, if matched, xprocess
  will consider the process as ready to answer queries. If :meth:`startup_check` is provided though, its return value will also be considered to determine if the process has been
  successfully started. If :meth:`startup_check` returns `True` after :attr:`ProcessStarter.pattern` has been matched, :meth:`XProcess.ensure` will return sucessfully. In contrast, if
  :meth:`startup_check` does not return `True` before timing out, :meth:`XProcess.ensure` will raise a `TimeoutError` exception.
- Remove deprecated :meth:`xprocess.CompatStarter`

0.16.0 (2020-10-29)
-------------------
- :class:`ProcessStarter` now has a new `timeout` class variable optionaly overridden to define the maximum time :meth:`xprocess.ensure` should wait for process output when trying to match :attr:`ProcessStarter.pattern`. Defaults to 120 seconds.
- The number of lines in the process logfile watched for :attr:`ProcessStarter.pattern` is now configurable and can be changed by setting :attr:`ProcessStarter.max_read_lines` to the desired value. Defaults to 50 lines.
- Make :meth:`XProcessInfo.isrunning` ignore zombie processes by default. Pass ``ignore_zombies=False`` to get the previous behavior, which was to consider zombie processes as running.

0.15.0 (2020-10-03)
-------------------
- pytest-xprocess now uses a sub-directory of `.pytest_cache` to store process related files.
- Drop support for Python 2.7
- Fixed bug when non-ascii characters were written to stdout by external
  process
- Removed deprecated :meth:`XProcessInfo.kill`

0.14.0 (2020-09-24)
-------------------
- Now ``XProcessInfo.terminate`` will by default also terminate the entire
  process tree. This is safer as there's no risk of leaving lingering processes
  behind. If for some reason you need the previous behavior of only terminating
  the root process, pass ```kill_proc_tree=False`` to ``XProcessInfo.terminate``.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2020/05/16 17:38:40 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.17.0
@


1.5
log
@pytest from versioned deps.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/03/23 09:48:37 tnn Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.13.1
d15 1
d17 1
a17 1
PYTHON_VERSIONED_DEPENDENCIES=	test
d19 1
a19 1
USE_LANGUAGES=	# none
a21 1
.include "../../lang/python/versioned_dependencies.mk"
@


1.4
log
@py-test-xprocess: needs py-setuptools_scm during build
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2020/02/14 09:53:32 adam Exp $
d15 2
a16 1
DEPENDS+=	${PYPKGPREFIX}-test>=2.8:../../devel/py-test
d21 1
@


1.3
log
@py-test-xprocess: updated to 0.13.1

0.13.1
- Drop support for Python 2.6 and 3.4.
- Ignore empty lines in log files when looking for the pattern that indicates
  a process has started.

0.13.0
- Never released due to deploy issues.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2019/02/25 08:47:37 adam Exp $
d13 1
@


1.2
log
@py-test-xprocess: cleanup
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2019/02/25 08:47:03 adam Exp $
d3 1
a3 1
DISTNAME=	pytest-xprocess-0.12.1
d14 1
a14 2
DEPENDS+=	${PYPKGPREFIX}-test>=2.3.5:../../devel/py-test
DEPENDS+=	${PYPKGPREFIX}-test-cache-[0-9]*:../../devel/py-test-cache
@


1.1
log
@py-test-xprocess: added version 0.12.1

Experimental py.test plugin for managing processes across test runs.
@
text
@d1 1
a1 1
# $NetBSD$
a18 3
#do-test:
#	cd ${WRKSRC} && pytest-${PYVERSSUFFIX} testing

@

