Skip to content

Commit 4e51aad

Browse files
authored
[REL] v0.3.0 (#725)
* update changelodg * use deno validator * do not validate during tests * update doc * update links in changelog * add release protocol * fix links * fix
1 parent 745e8c2 commit 4e51aad

18 files changed

+273
-81
lines changed

.github/workflows/run_tests_matlab.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ jobs:
4646
sudo apt-get -y -qq update
4747
sudo apt-get -y install unzip wget
4848
49+
- name: Install Deno
50+
uses: denoland/setup-deno@v1
51+
with:
52+
deno-version: v1.x
4953
- name: Install bids validator
50-
run: npm install -g bids-validator
51-
54+
run: deno install -Agf -n bids-validator jsr:@bids/validator
5255

5356
- name: Install bids example
5457
run: |

.github/workflows/run_tests_octave.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ jobs:
4040
sudo apt-get -y -qq update
4141
sudo apt-get -y install unzip wget
4242
43+
- name: Install Deno
44+
uses: denoland/setup-deno@v1
45+
with:
46+
deno-version: v1.x
4347
- name: Install bids validator
44-
run: npm install -g bids-validator
48+
run: deno install -Agf -n bids-validator jsr:@bids/validator
4549

4650
- name: Install bids-example
4751
run: |

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cff-version: 1.2.0
44

55
title: bids-matlab
66

7-
version: 0.2.0
7+
version: 0.3.0
88

99
license: MIT
1010

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,25 @@ make update_schema
413413
A new version of the schema is fetched automatically regularly via continuous integration
414414
(see the [github action](.github/workflows/update_schema.yml)) when pushing to the repo
415415
or opening a pull-request.
416+
417+
## release protocol
418+
419+
- [ ] create a dedicated branch for the release candidate
420+
- [ ] update version in `citation.cff`
421+
- [ ] documentation related
422+
- [ ] ensure the documentation is up to date
423+
- [ ] make sure the doc builds correctly and fix any error
424+
- [ ] update jupyter books
425+
- [ ] update binder
426+
- [ ] update changelog
427+
- [ ] change from `[unreleased]` to the version number
428+
- [ ] remove unused sections (like `security`)
429+
- [ ] run `make release`
430+
- [ ] open a pull request (PR) from this release candidate branch targeting the default branch
431+
- [ ] fix any remaining failing continuous integration (test, markdown and code linting...)
432+
- [ ] merge to default branch
433+
- [ ] create a github tagged release
434+
- [ ] after release
435+
- [ ] set version in `citation.cff` to dev
436+
- [ ] update changelog
437+
- [ ] add an `[unreleased]` section

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
.PHONY: clean manual
1+
.PHONY: clean manual
2+
23
clean:
34
rm version.txt
45

56
version.txt: clean CITATION.cff
67
grep -w "^version" CITATION.cff | sed "s/version: /v/g" > version.txt
78

8-
manual:
9-
cd docs && sh create_manual.sh
10-
119
update_schema:
1210
wget https://bids-specification.readthedocs.io/en/latest/schema.json -O schema.json
1311
# get schema from a PR on the spec
1412
# wget https://bids-specification--1377.org.readthedocs.build/en/1377/schema.json -O schema.json
13+
14+
release: version.txt
15+
python docs/generate_doc.py
16+
python docs/add_links_to_changelog.py
484 Bytes
Binary file not shown.

docs/add_links_to_changelog.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# replace PR numbers and github usernames with links
2+
from __future__ import annotations
3+
4+
import re
5+
6+
from utils import root_dir
7+
8+
change_log = root_dir() / "docs" / "source" / "changelog.md"
9+
10+
with open(change_log) as f:
11+
lines = f.readlines()
12+
13+
with open(change_log, "w") as f:
14+
for line in lines:
15+
if match := re.search(r" @([a-zA-Z0-9_\-]+)", line):
16+
username = match[1]
17+
line = line.replace(
18+
match[0], f" by [{username}](https://github.com/{username}) "
19+
)
20+
21+
if match := re.search(r"\#([0-9]+)", line):
22+
pr_number = match[1]
23+
line = line.replace(
24+
match[0],
25+
f"[{pr_number}](https://github.com/bids-standard/bids-matlab/pull/{pr_number})",
26+
)
27+
28+
f.write(line)

docs/bids-matlab.pdf

-614 KB
Binary file not shown.

docs/create_manual.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/changelog.md

Lines changed: 178 additions & 29 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)