You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing instruction to update dependencies (#223)
When updating the version of `frequenz-api-common` dependency we also
need to update the link to the inventory for cross-references in
`mkdocs.yml` to point to the new version.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ To upgrade without regenerating the project, you can follow these steps:
15
15
- Run the following command to add the new `pylint` ignore rules:
16
16
17
17
```sh
18
-
sed '/ # Checked by flake8/a\ "redefined-outer-name",\n "unused-import",' pyproject.toml
18
+
sed '/ # Checked by flake8/a\ "redefined-outer-name",\n "unused-import",'-i pyproject.toml
19
19
```
20
20
21
21
- It is recommended to update this rule in your repository to use the new bypass rule for the `Protect version branches` ruleset that allows maintainers to force-merge.
@@ -54,6 +54,12 @@ To upgrade without regenerating the project, you can follow these steps:
54
54
55
55
This will update the file in place, you can inspect the changes with `git diff`.
56
56
57
+
- For API projects, you can manually add instructions to update the `mkdocs.yml` when the `frequenz-api-common` dependency is updated.
Copy file name to clipboardExpand all lines: cookiecutter/{{cookiecutter.github_repo_name}}/CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,13 +75,15 @@ Here is an example of upgrading the `frequenz-api-common` dependency to version
75
75
`v0.2.0`:
76
76
```sh
77
77
ver="0.2.0"
78
+
ver_minor=$(echo $ver| cut -d. -f1,2)
78
79
79
80
cd submodules/frequenz-api-common
80
81
git remote update
81
82
git checkout v${ver}
82
83
cd -
83
84
84
-
sed s/"frequenz-api-common == [0-9]\.[0-9]\.[0-9]"/"frequenz-api-common == ${ver}"/g -i pyproject.toml
85
+
sed 's/frequenz-api-common == [0-9]\.[0-9]\.[0-9]/frequenz-api-common == '"${ver}/" -i pyproject.toml
86
+
sed 's|https://frequenz-floss.github.io/frequenz-api-common/v[0-9]\.[0-9]/objects.inv|https://frequenz-floss.github.io/frequenz-api-common/v'${ver_minor}'/objects.inv|' -i mkdocs.yml
Copy file name to clipboardExpand all lines: tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,13 +70,15 @@ Here is an example of upgrading the `frequenz-api-common` dependency to version
70
70
`v0.2.0`:
71
71
```sh
72
72
ver="0.2.0"
73
+
ver_minor=$(echo $ver| cut -d. -f1,2)
73
74
74
75
cd submodules/frequenz-api-common
75
76
git remote update
76
77
git checkout v${ver}
77
78
cd -
78
79
79
-
sed s/"frequenz-api-common == [0-9]\.[0-9]\.[0-9]"/"frequenz-api-common == ${ver}"/g -i pyproject.toml
80
+
sed 's/frequenz-api-common == [0-9]\.[0-9]\.[0-9]/frequenz-api-common == '"${ver}/" -i pyproject.toml
81
+
sed 's|https://frequenz-floss.github.io/frequenz-api-common/v[0-9]\.[0-9]/objects.inv|https://frequenz-floss.github.io/frequenz-api-common/v'${ver_minor}'/objects.inv|' -i mkdocs.yml
0 commit comments