Skip to content

Commit e18a58a

Browse files
committed
pyproject.toml: requires numpy2 which is >= 3.9
1 parent 7142abe commit e18a58a

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies = [
4646
"numpy",
4747
"pip",
4848
]
49-
requires-python = '>=3.8'
49+
requires-python = '>=3.9'
5050

5151
[tool.setuptools]
5252
packages = ["talib"]

tools/build_wheel_linux.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,30 @@ if [ $? -ne 0 ]; then
1313
exit 1
1414
fi
1515

16+
# Download TA-Lib Python
17+
curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-${TALIB_PY_VER}.zip
18+
if [ $? -ne 0 ]; then
19+
echo "Failed to download TA-Lib Python library"
20+
exit 1
21+
fi
22+
1623
# Unzip TA-Lib C
1724
unzip -q talib-c.zip
1825
if [ $? -ne 0 ]; then
1926
echo "Failed to extract TA-Lib C library"
2027
exit 1
2128
fi
2229

30+
# Unzip TA-Lib Python
31+
unzip -q talib-python.zip -d ta-lib-python
32+
if [ $? -ne 0 ]; then
33+
echo "Failed to extract TA-Lib Python library"
34+
exit 1
35+
fi
36+
37+
mv ta-lib-python/ta-lib-python-TA_Lib-${TALIB_PY_VER}/* .
38+
rm -r ta-lib-python
39+
2340
# cd to TA-Lib C
2441
cd ta-lib-${TALIB_C_VER}
2542

tools/build_wheel_macos.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,30 @@ if [ $? -ne 0 ]; then
1313
exit 1
1414
fi
1515

16+
# Download TA-Lib Python
17+
curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-${TALIB_PY_VER}.zip
18+
if [ $? -ne 0 ]; then
19+
echo "Failed to download TA-Lib Python library"
20+
exit 1
21+
fi
22+
1623
# Unzip TA-Lib C
1724
unzip -q talib-c.zip
1825
if [ $? -ne 0 ]; then
1926
echo "Failed to extract TA-Lib C library"
2027
exit 1
2128
fi
2229

30+
# Unzip TA-Lib Python
31+
unzip -q talib-python.zip -d ta-lib-python
32+
if [ $? -ne 0 ]; then
33+
echo "Failed to extract TA-Lib Python library"
34+
exit 1
35+
fi
36+
37+
mv ta-lib-python/ta-lib-python-TA_Lib-${TALIB_PY_VER}/* .
38+
rm -r ta-lib-python
39+
2340
# cd to TA-Lib C
2441
cd ta-lib-${TALIB_C_VER}
2542

tools/build_wheel_windows.cmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ set CMAKE_CONFIGURATION_TYPES=Release
1111
curl -L -o talib-c.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v%TALIB_C_VER%.zip
1212
if errorlevel 1 exit /B 1
1313

14+
curl -L -o talib-python.zip https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-%TALIB_PY_VER%.zip
15+
if errorlevel 1 exit /B 1
16+
1417
tar -xzvf talib-c.zip
1518
if errorlevel 1 exit /B 1
1619

20+
tar -xf talib-python.zip --strip-components=1
21+
if errorlevel 1 exit /B 1
22+
1723
:: git apply --verbose --binary talib.diff
1824
:: if errorlevel 1 exit /B 1
1925

@@ -36,4 +42,4 @@ if errorlevel 1 exit /B 1
3642

3743
copy /Y /B ta-lib-static.lib ta-lib.lib
3844

39-
endlocal
45+
endlocal

0 commit comments

Comments
 (0)