Skip to content

Commit

Permalink
Extend support to Python 3.12 (#484)
Browse files Browse the repository at this point in the history
Bump minimum required Python version in CI. Bump Python version in
`environment.yml`. Bump minimum version for some dependencies in
`pyproject.toml`, requiring at minimum the ones that work on Python
3.12. Add classifier in `pyproject.toml` for Python 3.12.
  • Loading branch information
santisoler committed Jun 18, 2024
1 parent f6d52b9 commit 5375826
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
env:
REQUIREMENTS: env/requirements-build.txt env/requirements-docs.txt
PYTHON: "3.11"
PYTHON: "3.12"

steps:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"

- name: Install requirements
run: python -m pip install -r env/requirements-build.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Install requirements
run: pip install -r env/requirements-style.txt
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Install requirements
run: pip install -r env/requirements-style.txt
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
- dependencies: oldest
python: "3.9"
- dependencies: latest
python: "3.11"
python: "3.12"
- dependencies: optional
python: "3.11"
# test on macos-13 (x86) using oldest dependencies and python 3.9
python: "3.12"
# test on macos-13 (x86) using oldest dependencies and python 3.8
- os: macos-13
dependencies: oldest
python: "3.9"
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: harmonica
channels:
- conda-forge
dependencies:
- python==3.10.*
- python==3.12.*
- pip
# Build
- build
Expand All @@ -13,7 +13,7 @@ dependencies:
- numba
- scipy
- scikit-learn
- verde>=1.7.0
- verde>=1.8.1
- xarray
- xrft>=1.0
- choclo>=0.1
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"numpy >= 1.21",
"numpy >= 1.23",
"pandas >= 1.4",
"scipy >= 1.9",
"scikit-learn >= 0.24",
"scikit-learn >= 1.0",
"numba >= 0.53",
"xarray >= 0.16",
"verde >= 1.7",
"xarray >= 2022.03",
"verde >= 1.8.1",
"xrft >= 1.0",
"choclo >= 0.1",
]
Expand Down

0 comments on commit 5375826

Please sign in to comment.