Skip to content

Commit 5c1d599

Browse files
committed
Use Hatch for bumping version
1 parent 2bb3e04 commit 5c1d599

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
- name: Bump version for developmental release
5050
if: "! steps.check-version.outputs.tag"
5151
run: |
52-
version=$(hatch version) &&
53-
hatch version $version.dev.$(date +%s)
52+
hatch version b
5453
5554
- name: Install UV
5655
uses: astral-sh/setup-uv@v5

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "human-readable"
3-
version = "1.4.1"
3+
dynamic = ["version"]
44
description = "Human Readable"
55
authors = [
66
{ name = "staticdev", email = "[email protected]"}
@@ -18,6 +18,9 @@ classifiers = [
1818
requires-python = ">=3.9"
1919
dependencies = []
2020

21+
[tool.hatch.version]
22+
path = "src/human_readable/__about__.py"
23+
2124
[dependency-groups]
2225
dev = [
2326
"nox>=2024.10.9",

src/human_readable/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "1.4.1"

0 commit comments

Comments
 (0)