Skip to content
3 changes: 2 additions & 1 deletion .github/workflows/actions_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
using: "composite"
steps:
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- name: Get OS version
Expand Down Expand Up @@ -74,6 +74,7 @@ runs:
if: (inputs.os == 'macos-15') || (inputs.os == 'macos-15-intel')
env:
MATRIX_OS: ${{ inputs.os }}
MATRIX_PYTHON_VERSION: ${{ inputs.python-version }}
MATRIX_CACHE: ${{ steps.cache_opengate_core_dependencies.outputs.cache-hit }}
shell: bash -l {0}
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/actions_build/ci_build_wheel_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -e

source $GITHUB_WORKSPACE/env_dump.txt
brew install python@3.12 || true
brew link --overwrite python@3.12
brew install python@${MATRIX_PYTHON_VERSION} || true
brew link --overwrite python@${MATRIX_PYTHON_VERSION}
#brew update
#rm -rf /usr/local/bin/python3.1*-config /usr/local/bin/2to3-3.1* /usr/local/bin/idle3.1* /usr/local/bin/pydoc3.1* /usr/local/bin/python3.1*
#rm -rf /usr/local/bin/python3-config /usr/local/bin/2to3 /usr/local/bin/idle3 /usr/local/bin/pydoc3 /usr/local/bin/python3
Expand All @@ -23,7 +23,7 @@ conda list
which python
python --version
export PATH="/usr/local/miniconda/envs/opengate_core/bin/:$PATH"
pip install wget colored
pip install wget colored setuptools
pip install wheel delocate
if [[ ${MATRIX_OS} == "macos-15-intel" ]]; then
conda install conda-forge::qt6-main conda-forge::qt6-3d
Expand Down Expand Up @@ -94,4 +94,4 @@ if [[ ${MATRIX_OS} == "macos-15-intel" ]]; then
find . -name '*whl' -exec bash -c ' mv $0 ${0/macosx_15_0/macosx_10_9}' {} \;
fi
cd ../..
mv core/dist .
mv core/dist .
4 changes: 3 additions & 1 deletion .github/workflows/actions_build/ci_build_wheel_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ elif [ ${MATRIX_PYTHON_VERSION} == "3.12" ]; then
export PYTHONFOLDER="cp312-cp312"
elif [ ${MATRIX_PYTHON_VERSION} == "3.13" ]; then
export PYTHONFOLDER="cp313-cp313"
elif [ ${MATRIX_PYTHON_VERSION} == "3.14" ]; then
export PYTHONFOLDER="cp314-cp314"
fi
mkdir -p $HOME/software
if [ ${MATRIX_OS} == "ubuntu-24.04-arm" ]; then
Expand All @@ -19,4 +21,4 @@ docker run --rm -e "PYTHONFOLDER=${PYTHONFOLDER}" -v $GITHUB_WORKSPACE:/home tba
ls wheelhouse
rm -rf dist
mv wheelhouse dist
sudo chown -R runner:docker dist
sudo chown -R runner:docker dist
10 changes: 8 additions & 2 deletions .github/workflows/actions_build/ci_build_wheel_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ which python
python --version
export PATH="/usr/local/miniconda/envs/opengate_core/bin/:$PATH"
pip install wheel wget colored
pip install cibuildwheel==2.21.1
if [[ ${MATRIX_PYTHON_VERSION} == "3.10" ]]; then
pip install cibuildwheel==2.21.1
else
pip install cibuildwheel==3.3.0
fi
which pip
mkdir -p $HOME/software
if [ "${MATRIX_CACHE}" != 'true' ]; then
Expand Down Expand Up @@ -49,6 +53,8 @@ elif [[ ${MATRIX_PYTHON_VERSION} == "3.12" ]]; then
export CIBW_BUILD="cp312-win_amd64"
elif [[ ${MATRIX_PYTHON_VERSION} == "3.13" ]]; then
export CIBW_BUILD="cp313-win_amd64"
elif [[ ${MATRIX_PYTHON_VERSION} == "3.14" ]]; then
export CIBW_BUILD="cp314-win_amd64"
fi
find $HOME/software/geant4/bin/ -iname "*.dll"
ls $HOME/software/geant4/bin/BuildProducts/Release/bin
Expand All @@ -60,4 +66,4 @@ mkdir core/dist2
pip install pefile machomachomangler
ls core/dist
python $GITHUB_WORKSPACE\\.github\\workflows\\delocateWindows.py core\\dist -w core\\dist2 -d C:\\Users\\runneradmin\\software\\geant4\\bin\\BuildProducts\\Release\\bin
mv core/dist2 dist
mv core/dist2 dist
2 changes: 2 additions & 0 deletions .github/workflows/actions_tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ runs:
export PYTHONFOLDER="cp312-cp312"
elif [[ ${{ matrix.python-version }} == "3.13" ]]; then
export PYTHONFOLDER="cp313-cp313"
elif [[ ${{ matrix.python-version }} == "3.14" ]]; then
export PYTHONFOLDER="cp314-cp314"
fi
if [[ ${{ matrix.os }} == "ubuntu-24.04" ]]; then
export OSNAME="manylinux"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/createWheelLinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -e -x
echo ${PYTHONFOLDER}
ls -l /opt/python/
cd /home/core/
export PATH=/software/cmake/cmake/bin/:${PATH}
source /software/geant4/bin/geant4make.sh
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15, windows-2025]
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
exclude:
- os: macos-15
python-version: '3.10'
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-24.04-arm, macos-15-intel]
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
exclude:
- os: macos-15
python-version: '3.10'
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-24.04]
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout github repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -168,6 +168,8 @@ jobs:
export PYTHONFOLDER="cp312-cp312"
elif [ ${{ matrix.python-version }} == "3.13" ]; then
export PYTHONFOLDER="cp313-cp313"
elif [ ${{ matrix.python-version }} == "3.14" ]; then
export PYTHONFOLDER="cp314-cp314"
fi
mkdir -p $HOME/software
docker run --rm -e "PYTHONFOLDER=${PYTHONFOLDER}" -v $GITHUB_WORKSPACE:/home tbaudier/opengate_core:${{ env.GEANT4_VERSION }}_novis /home/.github/workflows/createWheelLinux_novis.sh
Expand Down Expand Up @@ -278,7 +280,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15, windows-2025]
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
exclude:
- os: macos-15
python-version: '3.10'
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ description = "Simulation for Medical Physics"
license = { file = "LICENSE.md" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
]
requires-python = ">=3.9"
requires-python = ">=3.10"

[project.optional-dependencies]
novis = ["opengate-core-novis"]
Expand Down
Loading