Skip to content

Commit eec55a1

Browse files
committed
Switches versioning to VCS and triggers PyPI on tag
Adopts dynamic versioning from VCS metadata to simplify release process and ensure consistent package versions. Updates CI workflow to publish on version tag pushes instead of release publish events, improving automation and aligning releases across tools.
1 parent a88aa94 commit eec55a1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Publish package to PyPI
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- "v*"
67
workflow_dispatch:
78

89
permissions:
@@ -18,6 +19,8 @@ jobs:
1819
steps:
1920
- name: Checkout
2021
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
2124

2225
- name: Set up Python
2326
uses: actions/setup-python@v5

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "flowdacity-queue"
3-
version = "0.1.0"
3+
dynamic = ["version"]
44
description = "A simple Redis-based job queue system."
55
readme = "README.md"
66
license = {text = "MIT"}
@@ -12,7 +12,7 @@ dependencies = [
1212
]
1313

1414
[build-system]
15-
requires = ["hatchling"]
15+
requires = ["hatchling", "hatch-vcs"]
1616
build-backend = "hatchling.build"
1717

1818
[dependency-groups]
@@ -32,3 +32,6 @@ include = [
3232
"README.md",
3333
"LICENSE.txt",
3434
]
35+
36+
[tool.hatch.version]
37+
source = "vcs"

0 commit comments

Comments
 (0)