Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
SDKs
Python SDK
Commits
9b77d6ca
Commit
9b77d6ca
authored
Oct 26, 2021
by
Yan Sushchynski (EPAM)
Browse files
GONRG-3618: Local build setup
parent
48ab6346
Pipeline
#75330
passed with stages
in 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
9b77d6ca
0.1
2
.0
0.1
3
.0
setup.py
View file @
9b77d6ca
...
...
@@ -33,9 +33,12 @@ def prepare_version():
else
:
# we assume that it is commit version
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#local-version-identifiers
commit
=
os
.
environ
[
"BUILD_COMMIT_SHORT_SHA"
]
build_id
=
os
.
environ
[
"BUILD_ID"
]
version
=
f
"
{
get_version_from_file
()
}
.dev
{
build_id
}
+
{
commit
}
"
try
:
commit
=
os
.
environ
[
"BUILD_COMMIT_SHORT_SHA"
]
build_id
=
os
.
environ
[
"BUILD_ID"
]
version
=
f
"
{
get_version_from_file
()
}
.dev
{
build_id
}
+
{
commit
}
"
except
KeyError
:
version
=
get_version_from_file
()
return
version
...
...
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