Skip to content

Commit

Permalink
Merge pull request #64 from altheaden/update-python-versions
Browse files Browse the repository at this point in the history
Update supported python versions
  • Loading branch information
xylar authored Sep 10, 2024
2 parents 70ce28a + 2cb49ce commit 4748924
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
Expand Down Expand Up @@ -84,19 +84,21 @@ jobs:
channels: conda-forge
channel-priority: strict
auto-update-conda: true
# IMPORTANT: This needs to be set for caching to work properly!
use-only-tar-bz2: true
python-version: ${{ matrix.python-version }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Install pyremap
run: |
conda install --file dev-spec.txt
conda create -n pyremap_dev --file dev-spec.txt \
python=${{ matrix.python-version }}
conda activate pyremap_dev
python -m pip install .
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Run Tests
env:
CHECK_IMAGES: False
run: pytest --pyargs pyremap
run: |
conda activate pyremap_dev
pytest --pyargs pyremap
8 changes: 8 additions & 0 deletions ci/python3.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
channel_sources:
- conda-forge,defaults
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- '3.12'
4 changes: 2 additions & 2 deletions ci/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ build:

requirements:
host:
- python >=3.8
- python >=3.9
- pip
run:
- python >=3.8
- python >=3.9
- numpy
- scipy
- netcdf4
Expand Down
2 changes: 1 addition & 1 deletion dev-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $ conda create --name <env> --file <this file>

# Base
python >=3.8
python >=3.9
dask
esmf
nco >=4.8.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
],
packages=find_packages(),
Expand Down

0 comments on commit 4748924

Please sign in to comment.