aboutsummaryrefslogtreecommitdiff
path: root/python/python3-pytest/python3-pytest.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-pytest/python3-pytest.SlackBuild')
-rw-r--r--python/python3-pytest/python3-pytest.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/python3-pytest/python3-pytest.SlackBuild b/python/python3-pytest/python3-pytest.SlackBuild
index a630532749..4cb50fc520 100644
--- a/python/python3-pytest/python3-pytest.SlackBuild
+++ b/python/python3-pytest/python3-pytest.SlackBuild
@@ -4,7 +4,7 @@
# Copyright 2018 Serban Udrea <S.Udrea@gsi.de>
# Copyright 2022-2023 Isaac Yu <isaacyu@protonmail.com>
-# Copyright 2023-2024 Jeremy Hansen <jebrhansen+SBo@gmail.com>
+# Copyright 2023-2025 Jeremy Hansen <jebrhansen+SBo@gmail.com>
# All rights reserved.
# Based on the pytest SlackBuild by Dimitris Zlatanidis Orestiada, Greece
#
@@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-pytest
SRCNAM=pytest
-VERSION=${VERSION:-8.3.3}
+VERSION=${VERSION:-9.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,6 +70,10 @@ find -L . \
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages/
+# Remove packaging requirement so we don't have a warning with pip check
+# (since it's provided in /opt/, but not detected by default
+sed -i 's|"packaging>=.*",|"packaging",|' pyproject.toml
+
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl