Skip to content

Commit 35eb6eb

Browse files
ci: switch dynamic versioning from file-based to git tag-based (#175)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 492ae67 commit 35eb6eb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v7
2525
with:
2626
ref: ${{ github.event.release.tag_name }}
27+
fetch-depth: 0
2728

2829
- name: Install uv
2930
uses: astral-sh/setup-uv@v7

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ build-backend = "hatchling.build"
3131
source = "uv-dynamic-versioning"
3232

3333
[tool.uv-dynamic-versioning]
34-
[tool.uv-dynamic-versioning.from-file]
35-
source = "src/airbyte_api/_version.py"
36-
pattern = "__version__: str = \"(?P<version>[^\"]+)\""
34+
vcs = "git"
35+
style = "pep440"
36+
fallback-version = "0.0.0"
3737

3838
[tool.hatch.build.targets.sdist]
3939
include = ["src/airbyte_api", "py.typed", "README-PYPI.md"]

0 commit comments

Comments
 (0)