Skip to content

Commit 4fc38e2

Browse files
Get version from tag instead of hardcoding it (#3)
Signed-off-by: Elena Kolevska <[email protected]>
1 parent 076bad5 commit 4fc38e2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/pr-validation.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python-version: ["3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up Python ${{ matrix.python-version }}
2525
uses: actions/setup-python@v3
2626
with:
@@ -44,6 +44,8 @@ jobs:
4444
TWINE_USERNAME: "__token__"
4545
steps:
4646
- uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
4749
- name: Set up Python 3.11
4850
uses: actions/setup-python@v5
4951
with:

pyproject.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# For more information on pyproject.toml, see https://peps.python.org/pep-0621/
55

66
[build-system]
7-
requires = ["setuptools", "wheel"]
7+
requires = ["setuptools", "wheel", "setuptools_scm"]
88
build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "durabletask-dapr"
12-
version = "0.1.1-alpha.1"
12+
dynamic = ["version"]
1313
description = "A Durable Task Client SDK for Python"
1414
keywords = [
1515
"durable",
@@ -35,6 +35,10 @@ changelog = "https://github.com/dapr/durabletask-python/blob/main/CHANGELOG.md"
3535
[tool.setuptools.packages.find]
3636
include = ["durabletask", "durabletask.*"]
3737

38+
[tool.setuptools_scm]
39+
version_scheme = "guess-next-dev"
40+
local_scheme = "no-local-version"
41+
3842
[tool.pytest.ini_options]
3943
minversion = "6.0"
4044
testpaths = ["tests"]

0 commit comments

Comments
 (0)