From 0514eb8326a9cc0c0c60139bed4b58b3a8cbd62a Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sat, 4 Apr 2026 23:29:20 +0300 Subject: [PATCH] python-pytest-xdist: update to 3.8.0 Update package to 3.8.0. Add PYPI_SOURCE_NAME since PyPI switched sdist filename to use underscores (pytest_xdist-3.8.0.tar.gz). Add test.sh to verify basic plugin functionality. Signed-off-by: Alexandru Ardelean --- lang/python/python-pytest-xdist/Makefile | 5 +++-- lang/python/python-pytest-xdist/test.sh | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 lang/python/python-pytest-xdist/test.sh diff --git a/lang/python/python-pytest-xdist/Makefile b/lang/python/python-pytest-xdist/Makefile index 041f1ac013..3ffd04bd64 100644 --- a/lang/python/python-pytest-xdist/Makefile +++ b/lang/python/python-pytest-xdist/Makefile @@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pytest-xdist -PKG_VERSION:=3.3.1 +PKG_VERSION:=3.8.0 PKG_RELEASE:=1 PYPI_NAME:=pytest-xdist -PKG_HASH:=d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93 +PYPI_SOURCE_NAME:=pytest_xdist +PKG_HASH:=7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=MIT diff --git a/lang/python/python-pytest-xdist/test.sh b/lang/python/python-pytest-xdist/test.sh new file mode 100644 index 0000000000..d6a21688c8 --- /dev/null +++ b/lang/python/python-pytest-xdist/test.sh @@ -0,0 +1,18 @@ +#!/bin/sh +[ "$1" = python3-pytest-xdist ] || exit 0 + +python3 - << 'EOF' +import xdist +import xdist.plugin +import xdist.scheduler + +# Verify version +assert xdist.__version__, "xdist version is empty" + +# Verify key scheduler classes are importable +from xdist.scheduler import LoadScheduling, EachScheduling +sched = LoadScheduling.__name__ +assert sched == 'LoadScheduling' + +print("pytest-xdist OK") +EOF