Skip to content

Commit f65f2ee

Browse files
committed
version is dynamic
1 parent 6c4e2a8 commit f65f2ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
python -m pip install --upgrade pip
2222
pip install -r requirements.txt
2323
pip install -r test-requirements.txt
24+
pip install setuptools-scm[toml]>=6.2
2425
- name: Test with pytest
2526
run: |
2627
pytest --cov=helloasso_python

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "helloasso_python"
3-
version = "1.0.0"
3+
dynamic = ["version"]
44
description = "HelloAsso API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "[email protected]"},
@@ -33,9 +33,12 @@ mypy = ">= 1.5"
3333

3434

3535
[build-system]
36-
requires = ["setuptools"]
36+
requires = ["setuptools>=61.0", "wheel", "setuptools-scm[toml]>=6.2"]
3737
build-backend = "setuptools.build_meta"
3838

39+
[tool.setuptools_scm]
40+
write_to = "helloasso_python/_version.py"
41+
3942
[tool.pylint.'MESSAGES CONTROL']
4043
extension-pkg-whitelist = "pydantic"
4144

0 commit comments

Comments
 (0)