Skip to content

Commit

Permalink
Get version from tag instead of hardcoding it (dapr#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska authored Nov 27, 2024
1 parent 076bad5 commit 4fc38e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand All @@ -44,6 +44,8 @@ jobs:
TWINE_USERNAME: "__token__"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# For more information on pyproject.toml, see https://peps.python.org/pep-0621/

[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

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

[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
Expand Down

0 comments on commit 4fc38e2

Please sign in to comment.