Skip to content

Commit

Permalink
Merge pull request #717 from staticdev/bugfix/715
Browse files Browse the repository at this point in the history
Use Hatch for bumping version
  • Loading branch information
staticdev authored Jan 17, 2025
2 parents 6af051b + 5c1d599 commit f72bece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ jobs:
- name: Bump version for developmental release
if: "! steps.check-version.outputs.tag"
run: |
version=$(hatch version) &&
hatch version $version.dev.$(date +%s)
hatch version b
- name: Install UV
uses: astral-sh/setup-uv@v5
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "human-readable"
version = "1.4.1"
dynamic = ["version"]
description = "Human Readable"
authors = [
{ name = "staticdev", email = "[email protected]"}
Expand All @@ -18,6 +18,9 @@ classifiers = [
requires-python = ">=3.9"
dependencies = []

[tool.hatch.version]
path = "src/human_readable/__about__.py"

[dependency-groups]
dev = [
"nox>=2024.10.9",
Expand Down
1 change: 1 addition & 0 deletions src/human_readable/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.4.1"

0 comments on commit f72bece

Please sign in to comment.