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
f5f33d14
Commit
f5f33d14
authored
Nov 03, 2021
by
Siarhei Khaletski (EPAM)
🚩
Browse files
Merge branch 'GONRG-3618_Fix_local_build_setup' into 'master'
GONRG-3618: Local build setup See merge request
!50
parents
48ab6346
9b77d6ca
Pipeline
#75332
passed with stages
in 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
f5f33d14
0.1
2
.0
0.1
3
.0
setup.py
View file @
f5f33d14
...
...
@@ -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