pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-test-xdist
Module Name: pkgsrc
Committed By: adam
Date: Mon Oct 31 12:32:31 UTC 2022
Modified Files:
pkgsrc/devel/py-test-xdist: Makefile PLIST distinfo
Log Message:
py-test-xdist: updated to 3.0.2
pytest-xdist 3.0.2 (2022-10-25)
===============================
Bug Fixes
---------
- Cancel shutdown when a crashed worker is restarted.
Deprecations
------------
- The ``--rsyncdir`` command line argument and ``rsyncdirs`` config variable are deprecated.
The rsync feature will be removed in pytest-xdist 4.0.
- The ``--looponfail`` command line argument and ``looponfailroots`` config variable are deprecated.
The loop-on-fail feature will be removed in pytest-xdist 4.0.
Improved Documentation
----------------------
- Document the ``pytest_xdist_auto_num_workers`` hook.
- Added known limitations section to documentation.
- Document the ``-n logical`` option.
Features
--------
- The environment variable ``PYTEST_XDIST_AUTO_NUM_WORKERS`` can now be used to
specify the default for ``-n auto`` and ``-n logical``.
- Partially restore old initial batch distribution algorithm in ``LoadScheduling``.
pytest orders tests for optimal sequential execution - i. e. avoiding
unnecessary setup and teardown of fixtures. So executing tests in consecutive
chunks is important for optimal performance.
In v1.14, initial test distribution in ``LoadScheduling`` was changed to
round-robin, optimized for the corner case, when the number of tests is less
than ``2 * number of nodes``. At the same time, it became worse for all other
cases.
For example: if some tests use some "heavy" fixture, and these tests fit into
the initial batch, with round-robin distribution the fixture will be created
``min(n_tests, n_workers)`` times, no matter how many other tests there are.
With the old algorithm (before v1.14), if there are enough tests not using
the fixture, the fixture was created only once.
So restore the old behavior for typical cases where the number of tests is
much greater than the number of workers (or, strictly speaking, when there
are at least 2 tests for every node).
Removals
--------
- The ``--boxed`` command-line option has been removed. If you still need this functionality, install `pytest-forked <https://pypi.org/project/pytest-forked>`__ separately.
Trivial Changes
---------------
- The ``py`` dependency has been dropped.
- Replace internal usage of ``py.log`` with a custom solution (but with the same interface).
- Remove usage of ``py._pydir`` as an rsync candidate.
- Replace internal usages of ``py.path.local`` by ``pathlib.Path``.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/py-test-xdist/Makefile \
pkgsrc/devel/py-test-xdist/distinfo
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-test-xdist/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-test-xdist/Makefile
diff -u pkgsrc/devel/py-test-xdist/Makefile:1.32 pkgsrc/devel/py-test-xdist/Makefile:1.33
--- pkgsrc/devel/py-test-xdist/Makefile:1.32 Wed Aug 24 10:03:24 2022
+++ pkgsrc/devel/py-test-xdist/Makefile Mon Oct 31 12:32:31 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2022/08/24 10:03:24 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2022/10/31 12:32:31 adam Exp $
-DISTNAME= pytest-xdist-2.5.0
+DISTNAME= pytest-xdist-3.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-xdist/}
@@ -13,18 +13,17 @@ LICENSE= mit
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-execnet>=1.1:../../devel/py-execnet
-DEPENDS+= ${PYPKGPREFIX}-test>=6.2:../../devel/py-test
-DEPENDS+= ${PYPKGPREFIX}-test-forked>=0:../../devel/py-test-forked
+DEPENDS+= ${PYPKGPREFIX}-test>=6.2.0:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-filelock-[0-9]*:../../devel/py-filelock
-PYTHON_VERSIONS_INCOMPATIBLE= 27
-
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
# needs to be installed for testing, this setting is not enough
TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} testing
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-xdist/distinfo
diff -u pkgsrc/devel/py-test-xdist/distinfo:1.32 pkgsrc/devel/py-test-xdist/distinfo:1.33
--- pkgsrc/devel/py-test-xdist/distinfo:1.32 Wed Aug 24 10:03:24 2022
+++ pkgsrc/devel/py-test-xdist/distinfo Mon Oct 31 12:32:31 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.32 2022/08/24 10:03:24 wiz Exp $
+$NetBSD: distinfo,v 1.33 2022/10/31 12:32:31 adam Exp $
-BLAKE2s (pytest-xdist-2.5.0.tar.gz) = c2b9a0c594349eb7c61a7b844bd2580c4209ab822b3796adb100aa8bd841c2fa
-SHA512 (pytest-xdist-2.5.0.tar.gz) = 22da4db7cdd6173fb8377b6adc30b5617ccb0bb308cb5d30980484dd7ddff87cf2a485ae8522c7957d8954dd2f8a5542b9f63b0fa7184cc44e50dbafc3f4e909
-Size (pytest-xdist-2.5.0.tar.gz) = 72455 bytes
+BLAKE2s (pytest-xdist-3.0.2.tar.gz) = f114afb23b80f976d0712237205041d00e4a8fab3a659c035c053601829f22cb
+SHA512 (pytest-xdist-3.0.2.tar.gz) = 8b03dd156b7ef82b3b0c78f8aeb83410ce3014e3764aeca4161d57fe2ad557f0316ca86dbf06ac79ddc677df3dc838161fe427b0d1d9ba9446612360eb99fbf2
+Size (pytest-xdist-3.0.2.tar.gz) = 69590 bytes
Index: pkgsrc/devel/py-test-xdist/PLIST
diff -u pkgsrc/devel/py-test-xdist/PLIST:1.6 pkgsrc/devel/py-test-xdist/PLIST:1.7
--- pkgsrc/devel/py-test-xdist/PLIST:1.6 Wed Aug 24 10:03:24 2022
+++ pkgsrc/devel/py-test-xdist/PLIST Mon Oct 31 12:32:31 2022
@@ -1,53 +1,42 @@
-@comment $NetBSD: PLIST,v 1.6 2022/08/24 10:03:24 wiz 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}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.7 2022/10/31 12:32:31 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/xdist/__init__.py
${PYSITELIB}/xdist/__init__.pyc
-${PYSITELIB}/xdist/__init__.pyo
+${PYSITELIB}/xdist/_path.py
+${PYSITELIB}/xdist/_path.pyc
${PYSITELIB}/xdist/_version.py
${PYSITELIB}/xdist/_version.pyc
-${PYSITELIB}/xdist/_version.pyo
${PYSITELIB}/xdist/dsession.py
${PYSITELIB}/xdist/dsession.pyc
-${PYSITELIB}/xdist/dsession.pyo
${PYSITELIB}/xdist/looponfail.py
${PYSITELIB}/xdist/looponfail.pyc
-${PYSITELIB}/xdist/looponfail.pyo
${PYSITELIB}/xdist/newhooks.py
${PYSITELIB}/xdist/newhooks.pyc
-${PYSITELIB}/xdist/newhooks.pyo
${PYSITELIB}/xdist/plugin.py
${PYSITELIB}/xdist/plugin.pyc
-${PYSITELIB}/xdist/plugin.pyo
${PYSITELIB}/xdist/remote.py
${PYSITELIB}/xdist/remote.pyc
-${PYSITELIB}/xdist/remote.pyo
${PYSITELIB}/xdist/report.py
${PYSITELIB}/xdist/report.pyc
-${PYSITELIB}/xdist/report.pyo
${PYSITELIB}/xdist/scheduler/__init__.py
${PYSITELIB}/xdist/scheduler/__init__.pyc
-${PYSITELIB}/xdist/scheduler/__init__.pyo
${PYSITELIB}/xdist/scheduler/each.py
${PYSITELIB}/xdist/scheduler/each.pyc
-${PYSITELIB}/xdist/scheduler/each.pyo
${PYSITELIB}/xdist/scheduler/load.py
${PYSITELIB}/xdist/scheduler/load.pyc
-${PYSITELIB}/xdist/scheduler/load.pyo
${PYSITELIB}/xdist/scheduler/loadfile.py
${PYSITELIB}/xdist/scheduler/loadfile.pyc
-${PYSITELIB}/xdist/scheduler/loadfile.pyo
${PYSITELIB}/xdist/scheduler/loadgroup.py
${PYSITELIB}/xdist/scheduler/loadgroup.pyc
-${PYSITELIB}/xdist/scheduler/loadgroup.pyo
${PYSITELIB}/xdist/scheduler/loadscope.py
${PYSITELIB}/xdist/scheduler/loadscope.pyc
-${PYSITELIB}/xdist/scheduler/loadscope.pyo
${PYSITELIB}/xdist/workermanage.py
${PYSITELIB}/xdist/workermanage.pyc
-${PYSITELIB}/xdist/workermanage.pyo
Home |
Main Index |
Thread Index |
Old Index