Commit d54757c5 authored by Andreas Burbach's avatar Andreas Burbach
Browse files

remove dynamic versioning

parent 66deec82
Pipeline #75186 failed with stages
in 23 seconds
[build-system]
requires = [ "poetry-core>=1.0.0", "poetry-dynamic-versioning",]
requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
......@@ -11,9 +11,6 @@ license = "BSD-4"
readme = "README.md"
homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network"
[tool.poetry-dynamic-versioning]
enable = true
[tool.poetry.dependencies]
python = "^3.9"
Django = "^3.2.9"
......@@ -21,4 +18,4 @@ djangorestframework = "^3.12.4"
Pillow = "^8.4.0"
django-cors-headers = "^3.10.0"
django-dotenv = "^1.4.2"
uWSGI = "^2.0.20"
\ No newline at end of file
uWSGI = "^2.0.20"
__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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment