changeset 1df6f4d7be7f in modules/purchase_invoice_line_standalone:default
details:
https://hg.tryton.org/modules/purchase_invoice_line_standalone?cmd=changeset;node=1df6f4d7be7f
description:
Append CI build number to package version
This makes them unique and avoid collision with the shared cache.
issue8831
review254651002
diffstat:
setup.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r c0c943bbea25 -r 1df6f4d7be7f setup.py
--- a/setup.py Mon Nov 04 13:05:42 2019 +0100
+++ b/setup.py Mon Nov 25 21:55:21 2019 +0100
@@ -44,6 +44,12 @@
download_url = (
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], 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)
requires = ['python-sql']
for dep in info.get('depends', []):