mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 09:10:20 +00:00
Update generated salt/_version.py
file to use __saltstack_version__
.
This commit is contained in:
parent
de970edfb2
commit
bba9c3f4d2
1 changed files with 4 additions and 4 deletions
8
setup.py
8
setup.py
|
@ -254,8 +254,9 @@ INSTALL_VERSION_TEMPLATE = '''\
|
|||
# This file was auto-generated by salt's setup on \
|
||||
{date:%A, %d %B %Y @ %H:%m:%S UTC}.
|
||||
|
||||
__version__ = {version!r}
|
||||
__version_info__ = {version_info!r}
|
||||
from salt.version import SaltStackVersion
|
||||
|
||||
__saltstack_version__ = SaltStackVersion{full_version_info!r}
|
||||
'''
|
||||
|
||||
|
||||
|
@ -292,8 +293,7 @@ class Build(build):
|
|||
open(version_file_path, 'w').write(
|
||||
INSTALL_VERSION_TEMPLATE.format(
|
||||
date=datetime.utcnow(),
|
||||
version=__version__,
|
||||
version_info=__version_info__
|
||||
full_version_info=__saltstack_version__.full_info
|
||||
)
|
||||
)
|
||||
# pylint: enable=E0602
|
||||
|
|
Loading…
Add table
Reference in a new issue