Skip to content

Commit

Permalink
Add template variable for the setup module build number.
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Rosario <[email protected]>
  • Loading branch information
siloraptor committed Oct 18, 2018
1 parent b74a323 commit 46d48cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from __future__ import unicode_literals

__title__ = 'Mayan EDMS'
__version__ = '{{ version }}'
__build__ = 0x030107
__build__ = {{ build }}
__build_string__ = '{{ build_string }}'
__author__ = 'Roberto Rosario'
__author_email__ = '[email protected]'
Expand Down
3 changes: 3 additions & 0 deletions generate_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ def get_requirements(base_directory, filename):
mayan.__version__.split('+')[0].split('.')
)

upstream_build = '0x{:06X}'.format(mayan.__build__)

result = Template(template).render(
context=Context(
{
'build': upstream_build,
'build_string': generate_build_number(),
'timestamp': generate_commit_timestamp(),
'version': upstream_version
Expand Down

0 comments on commit 46d48cc

Please sign in to comment.