Skip to content

Commit 76176e6

Browse files
committed
Use setuptools-scm for dynamic versioning
- Git references are used to determine the current package version dynamically. - Devel/test packages version will follow the following pattern: 0.10.1.devel8+g8a84a2ac1108.d20250323 Signed-off-by: Nick Diego Yamane <[email protected]>
1 parent ca5b2cb commit 76176e6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
persist-credentials: false
18+
fetch-depth: 0
1819
- name: Set up Python
1920
uses: actions/setup-python@v5
2021
with:

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=61.0.0", "wheel"]
2+
requires = ["setuptools>=64", "setuptools-scm>=8", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools_scm]
6+
version_scheme = "post-release"
7+
local_scheme = "node-and-date"
8+
59
[project]
610
name = "compiledb"
7-
version = "0.10.2"
11+
dynamic = ["version"] # determined dynamically from git refs. See tools.setuptool_scm above.
812
description = "Tool for generating Clang JSON Compilation Database files for make-based build systems."
913
license = {file = "LICENSE"}
1014
authors = [{name = "Nick Yamane", email = "[email protected]"}]

0 commit comments

Comments
 (0)