Skip to content

Commit

Permalink
Fix indentation bug in _version.py.bld (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rappdw authored Aug 25, 2018
1 parent 152b1c5 commit 3b3c719
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions dockerutils/gen_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ def gen_version_file(filename='_version.py.bld'):
sys.path = orig_path
with open(filename, 'w') as text_file:
text_file.write("""
# This file was generated by build-image invoking versioneer.py. It is generated
# from revision-control system data and simulates the pre-generated copy of this
# file produced by Versioneer for distribution tarballs.
import json
version_json = '''
{}
''' # END VERSION_JSON
def get_versions():
return json.loads(version_json)
""".format(json.dumps(version, sort_keys=True, indent=4, separators=(',', ': '))))
# This file was generated by build-image invoking versioneer.py. It is generated
# from revision-control system data and simulates the pre-generated copy of this
# file produced by Versioneer for distribution tarballs.
import json
version_json = '''
{}
''' # END VERSION_JSON
def get_versions():
return json.loads(version_json)
""".format(json.dumps(version, sort_keys=True, indent=4, separators=(',', ': '))))
except Exception as e:
if not str(type(e)) in ["<class \'versioneer.VersioneerBadRootError\'>", "<class \'ModuleNotFoundError\'>"]:
raise(e)
Expand Down

0 comments on commit 3b3c719

Please sign in to comment.