Skip to content

Commit e4b2cf1

Browse files
authored
Merge pull request #71 from ecmwf-projects/template-update
Template update
2 parents fa38fea + 22c1d34 commit e4b2cf1

File tree

11 files changed

+46
-39
lines changed

11 files changed

+46
-39
lines changed

.cruft.json

Lines changed: 4 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": "104191f7bf58670f65db81e04b34e7bf56bb4985",
3+
"commit": "d8e38d412bfd81121857042e6b2b755b0bbac1c5",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -11,7 +11,9 @@
1111
"copyright_year": "2022",
1212
"mypy_strict": "True",
1313
"integration_tests": "True",
14-
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package"
14+
"pypi": false,
15+
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
16+
"_commit": "d8e38d412bfd81121857042e6b2b755b0bbac1c5"
1517
}
1618
},
1719
"directory": null

.github/workflows/on-push.yml

Lines changed: 23 additions & 25 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 .
@@ -148,22 +148,20 @@ jobs:
148148

149149
strategy:
150150
matrix:
151-
python-version: ['3.8', '3.9']
152-
extra: ['-ci']
153151
include:
154-
- python-version: '3.8'
152+
- python-version: '3.12'
155153
extra: -integration
156154

157155
steps:
158-
- uses: actions/checkout@v4
159-
- uses: actions/download-artifact@v4
156+
- uses: actions/checkout@v5
157+
- uses: actions/download-artifact@v5
160158
with:
161159
name: combined-environments
162160
path: ci
163161
- name: Get current date
164162
id: date
165163
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
166-
- uses: mamba-org/setup-micromamba@v1
164+
- uses: mamba-org/setup-micromamba@v2
167165
with:
168166
environment-file: ci/combined-environment${{ matrix.extra }}.yml
169167
environment-name: DEVELOP${{ matrix.extra }}
@@ -190,10 +188,10 @@ jobs:
190188
(needs.integration-tests.result == 'success' || needs.integration-tests.result == 'skipped')
191189
192190
steps:
193-
- uses: actions/checkout@v4
191+
- uses: actions/checkout@v5
194192
- uses: actions/setup-python@v5
195193
with:
196-
python-version: '3.11'
194+
python-version: '3.12'
197195
- name: Install package
198196
run: |
199197
python -m pip install --upgrade pip
@@ -217,7 +215,7 @@ jobs:
217215
runs-on: ubuntu-latest
218216
needs: distribution
219217
if: |
220-
always() &&
218+
always() && false &&
221219
needs.distribution.result == 'success' &&
222220
github.event_name == 'push' &&
223221
startsWith(github.ref, 'refs/tags')
@@ -228,10 +226,10 @@ jobs:
228226
id-token: write # IMPORTANT: this permission is mandatory for trusted publish
229227

230228
steps:
231-
- uses: actions/download-artifact@v4
229+
- uses: actions/download-artifact@v5
232230
with:
233231
name: distribution
234232
path: dist
235-
- uses: pypa/gh-action-pypi-publish@v1.8.14
233+
- uses: pypa/gh-action-pypi-publish@v1.12.4
236234
with:
237235
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.3.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.13.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.2
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 @@ WORKDIR /src/ogc-api-processes-fastapi
44

55
COPY environment.yml /src/ogc-api-processes-fastapi/
66

7-
RUN conda install -c conda-forge gcc python=3.11 \
7+
RUN conda install -c conda-forge gcc python=3.12 \
88
&& conda env update -n base -f environment.yml
99

1010
COPY . /src/ogc-api-processes-fastapi

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ 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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ OGC API Processes service based on FastAPI
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 = ["../ogc_api_processes_fastapi"]
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 @@ OGC API Processes service based on FastAPI.
66
:caption: 'Contents:'
77
:maxdepth: 2
88
9+
README.md
910
API Reference <_api/ogc_api_processes_fastapi/index>
1011
```
1112

0 commit comments

Comments
 (0)