Skip to content

Commit

Permalink
Merged in SIM-2981 (pull request apache#7)
Browse files Browse the repository at this point in the history
fix: use exact version

Approved-by: Jeffrey Uong
  • Loading branch information
Spenser Gilliland committed May 13, 2020
2 parents ad2366e + a173baf commit 7888f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ def get_version(pkg_dir, main_branch = "master"):

# This comes from Jenkins for upstream/downstream builds
if 'DEV_VERSION' in os.environ:
version = version + "-" + os.environ['DEV_VERSION']
version = version + ".dev0+" + os.environ['DEV_VERSION']

return version


def get_package(env, pkg_name, pkg_version):
if env in os.environ and os.environ[env] != "latest":
return "%s==%s-%s" % (pkg_name, pkg_version, os.environ[env])
return "%s==%s.dev0+%s" % (pkg_name, pkg_version, os.environ[env])
else:
return "%s==%s" % (pkg_name, pkg_version)

Expand Down

0 comments on commit 7888f51

Please sign in to comment.