pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-test-xprocess py-test-xprocess: updated to 0....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff29a71fae34
branches:  trunk
changeset: 389125:ff29a71fae34
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 30 15:12:55 2022 +0000

description:
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.

diffstat:

 devel/py-test-xprocess/Makefile |  11 +++++++----
 devel/py-test-xprocess/PLIST    |  17 ++++++++++-------
 devel/py-test-xprocess/distinfo |   8 ++++----
 3 files changed, 21 insertions(+), 15 deletions(-)

diffs (73 lines):

diff -r 34a4caaa2c0f -r ff29a71fae34 devel/py-test-xprocess/Makefile
--- a/devel/py-test-xprocess/Makefile   Wed Nov 30 15:08:31 2022 +0000
+++ b/devel/py-test-xprocess/Makefile   Wed Nov 30 15:12:55 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2022/01/04 20:53:43 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2022/11/30 15:12:55 adam Exp $
 
-DISTNAME=      pytest-xprocess-0.17.1
+DISTNAME=      pytest-xprocess-0.21.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-xprocess/}
 
@@ -11,13 +10,17 @@
 COMMENT=       Pytest plugin to manage external processes across test runs
 LICENSE=       mit
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=1.15.0:../../devel/py-setuptools_scm
 DEPENDS+=      ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
+DEPENDS+=      ${PYPKGPREFIX}-py-[0-9]*:../../devel/py-py
 DEPENDS+=      ${PYPKGPREFIX}-test>=2.8:../../devel/py-test
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 34a4caaa2c0f -r ff29a71fae34 devel/py-test-xprocess/PLIST
--- a/devel/py-test-xprocess/PLIST      Wed Nov 30 15:08:31 2022 +0000
+++ b/devel/py-test-xprocess/PLIST      Wed Nov 30 15:12:55 2022 +0000
@@ -1,13 +1,16 @@
-@comment $NetBSD: PLIST,v 1.1 2019/02/25 08:47:03 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/11/30 15:12:55 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/pytest_xprocess.py
-${PYSITELIB}/pytest_xprocess.pyc
-${PYSITELIB}/pytest_xprocess.pyo
-${PYSITELIB}/xprocess.py
-${PYSITELIB}/xprocess.pyc
-${PYSITELIB}/xprocess.pyo
+${PYSITELIB}/xprocess/__init__.py
+${PYSITELIB}/xprocess/__init__.pyc
+${PYSITELIB}/xprocess/__init__.pyo
+${PYSITELIB}/xprocess/pytest_xprocess.py
+${PYSITELIB}/xprocess/pytest_xprocess.pyc
+${PYSITELIB}/xprocess/pytest_xprocess.pyo
+${PYSITELIB}/xprocess/xprocess.py
+${PYSITELIB}/xprocess/xprocess.pyc
+${PYSITELIB}/xprocess/xprocess.pyo
diff -r 34a4caaa2c0f -r ff29a71fae34 devel/py-test-xprocess/distinfo
--- a/devel/py-test-xprocess/distinfo   Wed Nov 30 15:08:31 2022 +0000
+++ b/devel/py-test-xprocess/distinfo   Wed Nov 30 15:12:55 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:19:10 nia Exp $
+$NetBSD: distinfo,v 1.7 2022/11/30 15:12:55 adam Exp $
 
-BLAKE2s (pytest-xprocess-0.17.1.tar.gz) = 826236c1c4de989ef8a456a9f991eba6529c96e0dbb54c1b991c5b259ce7d3c2
-SHA512 (pytest-xprocess-0.17.1.tar.gz) = 68ee3c8e958f7121d72aca81c32edb7598eb99c3cf6c38fb9c8577ac4860e8241e1da16a44e825204977d6ffa4459fe2742b2ef3b906071a64cd0fcc14920be1
-Size (pytest-xprocess-0.17.1.tar.gz) = 19758 bytes
+BLAKE2s (pytest-xprocess-0.21.0.tar.gz) = 7d4e8490eb3463c71a667b61f337f8f9cb4ebff442bc1c58ba8e99610bd12818
+SHA512 (pytest-xprocess-0.21.0.tar.gz) = 72f8db45a11cffb65302379c1690ef5ad9d71a1aa40b7fd03e1231f7ad0c0413638f7d2155f5b366d2d623399512759d8ffdac8591eb24b77562f9b1f584ed74
+Size (pytest-xprocess-0.21.0.tar.gz) = 30601 bytes



Home | Main Index | Thread Index | Old Index