Skip to content

Commit 3456ab7

Browse files
RonnyPfannschmidtCursor AIclaude
committed
refactor: rename changelog/ to changelog.d/, use setuptools_scm CLI
- Rename `changelog/` to `changelog.d/` to match the convention expected by the `towncrier-fragments` version scheme in vcs-versioning. This makes `python -m setuptools_scm --strip-dev` correctly detect fragment types and compute the release version. - Remove `scripts/compute_version.py` — the setuptools_scm CLI with `--strip-dev` replaces it entirely. - Update `prepare-release.yml` and `scripts/release.py` to use the CLI. - Add `setuptools-scm[toml]>=10.0` to the tox release env deps. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Anthropic Claude Opus 4 <claude@anthropic.com>
1 parent 5f4590e commit 3456ab7

14 files changed

Lines changed: 21 additions & 65 deletions

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ jobs:
2626
python-version: "3.13"
2727

2828
- name: Install dependencies
29-
run: pip install "setuptools-scm[toml]>=10.0" packaging towncrier
29+
run: pip install "setuptools-scm[toml]>=10.0" towncrier
3030

3131
- name: Compute next version
3232
id: version
3333
run: |
34-
VERSION=$(python scripts/compute_version.py) || exit 0
34+
VERSION=$(python -m setuptools_scm --strip-dev) || exit 0
35+
if [ -z "$VERSION" ]; then exit 0; fi
3536
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3637
echo "branch=release-$VERSION" >> "$GITHUB_OUTPUT"
3738
echo "Computed version: $VERSION"

RELEASING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version scheme (``feature`` → minor, ``bugfix`` → patch, ``removal`` → maj
88
Automated flow
99
~~~~~~~~~~~~~~
1010

11-
#. Contributors add changelog fragments (``changelog/<id>.<type>.rst``) in
11+
#. Contributors add changelog fragments (``changelog.d/<id>.<type>.rst``) in
1212
their pull requests as usual.
1313

1414
#. Every push to ``main`` triggers the ``prepare-release`` workflow, which:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)