Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marc Feger
The Social Network
Commits
d54757c5
Commit
d54757c5
authored
Nov 25, 2021
by
Andreas Burbach
Browse files
remove dynamic versioning
parent
66deec82
Pipeline
#75186
failed with stages
in 23 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
social_network/pyproject.toml
View file @
d54757c5
[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"
...
@@ -21,4 +18,4 @@ djangorestframework = "^3.12.4"
...
@@ -21,4 +18,4 @@ djangorestframework = "^3.12.4"
Pillow
=
"^8.4.0"
Pillow
=
"^8.4.0"
django-cors-headers
=
"^3.10.0"
django-cors-headers
=
"^3.10.0"
django-dotenv
=
"^1.4.2"
django-dotenv
=
"^1.4.2"
uWSGI
=
"^2.0.20"
uWSGI
=
"^2.0.20"
\ No newline at end of file
social_network/the_social_network/version.py
deleted
100644 → 0
View file @
66deec82
__version_major__
=
0
__version_minor__
=
0
__version_patch__
=
1
__version__
=
'{}.{}.{}'
.
format
(
__version_major__
,
__version_minor__
,
__version_patch__
)
\ No newline at end of file
social_network/versioning.py
deleted
100644 → 0
View file @
66deec82
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment