Skip to content
Snippets Groups Projects
Commit d54757c5 authored by Andreas Burbach's avatar Andreas Burbach
Browse files

remove dynamic versioning

parent 66deec82
Branches
No related tags found
1 merge request!2Merge feedingChickenWithChicken into main
Pipeline #75186 failed
[build-system] [build-system]
requires = [ "poetry-core>=1.0.0", "poetry-dynamic-versioning",] requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
...@@ -11,9 +11,6 @@ license = "BSD-4" ...@@ -11,9 +11,6 @@ license = "BSD-4"
readme = "README.md" readme = "README.md"
homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network" homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network"
[tool.poetry-dynamic-versioning]
enable = true
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.9" python = "^3.9"
Django = "^3.2.9" Django = "^3.2.9"
......
__version_major__ = 0
__version_minor__ = 0
__version_patch__ = 1
__version__ = '{}.{}.{}'.format(__version_major__, __version_minor__, __version_patch__)
\ No newline at end of file
import sys
import toml
if len(sys.argv) != 2:
print("Usage: python versioning.py <version>")
sys.exit(1)
version = sys.argv[1]
with open("pyproject.toml", "r") as f:
toml_file = toml.load(f)
toml_file["tool"]["poetry"]["version"] = version
with open('pyproject.toml', 'w') as f:
new_toml_string = toml.dump(toml_file, f)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment