Append CI build number to package version
This makes them unique and avoid collision with the shared cache. issue8831 review254651002
This commit is contained in:
@@ -73,6 +73,12 @@ if minor_version % 2:
|
||||
version = '%s.%s.dev0' % (major_version, minor_version)
|
||||
download_url = 'hg+http://hg.tryton.org/%s#egg=%s-%s' % (
|
||||
name, name, version)
|
||||
local_version = []
|
||||
for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER', 'CI_JOB_ID']:
|
||||
if os.environ.get(build):
|
||||
local_version.append(os.environ[build])
|
||||
if local_version:
|
||||
version += '+' + '.'.join(local_version)
|
||||
|
||||
dist = setup(name=name,
|
||||
version=version,
|
||||
|
||||
Reference in New Issue
Block a user