Skip to content

Commit edc87f6

Browse files
authored
Merge pull request #256 from ecmwf-projects/template-update
template update
2 parents 7556daa + 483d8e2 commit edc87f6

File tree

11 files changed

+42
-35
lines changed

11 files changed

+42
-35
lines changed

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
3-
"commit": "5c8a3dfc59e893134050fe4e355893dd1d08b2e7",
3+
"commit": "d8e38d412bfd81121857042e6b2b755b0bbac1c5",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -12,7 +12,8 @@
1212
"mypy_strict": "True",
1313
"integration_tests": "False",
1414
"pypi": "false",
15-
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package"
15+
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
16+
"_commit": "d8e38d412bfd81121857042e6b2b755b0bbac1c5"
1617
}
1718
},
1819
"directory": null

.github/workflows/on-push.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pre-commit:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.x
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333

3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
- uses: actions/setup-python@v5
3737
with:
3838
python-version: 3.x
@@ -55,18 +55,18 @@ jobs:
5555
runs-on: ubuntu-latest
5656
strategy:
5757
matrix:
58-
python-version: ['3.11']
58+
python-version: ['3.11', '3.12']
5959

6060
steps:
61-
- uses: actions/checkout@v4
62-
- uses: actions/download-artifact@v4
61+
- uses: actions/checkout@v5
62+
- uses: actions/download-artifact@v5
6363
with:
6464
name: combined-environments
6565
path: ci
6666
- name: Get current date
6767
id: date
6868
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
69-
- uses: mamba-org/setup-micromamba@v1
69+
- uses: mamba-org/setup-micromamba@v2
7070
with:
7171
environment-file: ci/combined-environment-ci.yml
7272
environment-name: DEVELOP
@@ -87,23 +87,23 @@ jobs:
8787
runs-on: ubuntu-latest
8888

8989
steps:
90-
- uses: actions/checkout@v4
91-
- uses: actions/download-artifact@v4
90+
- uses: actions/checkout@v5
91+
- uses: actions/download-artifact@v5
9292
with:
9393
name: combined-environments
9494
path: ci
9595
- name: Get current date
9696
id: date
9797
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
98-
- uses: mamba-org/setup-micromamba@v1
98+
- uses: mamba-org/setup-micromamba@v2
9999
with:
100100
environment-file: ci/combined-environment-ci.yml
101101
environment-name: DEVELOP
102102
cache-environment: true
103103
cache-environment-key: environment-${{ steps.date.outputs.date }}
104104
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
105105
create-args: >-
106-
python=3.11
106+
python=3.12
107107
- name: Install package
108108
run: |
109109
python -m pip install --no-deps -e .
@@ -116,23 +116,23 @@ jobs:
116116
runs-on: ubuntu-latest
117117

118118
steps:
119-
- uses: actions/checkout@v4
120-
- uses: actions/download-artifact@v4
119+
- uses: actions/checkout@v5
120+
- uses: actions/download-artifact@v5
121121
with:
122122
name: combined-environments
123123
path: ci
124124
- name: Get current date
125125
id: date
126126
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
127-
- uses: mamba-org/setup-micromamba@v1
127+
- uses: mamba-org/setup-micromamba@v2
128128
with:
129129
environment-file: ci/combined-environment-ci.yml
130130
environment-name: DEVELOP
131131
cache-environment: true
132132
cache-environment-key: environment-${{ steps.date.outputs.date }}
133133
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
134134
create-args: >-
135-
python=3.11
135+
python=3.12
136136
- name: Install package
137137
run: |
138138
python -m pip install --no-deps -e .
@@ -149,19 +149,19 @@ jobs:
149149
strategy:
150150
matrix:
151151
include:
152-
- python-version: '3.11'
152+
- python-version: '3.12'
153153
extra: -integration
154154

155155
steps:
156-
- uses: actions/checkout@v4
157-
- uses: actions/download-artifact@v4
156+
- uses: actions/checkout@v5
157+
- uses: actions/download-artifact@v5
158158
with:
159159
name: combined-environments
160160
path: ci
161161
- name: Get current date
162162
id: date
163163
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
164-
- uses: mamba-org/setup-micromamba@v1
164+
- uses: mamba-org/setup-micromamba@v2
165165
with:
166166
environment-file: ci/combined-environment${{ matrix.extra }}.yml
167167
environment-name: DEVELOP${{ matrix.extra }}
@@ -188,10 +188,10 @@ jobs:
188188
(needs.integration-tests.result == 'success' || needs.integration-tests.result == 'skipped')
189189
190190
steps:
191-
- uses: actions/checkout@v4
191+
- uses: actions/checkout@v5
192192
- uses: actions/setup-python@v5
193193
with:
194-
python-version: '3.11'
194+
python-version: '3.12'
195195
- name: Install package
196196
run: |
197197
python -m pip install --upgrade pip
@@ -226,10 +226,10 @@ jobs:
226226
id-token: write # IMPORTANT: this permission is mandatory for trusted publish
227227

228228
steps:
229-
- uses: actions/download-artifact@v4
229+
- uses: actions/download-artifact@v5
230230
with:
231231
name: distribution
232232
path: dist
233-
- uses: pypa/gh-action-pypi-publish@v1.9.0
233+
- uses: pypa/gh-action-pypi-publish@v1.12.4
234234
with:
235235
verbose: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
version.py
33

44
# Sphinx automatic generation of API
5+
docs/README.md
56
docs/_api/
67

78
# Combined environments

.pre-commit-config-cruft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/cruft/cruft
3-
rev: 2.15.0
3+
rev: 2.16.0
44
hooks:
55
- id: cruft
66
entry: cruft update -y

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -12,28 +12,28 @@ repos:
1212
- id: debug-statements
1313
- id: mixed-line-ending
1414
- repo: https://github.com/keewis/blackdoc
15-
rev: v0.3.9
15+
rev: v0.4.1
1616
hooks:
1717
- id: blackdoc
1818
additional_dependencies: [black==23.11.0]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.5.5
20+
rev: v0.12.9
2121
hooks:
2222
- id: ruff
2323
args: [--fix, --show-fixes]
2424
- id: ruff-format
2525
- repo: https://github.com/executablebooks/mdformat
26-
rev: 0.7.17
26+
rev: 0.7.22
2727
hooks:
2828
- id: mdformat
2929
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
30-
rev: v2.14.0
30+
rev: v2.15.0
3131
hooks:
3232
- id: pretty-format-yaml
3333
args: [--autofix, --preserve-quotes]
3434
- id: pretty-format-toml
3535
args: [--autofix]
3636
- repo: https://github.com/gitleaks/gitleaks
37-
rev: v8.18.4
37+
rev: v8.28.0
3838
hooks:
3939
- id: gitleaks

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY . /src/cads-processing-api-service
44

55
WORKDIR /src/cads-processing-api-service
66

7-
RUN conda install -c conda-forge make gcc python=3.10 \
7+
RUN conda install -c conda-forge make gcc python=3.12 \
88
&& make conda-env-update CONDAFLAGS="-n base"
99

1010
RUN pip install --no-deps -e .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ template-update:
2929
pre-commit run --all-files cruft -c .pre-commit-config-cruft.yaml
3030

3131
docs-build:
32-
cd docs && rm -fr _api && make clean && make html
32+
cp README.md docs/. && cd docs && rm -fr _api && make clean && make html
3333

3434
# DO NOT EDIT ABOVE THIS LINE, ADD COMMANDS BELOW
3535

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ CADS Processing API service
1111

1212
## Workflow for developers/contributors
1313

14-
For best experience create a new conda environment (e.g. DEVELOP) with Python 3.11:
14+
For best experience create a new conda environment (e.g. DEVELOP) with Python 3.12:
1515

1616
```
17-
conda create -n DEVELOP -c conda-forge python=3.11
17+
conda create -n DEVELOP -c conda-forge python=3.12
1818
conda activate DEVELOP
1919
```
2020

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
autodoc_typehints = "none"
3838

3939
# autoapi configuration
40+
autoapi_add_toctree_entry = False
4041
autoapi_dirs = ["../cads_processing_api_service"]
4142
autoapi_ignore = ["*/version.py"]
43+
autoapi_member_order = "groupwise"
4244
autoapi_options = [
4345
"members",
4446
"inherited-members",

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CADS Processing API service.
66
:caption: 'Contents:'
77
:maxdepth: 2
88
9+
README.md
910
API Reference <_api/cads_processing_api_service/index>
1011
```
1112

0 commit comments

Comments
 (0)