Skip to content

Commit e499f3f

Browse files
committed
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.
1 parent ee40529 commit e499f3f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
id: talib_c
2222
run: |
2323
set -euo pipefail
24-
V=$(sed -n 's/^ TALIB_C_VER: *//p' .github/workflows/wheels.yml)
25-
[ -n "$V" ] || { echo "::error::no TALIB_C_VER in wheels.yml"; exit 1; }
24+
V=$(sed -n "s/^TALIB_C_VERSION = '\(.*\)'$/\1/p" setup.py)
25+
[ -n "$V" ] || { echo "::error::no TALIB_C_VERSION in setup.py"; exit 1; }
2626
echo "version=$V" >> "$GITHUB_OUTPUT"
2727
2828
- name: Set up TA-Lib

‎.github/workflows/wheels.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
workflow_dispatch:
88

99
env:
10-
TALIB_C_VER: 0.8.1
1110
PIP_NO_VERIFY: 0
1211
PIP_VERBOSE: 1
1312
CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy

0 commit comments

Comments
 (0)