mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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:
committed by
Alexandru Ardelean
parent
2b8992a144
commit
0514eb8326
@@ -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
|
||||
|
||||
18
lang/python/python-pytest-xdist/test.sh
Normal file
18
lang/python/python-pytest-xdist/test.sh
Normal 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
|
||||
Reference in New Issue
Block a user