Skip to content

Commit ea7f024

Browse files
committed
chore: experimenting with dynamic versioning
1 parent 4ca9643 commit ea7f024

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

pyproject.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "igraph_ctypes"
3-
version = "0.1.0"
3+
version = "0.0.0.post58.dev0+4ca9643"
44
description = ""
55
authors = ["Tamas Nepusz <[email protected]>"]
66
packages = [
@@ -19,6 +19,12 @@ richbench = "^1.0.3"
1919
igraph = "^0.10.6"
2020
stimulus = { git = "https://github.com/igraph/stimulus.git", tag = "0.14.0" }
2121

22+
[tool.poetry-dynamic-versioning]
23+
enable = true
24+
25+
[tool.poetry-dynamic-versioning.substitution]
26+
files = ["src/igraph_ctypes/_version.py"]
27+
2228
[tool.ruff]
2329
ignore = ["F405"]
2430
line-length = 88
@@ -30,5 +36,5 @@ select = ["B", "C", "E", "F", "W"]
3036
"src/igraph_ctypes/_internal/lib.py" = ["E501"]
3137

3238
[build-system]
33-
requires = ["poetry-core>=1.0.0"]
34-
build-backend = "poetry.core.masonry.api"
39+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
40+
build-backend = "poetry_dynamic_versioning.backend"

src/igraph_ctypes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .version import __version__
1+
from ._version import __version__
22

33
from .graph import Graph
44
from ._internal.setup import setup_igraph_library

src/igraph_ctypes/_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__version_tuple__ = (0, 0, 0, "post58", "dev0", "4ca9643")
2+
__version_info__ = __version_tuple__
3+
__version__ = "0.0.0.post58.dev0+4ca9643".join(str(x) for x in __version_info__)

src/igraph_ctypes/version.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)