Skip to content

Commit 6efdcee

Browse files
committed
Added dynamic versioning plugin
1 parent 71bc662 commit 6efdcee

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Install package in editable mode and get the development requirements with:
2626
poetry install --with dev --with doc
2727
```
2828

29+
The package uses dynamic versioning.
30+
The plugin can be added to your Poetry installation with:
31+
```
32+
poetry self add "poetry-dynamic-versioning[plugin]"
33+
```
34+
2935
### Documentation
3036

3137
Documentation is built using Sphinx.

pyproject.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["poetry-core"]
3-
build-backend = "poetry.core.masonry.api"
2+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
3+
build-backend = "poetry_dynamic_versioning.backend"
44

55
[tool.poetry]
66
name = "twincat-tools"
7-
version = "0.1.0"
7+
version = "0.0.0" # Overwritten by dynamic versioning
88
description = "A set of tools for TwinCAT projects"
99
authors = ["Robert Roos <[email protected]>"]
1010
readme = "README.md"
@@ -50,6 +50,9 @@ tc_xml_sort = "tctools.xml_sort.__main__:main_argv"
5050
tc_git_info = "tctools.git_info.__main__:main_argv"
5151
tc_make_release = "tctools.make_release.__main__:main_argv"
5252

53+
[tool.poetry-dynamic-versioning]
54+
enable = true
55+
5356
# ----------- Other tools -----------
5457

5558
[tool.black]

src/tctools/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
"""TcTools package."""
2+
3+
# Version placeholder - will be updated by poetry-dynamic-versioning":
4+
__version__ = "0.0.0"

0 commit comments

Comments
 (0)