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 <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-04 23:29:20 +03:00
committed by Alexandru Ardelean
parent 2b8992a144
commit 0514eb8326
2 changed files with 21 additions and 2 deletions

View File

@@ -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 <ardeleanalex@gmail.com>
PKG_LICENSE:=MIT

View File

@@ -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