From 59997eda28c2afa334bd54f38d213f5df9c8ba33 Mon Sep 17 00:00:00 2001 From: mario4tier Date: Sat, 17 Oct 2026 22:31:18 -0400 Subject: [PATCH] Pin TA-Lib C only in setup.py wheels.yml no longer builds TA-Lib C, so its TALIB_C_VER was read only by tests.yml. Read the version from setup.py instead, so a bump cannot leave the shared-library test on the old release. --- .github/workflows/tests.yml | 4 ++-- .github/workflows/wheels.yml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4f2b5a04..13e25910a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,8 +21,8 @@ jobs: id: talib_c run: | set -euo pipefail - V=$(sed -n 's/^ TALIB_C_VER: *//p' .github/workflows/wheels.yml) - [ -n "$V" ] || { echo "::error::no TALIB_C_VER in wheels.yml"; exit 1; } + V=$(sed -n "s/^TALIB_C_VERSION = '\(.*\)'$/\1/p" setup.py) + [ -n "$V" ] || { echo "::error::no TALIB_C_VERSION in setup.py"; exit 1; } echo "version=$V" >> "$GITHUB_OUTPUT" - name: Set up TA-Lib diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 66ed4d4f5..429394205 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,7 +7,6 @@ on: workflow_dispatch: env: - TALIB_C_VER: 0.8.1 PIP_NO_VERIFY: 0 PIP_VERBOSE: 1 CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy