Skip to content

Commit 05623fd

Browse files
committed
updated package before going to ipywidgets
1 parent 14549eb commit 05623fd

File tree

11 files changed

+49
-51
lines changed

11 files changed

+49
-51
lines changed

.cruft.json

Lines changed: 2 additions & 1 deletion
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": "7eaa7e75c7e2ce85eee1716fc9197f22d3500743",
3+
"commit": "1d33c0f487335c5086797607a764cded25b7899f",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -11,6 +11,7 @@
1111
"copyright_year": "2023",
1212
"mypy_strict": "False",
1313
"integration_tests": "True",
14+
"pypi": true,
1415
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package"
1516
}
1617
},

.github/workflows/on-push.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26-
- uses: actions/setup-python@v4
26+
- uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.x
29-
- uses: pre-commit/[email protected].0
29+
- uses: pre-commit/[email protected].1
3030

3131
combine-environments:
3232
runs-on: ubuntu-latest
3333

3434
steps:
3535
- uses: actions/checkout@v4
36-
- uses: actions/setup-python@v4
36+
- uses: actions/setup-python@v5
3737
with:
3838
python-version: 3.x
3939
- name: Install conda-merge
@@ -44,7 +44,7 @@ jobs:
4444
for SUFFIX in ci integration; do
4545
conda-merge ci/environment-$SUFFIX.yml environment.yml > ci/combined-environment-$SUFFIX.yml || exit
4646
done
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
with:
4949
name: combined-environments
5050
path: ci/combined-environment-*.yml
@@ -55,18 +55,18 @@ jobs:
5555
runs-on: ubuntu-latest
5656
strategy:
5757
matrix:
58-
python-version: ['3.10']
58+
python-version: ['3.11']
5959

6060
steps:
6161
- uses: actions/checkout@v4
62-
- uses: actions/download-artifact@v3
62+
- uses: actions/download-artifact@v4
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
@@ -88,22 +88,22 @@ jobs:
8888

8989
steps:
9090
- uses: actions/checkout@v4
91-
- uses: actions/download-artifact@v3
91+
- uses: actions/download-artifact@v4
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.10
106+
python=3.11
107107
- name: Install package
108108
run: |
109109
python -m pip install --no-deps -e .
@@ -117,22 +117,22 @@ jobs:
117117

118118
steps:
119119
- uses: actions/checkout@v4
120-
- uses: actions/download-artifact@v3
120+
- uses: actions/download-artifact@v4
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.10
135+
python=3.11
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.10'
152+
- python-version: '3.11'
153153
extra: -integration
154154

155155
steps:
156156
- uses: actions/checkout@v4
157-
- uses: actions/download-artifact@v3
157+
- uses: actions/download-artifact@v4
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 }}
@@ -189,9 +189,9 @@ jobs:
189189
190190
steps:
191191
- uses: actions/checkout@v4
192-
- uses: actions/setup-python@v4
192+
- uses: actions/setup-python@v5
193193
with:
194-
python-version: '3.10'
194+
python-version: '3.11'
195195
- name: Install package
196196
run: |
197197
python -m pip install --upgrade pip
@@ -206,7 +206,7 @@ jobs:
206206
python -m twine check --strict * || exit
207207
python -c "import openptv_python" || exit
208208
cd ..
209-
- uses: actions/upload-artifact@v3
209+
- uses: actions/upload-artifact@v4
210210
with:
211211
name: distribution
212212
path: dist
@@ -215,7 +215,7 @@ jobs:
215215
runs-on: ubuntu-latest
216216
needs: distribution
217217
if: |
218-
always() &&
218+
always() && true &&
219219
needs.distribution.result == 'success' &&
220220
github.event_name == 'push' &&
221221
startsWith(github.ref, 'refs/tags')
@@ -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@v3
229+
- uses: actions/download-artifact@v4
230230
with:
231231
name: distribution
232232
path: dist
233-
- uses: pypa/gh-action-pypi-publish@v1.8.10
233+
- uses: pypa/gh-action-pypi-publish@v1.12.4
234234
with:
235235
verbose: true

.gitignore

Lines changed: 1 addition & 12 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
@@ -468,16 +469,4 @@ $RECYCLE.BIN/
468469
# Windows shortcuts
469470
*.lnk
470471

471-
<<<<<<< ours
472-
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks,vim,visualstudiocode,pycharm
473-
tests/testing_fodder/track/img/*
474-
tests/testing_fodder/track/res/*
475-
=======
476472
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks,vim,visualstudiocode,pycharm,emacs,linux,macos,windows
477-
>>>>>>> theirs
478-
tests/testing_fodder/test_cavity/*
479-
tests/testing_fodder/track/newpart/*
480-
tests/testing_fodder/burgers/*
481-
tests/testing_fodder/test_0042_targets
482-
tests/testing_folder/round_trip.%04d0001_targets
483-
*.prof

.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: 7 additions & 5 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.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -17,21 +17,23 @@ repos:
1717
- id: blackdoc
1818
additional_dependencies: [black==23.11.0]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.1.5
20+
rev: v0.9.9
2121
hooks:
2222
- id: ruff
23+
args: [--fix, --show-fixes]
24+
- id: ruff-format
2325
- repo: https://github.com/executablebooks/mdformat
24-
rev: 0.7.17
26+
rev: 0.7.22
2527
hooks:
2628
- id: mdformat
2729
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
28-
rev: v2.11.0
30+
rev: v2.14.0
2931
hooks:
3032
- id: pretty-format-yaml
3133
args: [--autofix, --preserve-quotes]
3234
- id: pretty-format-toml
3335
args: [--autofix]
3436
- repo: https://github.com/gitleaks/gitleaks
35-
rev: v8.18.0
37+
rev: v8.24.0
3638
hooks:
3739
- id: gitleaks

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /src/openptv-python
44

55
COPY environment.yml /src/openptv-python/
66

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

1010
COPY . /src/openptv-python

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
@@ -22,8 +22,8 @@ this structure
2222
For the best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:
2323

2424
```
25-
conda create -n openptvpy -c conda-forge python=3.10
26-
conda activate openptvpy
25+
conda create -n openptv-python -c conda-forge python=3.11
26+
conda activate openptv-python
2727
```
2828

2929
Before pushing to GitHub, run the following commands:

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 = ["../openptv_python"]
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 @@ Python version of the OpenPTV library.
66
:caption: 'Contents:'
77
:maxdepth: 2
88
9+
README.md
910
API Reference <_api/openptv_python/index>
1011
```
1112

0 commit comments

Comments
 (0)