diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml index 6d621e1..3ec8928 100644 --- a/.github/workflows/build_workflow.yml +++ b/.github/workflows/build_workflow.yml @@ -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 @@ -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 diff --git a/ci/python3.12.yaml b/ci/python3.12.yaml new file mode 100644 index 0000000..f356c31 --- /dev/null +++ b/ci/python3.12.yaml @@ -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' diff --git a/ci/recipe/meta.yaml b/ci/recipe/meta.yaml index 12577d4..93eb40f 100644 --- a/ci/recipe/meta.yaml +++ b/ci/recipe/meta.yaml @@ -15,10 +15,10 @@ build: requirements: host: - - python >=3.8 + - python >=3.9 - pip run: - - python >=3.8 + - python >=3.9 - numpy - scipy - netcdf4 diff --git a/dev-spec.txt b/dev-spec.txt index f7a2deb..da6b343 100644 --- a/dev-spec.txt +++ b/dev-spec.txt @@ -2,7 +2,7 @@ # $ conda create --name --file # Base -python >=3.8 +python >=3.9 dask esmf nco >=4.8.1 diff --git a/setup.py b/setup.py index b57c663..0da1f84 100755 --- a/setup.py +++ b/setup.py @@ -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(),