From 37cee3329ca5d275fdc9544712b1970ac10234cd Mon Sep 17 00:00:00 2001 From: mferrera Date: Mon, 20 Nov 2023 09:08:41 +0100 Subject: [PATCH] BLD: Support Python 3.12 --- .github/workflows/ci-test-xtgeo-cibuildwheel.yml | 2 +- .github/workflows/linting.yml | 2 +- .github/workflows/mypy.yml | 2 +- .github/workflows/test.yml | 6 +++--- pyproject.toml | 4 +++- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-test-xtgeo-cibuildwheel.yml b/.github/workflows/ci-test-xtgeo-cibuildwheel.yml index 73dbdb559..2f064bd28 100644 --- a/.github/workflows/ci-test-xtgeo-cibuildwheel.yml +++ b/.github/workflows/ci-test-xtgeo-cibuildwheel.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - cibw_python: [cp38, cp39, cp310, cp311] + cibw_python: [cp38, cp39, cp310, cp311, cp312] os: - runs_on: ubuntu-latest cibw_image: manylinux_x86_64 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 1c5af2afc..cd8587998 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -13,7 +13,7 @@ jobs: - name: Setup xtgeo uses: "./.github/actions/setup_xtgeo" with: - python-version: 3.11 + python-version: 3.12 - name: List dependencies run: pip freeze diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 5aeac641f..5db5fb767 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -13,7 +13,7 @@ jobs: - name: Setup xtgeo uses: "./.github/actions/setup_xtgeo" with: - python-version: 3.11 + python-version: 3.12 - name: List dependencies run: pip freeze diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7bc1f40e..1ee88a209 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,17 +10,17 @@ jobs: test: strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest] include: - os: macos-latest python-version: 3.8 - os: macos-latest - python-version: 3.11 + python-version: 3.12 - os: windows-latest python-version: 3.8 - os: windows-latest - python-version: 3.11 + python-version: 3.12 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index e34380ed1..769cabc28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ requires = [ "numpy==1.19.5; python_version == '3.9'", "numpy==1.21.6; python_version == '3.10'", "numpy==1.23.5; python_version == '3.11'", + "numpy==1.26.2; python_version == '3.12'", ] build-backend = "scikit_build_core.build" @@ -38,6 +39,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Libraries", @@ -97,7 +99,7 @@ docs = [ [tool.black] line-length = 88 -target-version = ["py38", "py39", "py310", "py311"] +target-version = ["py38", "py39", "py310", "py311", "py312"] include = '\.pyi?$' exclude = ''' /(