Skip to content

Commit

Permalink
use snippets2changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Oct 4, 2024
1 parent bc407a6 commit 5f46ad2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
python -m pip install -U setuptools wheel build
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
pip install .
- name: Update changelog with snippets
run: |
changelog-generator \
changelog changelog.md \
--snippets=.snippets \
--in-place
- name: Parse changelog
id: parse_changelog
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
python -m pip install -U setuptools wheel build
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
pip install .
- name: Update changelog with snippets
run: |
changelog-generator \
changelog changelog.md \
--snippets=.snippets \
--in-place
- name: Parse changelog
id: parse_changelog
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
python -m pip install -U setuptools wheel build
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
pip install .
- name: Update changelog with snippets
run: |
changelog-generator \
changelog changelog.md \
--snippets=.snippets \
--in-place
- name: Build package
run: |
changelog2version \
Expand Down
12 changes: 12 additions & 0 deletions .snippets/26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Use snippets2changelog
<!--
type: feature
scope: all
affected: all
-->

- run isort on all files
- drop Python 3.8 support everywhere and update README badge
- add generated `changelog.json` file to `.gitignore`
- use latest `actions/checkout@v4` and `actions/setup-python@v5`
- use `snippets2changelog` package, closes #26
1 change: 1 addition & 0 deletions requirements-deploy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# Avoid fixed versions
# # to upload package to PyPi or other package hosts
twine>=5.1.1,<6
snippets2changelog>=1.2.1,<2

0 comments on commit 5f46ad2

Please sign in to comment.