pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-test-randomly



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Sep  3 08:57:53 UTC 2026

Modified Files:
        pkgsrc/devel/py-test-randomly: Makefile PLIST distinfo

Log Message:
py-test-randomly: updated to 5.0.0

5.0.0 (2026-09-01)

Support Python 3.15.

Shuffle tests in a wrapper around the pytest_collection_modifyitems hook, guaranteeing that the shuffle runs before all other plugins’ implementations of the hook.

Previously, pytest-randomly shuffled in a plain tryfirst hook implementation. When another plugin also implemented the hook with tryfirst, as pytest-django does, whichever plugin pytest happened to 
register later ran first. Registration order comes from package metadata on disk, which can differ between seemingly identical environments — even two containers built from the same Dockerfile, or 
the same virtual environment after reinstalling a package. As a result, the same seed could yield different test orders in different environments. Worse, in environments where pytest-randomly ended 
up shuffling last, it silently destroyed the other plugin’s ordering — for pytest-django, the grouping of database tests that mirrors Django’s test runner (non-transactional database tests, then 
transactional ones, then the rest).

Now the shuffle always runs first, and plugins that group tests with a stable sort apply their grouping on top of the shuffled order, so the final order is reproducible from the seed alone. In 
environments that previously hit the reversed hook order, upgrading changes the test order for a given seed — restoring both reproducibility and other plugins’ grouping.

Require pytest 8+, the first version to require a version of pluggy that supports hook wrappers, as used by the above fix.

Reset Polyfactory’s default random state at the start of every test, if it is installed.

Switch package build backend from setuptools to uv_build. This makes builds with uv about nine times faster, since uv runs the backend natively, without creating a build environment or spawning a 
Python process. Additionally, source distributions no longer include test files, which setuptools previously included incompletely, missing the files needed to actually run them.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/py-test-randomly/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-test-randomly/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-test-randomly/distinfo

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-randomly/Makefile
diff -u pkgsrc/devel/py-test-randomly/Makefile:1.19 pkgsrc/devel/py-test-randomly/Makefile:1.20
--- pkgsrc/devel/py-test-randomly/Makefile:1.19 Wed Apr 22 08:02:35 2026
+++ pkgsrc/devel/py-test-randomly/Makefile      Thu Sep  3 08:57:53 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2026/04/22 08:02:35 adam Exp $
+# $NetBSD: Makefile,v 1.20 2026/09/03 08:57:53 adam Exp $
 
-DISTNAME=      pytest_randomly-4.1.0
+DISTNAME=      pytest_randomly-5.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-randomly/}
@@ -10,8 +10,8 @@ HOMEPAGE=     https://github.com/pytest-dev/
 COMMENT=       Pytest plugin to randomly order tests and control random.seed
 LICENSE=       modified-bsd
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+=      ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TOOL_DEPENDS+= ${PYPKGPREFIX}-uv-build>=0.12.1:../../devel/py-uv-build
+DEPENDS+=      ${PYPKGPREFIX}-test>=8:../../devel/py-test
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/devel/py-test-randomly/PLIST
diff -u pkgsrc/devel/py-test-randomly/PLIST:1.6 pkgsrc/devel/py-test-randomly/PLIST:1.7
--- pkgsrc/devel/py-test-randomly/PLIST:1.6     Sat Apr 12 21:10:58 2025
+++ pkgsrc/devel/py-test-randomly/PLIST Thu Sep  3 08:57:53 2026
@@ -1,10 +1,9 @@
-@comment $NetBSD: PLIST,v 1.6 2025/04/12 21:10:58 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2026/09/03 08:57:53 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/pytest_randomly/__init__.py
 ${PYSITELIB}/pytest_randomly/__init__.pyc
 ${PYSITELIB}/pytest_randomly/__init__.pyo

Index: pkgsrc/devel/py-test-randomly/distinfo
diff -u pkgsrc/devel/py-test-randomly/distinfo:1.14 pkgsrc/devel/py-test-randomly/distinfo:1.15
--- pkgsrc/devel/py-test-randomly/distinfo:1.14 Wed Apr 22 08:02:35 2026
+++ pkgsrc/devel/py-test-randomly/distinfo      Thu Sep  3 08:57:53 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2026/04/22 08:02:35 adam Exp $
+$NetBSD: distinfo,v 1.15 2026/09/03 08:57:53 adam Exp $
 
-BLAKE2s (pytest_randomly-4.1.0.tar.gz) = 9393ed89abeb83f9e647694d27e98ee7a9c5a1635a4e67a4232adc66bf73d8e0
-SHA512 (pytest_randomly-4.1.0.tar.gz) = e911a2de6067bae834aa9b7b529a0e62bc3820c4fb6aa8ad753b16c0fbb5d0f8c53d26a2c806c8ba3d8f34ebb6c7aa21802d651d73054b97a870389e465b3bde
-Size (pytest_randomly-4.1.0.tar.gz) = 14302 bytes
+BLAKE2s (pytest_randomly-5.0.0.tar.gz) = 31ce26c381688995a1a588ef9062e684baaee71ab182f84a1a813f37a66c56f5
+SHA512 (pytest_randomly-5.0.0.tar.gz) = e63fa9904d261b1f141239709b1084fcdf5c9551a53a1a6a1f691dad7d58a2f25e10a09414737b1f0822329d6c96ecbf73f998abc44a4ae0e6b9704e6ab0b4c1
+Size (pytest_randomly-5.0.0.tar.gz) = 8542 bytes



Home | Main Index | Thread Index | Old Index