diff --git a/.github/workflows/build-ta-lib.yml b/.github/workflows/build-ta-lib.yml index 297277c3789..d08fa6b559a 100644 --- a/.github/workflows/build-ta-lib.yml +++ b/.github/workflows/build-ta-lib.yml @@ -113,9 +113,11 @@ jobs: CIBW_REPAIR_WHEEL_COMMAND_LINUX: | LD_LIBRARY_PATH="/project/ta-lib-install/lib:$LD_LIBRARY_PATH" auditwheel repair -w {dest_dir} {wheel} CIBW_BUILD_FRONTEND: build - CIBW_TEST_REQUIRES: pytest pandas - # test_polars.py imports polars unconditionally; no riscv64 polars - # wheel exists on PyPI or our registry to install it with. + # polars now has a riscv64 wheel on the registry; added so + # test_stream.py::test_a_result_pickles' inline `import polars` + # doesn't ModuleNotFoundError. test_polars.py itself stays + # ignored below (untouched, out of scope for this fix). + CIBW_TEST_REQUIRES: pytest pandas polars CIBW_TEST_COMMAND: >- cd .. && pytest -k "not RSI and not threading" --ignore={project}/tests/test_polars.py {project}/tests diff --git a/docs/packages/ta-lib.yaml b/docs/packages/ta-lib.yaml index b95d478420c..9f2bbd84a63 100644 --- a/docs/packages/ta-lib.yaml +++ b/docs/packages/ta-lib.yaml @@ -29,3 +29,4 @@ versions: - filename: ta_lib-0.8.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl sha256: bc1c16857b8397131f981dce74c27bdd85857e700f56a6be7ec630881710023e requires-python: '>=3.9' +- version: 0.8.1 diff --git a/patches/ta-lib/0.8.1/0001-Widen-license-files-to-cover-the-vendored-TA-Lib-C-l.patch b/patches/ta-lib/0.8.1/0001-Widen-license-files-to-cover-the-vendored-TA-Lib-C-l.patch new file mode 100644 index 00000000000..e263833f47c --- /dev/null +++ b/patches/ta-lib/0.8.1/0001-Widen-license-files-to-cover-the-vendored-TA-Lib-C-l.patch @@ -0,0 +1,41 @@ +From 4b6ec692350791f91c97014836fc04bb0986d102 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Thu, 24 Sep 2026 11:24:26 +0000 +Subject: [PATCH] Widen license-files to cover the vendored TA-Lib C licence + +license-files = ["LICENSE"] is an explicit PEP 639 list, so it replaces +setuptools' default LICEN[CS]E* glob rather than adding to it. The Linux, +macOS and Windows wheels dynamically link libta-lib, built from the +TA-Lib C library release that tools/build_talib_linux.sh (and its macOS/ +Windows equivalents) downloads at build time from TA-Lib/ta-lib, which is +licensed under the 3-clause BSD licence whose clause 2 requires the +copyright notice to be reproduced in binary redistributions -- but the +built wheel ships only ta-lib-python's own LICENSE. + +Widening the list to also match LICENSE.* lets a LICENSE.ta-lib-c dropped +at the project root reach dist-info/licenses/ with no other packaging +change. + +Upstream-Status: To upstream [not yet submitted; the same gap exists in every ta-lib wheel on PyPI, so this needs a maintainer discussion rather than a drive-by PR] + +Signed-off-by: Ludovic Henry +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 47d0c02f..2183be34 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -7,7 +7,7 @@ name = "TA-Lib" + version = "0.8.1" + description = "Python wrapper for TA-Lib" + readme = "README.md" +-license-files = ["LICENSE"] ++license-files = ["LICENSE", "LICENSE.*"] + authors = [ + {name = "John Benediktsson", email = "mrjbq7@gmail.com"} + ] +-- +2.43.0 +