Files
packages/lang/python/python-cffi/test-version.sh
T
Alexandru Ardelean 088040f3ec python-cffi: bump to 2.1.1
Refresh sha256 from PyPI sdist. Drop the macOS cross-compile patch;
2.1.1 already carries the sysconfig.get_platform() fix upstream.

Add test-version.sh: 2.1.1 ships the cffi-gen-src console tool, a
subcommand CLI with no version flag, so the generic per-executable
version probe fails the package ("No executables in the package
provided version"). test-version.sh skips that probe, and test.sh now
asserts cffi.__version__ against the packaged version.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-11 13:45:28 +03:00

17 lines
396 B
Bash
Executable File

#!/bin/sh
# shellcheck shell=busybox
# cffi 2.x ships the cffi-gen-src console tool, a subcommand CLI with no version
# flag, so the generic per-executable version check cannot read the version from
# it. The version is asserted by the import check in test.sh instead.
case "$PKG_NAME" in
python3-cffi | python3-cffi-src)
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac