Skip to content

Commit d30d568

Browse files
authored
Dynamic version in pyproject.toml. (#256)
Set up dynamic versioning in pyproject.toml.
1 parent 71e03af commit d30d568

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ jobs:
3636
- uses: astral-sh/setup-uv@v6
3737
with:
3838
enable-cache: true
39-
39+
40+
- name: Bump project version to match tag
41+
id: automatic-version
42+
run: |
43+
set -Eeuxo pipefail
44+
version="${GITHUB_REF#refs/tags/v}"
45+
uv version "$version"
46+
4047
- name: Validate tag
4148
id: validate-tag
4249
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pyjelly"
7-
version = "0.5.2"
7+
version = "0.0.0"
88
readme = "README.md"
99
description = "Jelly-RDF implementation for Python"
1010
authors = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)