Skip to content

Commit d2fe7fc

Browse files
committed
Deploy also for Python 3.13, dropping 3.9. [skip ci]
1 parent 7de12cf commit d2fe7fc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tools/build/deploy_macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# set $PYPI_TOKEN to the PyPI token for the diplib project
33

44
# Setup
5-
export PYTHON_VERSIONS=(3.9 3.10 3.11 3.12)
5+
export PYTHON_VERSIONS=(3.10 3.11 3.12 3.13)
66
for v in ${PYTHON_VERSIONS[@]}; do
77
brew install python@$v
88
done;

tools/build/deploy_windows.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ REM Run this on Windows 10 with VS C++ build tools installed
22

33
REM Get Python versions
44

5-
FOR /F "tokens=*" %%g IN ('dir C:\hostedtoolcache\windows\Python\3.9.* /B') do (SET PYTHON39=%%g)
65
FOR /F "tokens=*" %%g IN ('dir C:\hostedtoolcache\windows\Python\3.10.* /B') do (SET PYTHON310=%%g)
76
FOR /F "tokens=*" %%g IN ('dir C:\hostedtoolcache\windows\Python\3.11.* /B') do (SET PYTHON311=%%g)
87
FOR /F "tokens=*" %%g IN ('dir C:\hostedtoolcache\windows\Python\3.12.* /B') do (SET PYTHON312=%%g)
8+
FOR /F "tokens=*" %%g IN ('dir C:\hostedtoolcache\windows\Python\3.13.* /B') do (SET PYTHON313=%%g)
99

1010
REM Setup
1111
mkdir build
@@ -25,12 +25,6 @@ cd ..
2525
REM Basic configuration
2626
cmake .. -A x64 -DFREEGLUT_INCLUDE_DIR=%CD%\freeglut-3.0.0\include -DFREEGLUT_LIBRARY=%CD%\freeglut-3.0.0\build\lib\Release\freeglut_static.lib -DFREEGLUT_STATIC=On -DDIP_BUILD_DIPIMAGE=Off -DDIP_PYDIP_WHEEL_INCLUDE_LIBS=On -DDIP_ENABLE_UNICODE=Off
2727

28-
REM Python 3.9
29-
C:\hostedtoolcache\windows\Python\%PYTHON39%\x64\python.exe -m pip install setuptools wheel build
30-
cmake .. -A x64 -DPython_EXECUTABLE=C:\hostedtoolcache\windows\Python\%PYTHON39%\x64\python.exe
31-
cmake --build . --target bdist_wheel --config Release
32-
copy pydip\Release\staging\dist\*.whl wheelhouse
33-
3428
REM Python 3.10
3529
C:\hostedtoolcache\windows\Python\%PYTHON310%\x64\python.exe -m pip install setuptools wheel build
3630
cmake .. -A x64 -DPython_EXECUTABLE=C:\hostedtoolcache\windows\Python\%PYTHON310%\x64\python.exe
@@ -49,6 +43,12 @@ cmake .. -A x64 -DPython_EXECUTABLE=C:\hostedtoolcache\windows\Python\%PYTHON312
4943
cmake --build . --target bdist_wheel --config Release
5044
copy pydip\Release\staging\dist\*.whl wheelhouse
5145

46+
REM Python 3.13
47+
C:\hostedtoolcache\windows\Python\%PYTHON313%\x64\python.exe -m pip install setuptools wheel build
48+
cmake .. -A x64 -DPython_EXECUTABLE=C:\hostedtoolcache\windows\Python\%PYTHON313%\x64\python.exe
49+
cmake --build . --target bdist_wheel --config Release
50+
copy pydip\Release\staging\dist\*.whl wheelhouse
51+
5252
REM Upload to pypi.org
5353
cd wheelhouse
5454
@python -m twine upload *.whl -u __token__ -p %PYPI_TOKEN%

tools/build/manylinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ yum -y install freeglut-devel java-1.8.0-openjdk-devel.x86_64
66
/opt/python/cp39-cp39/bin/python -m pip install cmake auditwheel
77
CMAKE=/opt/python/cp39-cp39/lib/python3.9/site-packages/cmake/data/bin/cmake
88
BUILD_THREADS=4
9-
PYTHON_VERSIONS=(3.9 3.10 3.11 3.12)
9+
PYTHON_VERSIONS=(3.10 3.11 3.12 3.13)
1010
EXCLUDES=(libjvm.so libOpenGL.so.0 libGLX.so.0 libGLdispatch.so.0)
1111

1212
# /io is diplib repo

0 commit comments

Comments
 (0)