Skip to content

Commit

Permalink
BLD: Support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Nov 20, 2023
1 parent 90d16b0 commit fb9f3f2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-xtgeo-cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.23.5; python_version == '3.12'",
]
build-backend = "scikit_build_core.build"

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 = '''
/(
Expand Down

0 comments on commit fb9f3f2

Please sign in to comment.