Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from ecmwf-projects/py3.11
Browse files Browse the repository at this point in the history
Python 3.11
  • Loading branch information
malmans2 authored Dec 6, 2023
2 parents b265f90 + 010ee00 commit 01ece06
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
"commit": "59c6471bda34e48214cdcf5905590fb5a96507ad",
"commit": "c6665306749b5dd3b4ec0fdcf1cb31d18fe23511",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
python-version: ['3.11']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=3.10
python=3.11
- name: Install package
run: |
python -m pip install --no-deps -e .
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=3.10
python=3.11
- name: Install package
run: |
python -m pip install --no-deps -e .
Expand All @@ -148,7 +148,7 @@ jobs:

strategy:
matrix:
python-version: ['3.8', '3.9']
python-version: ['3.8', '3.9', '3.10']
extra: ['-ci']

steps:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: '3.11'
- name: Install package
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -229,6 +229,6 @@ jobs:
with:
name: distribution
path: dist
- uses: pypa/gh-action-pypi-publish@v1.8.10
- uses: pypa/gh-action-pypi-publish@v1.8.11
with:
verbose: true
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: blackdoc
additional_dependencies: [black==23.11.0]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand All @@ -34,6 +34,6 @@ repos:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.0
rev: v8.18.1
hooks:
- id: gitleaks
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /src/cads-api-client

COPY environment.yml /src/cads-api-client/

RUN conda install -c conda-forge gcc python=3.10 \
RUN conda install -c conda-forge gcc python=3.11 \
&& conda env update -n base -f environment.yml

COPY . /src/cads-api-client
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ datetime.datetime(2022, 7, 20, 23, 0)

## Workflow for developers/contributors

For best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:
For best experience create a new conda environment (e.g. DEVELOP) with Python 3.11:

```
conda create -n DEVELOP -c conda-forge python=3.10
conda create -n DEVELOP -c conda-forge python=3.11
conda activate DEVELOP
```

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ classifiers = [
"Operating System :: OS Independent",
"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",
"Topic :: Scientific/Engineering"
Expand Down

0 comments on commit 01ece06

Please sign in to comment.