Skip to content

Commit

Permalink
fix scm version for release builds (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline authored Dec 1, 2024
1 parent 59cb87d commit 8bf4215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
run: make dependencies

- name: Build
env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.release.tag_name }}
run: make build

- name: Publish a Python distribution to PyPI
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: dependencies
dependencies:
SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 \
uv sync --no-install-project --all-extras --frozen

.PHONY: upgrade
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools~=75.3.0", "setuptools-scm~=8.1.0"]
build-backend = "setuptools.build_meta"

[project]
Expand Down

0 comments on commit 8bf4215

Please sign in to comment.