add python 3.14 to packaging

This commit is contained in:
Arne Morten Kvarving committed 2025-10-27 16:49:06 +01:00
1 parent ae1c1f2801
commit 7ddc8bc360
6 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ ARG target_common="opmcommon_python"
ARG target_simulators="simulators"
# Default Python versions - can be overridden via build-arg or read from docker/python_versions.json
# NOTE: The list is maintained in docker/python_versions.json and docker/scripts/sync_versions.sh
ARG python_versions="3.8,3.9,3.10,3.11,3.12,3.13"
ARG python_versions="3.8,3.9,3.10,3.11,3.12,3.13,3.14"
# Finally copy all source files - only needed for wheel generation
ADD . .
RUN /bin/bash docker/scripts/generate-pypi-package.sh "$version_common" "$version_grid" "$version_simulators" "$build_jobs" "$version_tag" $libtype "$python_versions" "$target_common" "$target_simulators"
+1 -1
View File
@@ -233,7 +233,7 @@ paths and image tags.
## Build Arguments
- `libtype`: "static" (default) or "shared"
- `python_versions`: Comma-separated list of Python versions (default: "3.8,3.9,3.10,3.11,3.12,3.13")
- `python_versions`: Comma-separated list of Python versions (default: "3.8,3.9,3.10,3.11,3.12,3.13,3.14")
- `build_jobs`: Number of parallel build jobs (default: 4)
- `version_common`: Git reference for opm-common (default: "master")
- `version_grid`: Git reference for opm-grid (default: "master")
+2 -1
View File
@@ -27,7 +27,8 @@
"3.10": "3.10.16",
"3.11": "3.11.11",
"3.12": "3.12.9",
"3.13": "3.13.9"
"3.13": "3.13.9",
"3.14": "3.14.0"
},
"manylinux_platform": "manylinux_2_28_x86_64",
"_manylinux_note": "auditwheel may optimize to an older version (e.g., manylinux_2_27) for broader compatibility"
@@ -66,6 +66,7 @@ all_python_versions[3.10]="cp310-cp310:/opt/python/cp310-cp310/bin/python"
all_python_versions[3.11]="cp311-cp311:/opt/python/cp311-cp311/bin/python"
all_python_versions[3.12]="cp312-cp312:/opt/python/cp312-cp312/bin/python"
all_python_versions[3.13]="cp313-cp313:/opt/python/cp313-cp313/bin/python"
all_python_versions[3.14]="cp314-cp314:/opt/python/cp314-cp314/bin/python"
# Build python_versions array from requested versions
IFS=',' read -ra VERSIONS_ARRAY <<< "$PYTHON_VERSIONS"
@@ -76,7 +77,7 @@ for version in "${VERSIONS_ARRAY[@]}"; do
python_versions[$tag]=$path
echo "Added Python $version (tag: $tag, path: $path)"
else
echo "Warning: Python version $version not supported. Supported: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
echo "Warning: Python version $version not supported. Supported: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14"
fi
done
+2 -2
View File
@@ -80,7 +80,7 @@ $ opm-wheels build-docker-image --docker-os="debian:11"
- `--docker-os`, `-d` - OS for Docker image (default: ubuntu-22.04; legacy colon form accepted)
- Supported: `ubuntu-22.04`, `ubuntu-24.04`, `debian-11`
- `--python-versions`, `-p` - Python versions to install in container
- Supported: `3.8,3.9,3.10,3.11,3.12,3.13`
- Supported: `3.8,3.9,3.10,3.11,3.12,3.13,3.14`
- Format: comma-separated list without spaces (e.g., `3.11,3.12`)
- Default: installs all supported versions
- `--opm-simulators-repo`, `-osr` - OPM simulators repository URL
@@ -119,7 +119,7 @@ $ opm-wheels run-docker-image \
- `--docker-os`, `-d` - OS for Docker image (default: ubuntu-22.04; legacy colon form accepted)
- `--wheel-dir` - Directory containing wheel files (default: python/wheelhouse)
- `--python-versions`, `-p` - Python versions for testing
- Supported: `3.8,3.9,3.10,3.11,3.12,3.13`
- Supported: `3.8,3.9,3.10,3.11,3.12,3.13,3.14`
- Format: comma-separated list without spaces (e.g., `3.11,3.12`)
- `--host-tests-dir` - Use test directories from host instead of cloned repos
- Expects: `host-tests-dir/opm-common/python` and `host-tests-dir/opm-simulators/python`
@@ -36,7 +36,7 @@ def _get_python_versions_for_enum():
return list(config["supported_versions"].keys())
except Exception:
# Fallback to hardcoded values
return ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
return ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
# Dynamically create PythonVersion enum using functional API
_python_versions = _get_python_versions_for_enum()