mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Build .dev1 packages on non-master branches
This commit is contained in:
parent
eaec560618
commit
c20dfbbc39
@ -66,6 +66,8 @@ def get_git_version(cwd):
|
|||||||
|
|
||||||
def get_version(cwd):
|
def get_version(cwd):
|
||||||
git_version = get_git_version(cwd)
|
git_version = get_git_version(cwd)
|
||||||
|
git_branch = check_output(["git", "branch", "--show-current"], cwd=cwd).decode("utf-8").strip()
|
||||||
|
|
||||||
|
|
||||||
version = git_version[1:].split("-")
|
version = git_version[1:].split("-")
|
||||||
if len(version) > 2:
|
if len(version) > 2:
|
||||||
@ -73,7 +75,7 @@ def get_version(cwd):
|
|||||||
if len(version) > 1:
|
if len(version) > 1:
|
||||||
version = ".post".join(version)
|
version = ".post".join(version)
|
||||||
if is_dev_build():
|
if is_dev_build():
|
||||||
version += ".dev0"
|
version += ".dev0" if git_branch in ['', 'master'] else '.dev1'
|
||||||
else:
|
else:
|
||||||
version = version[0]
|
version = version[0]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user