Skip to content

Commit

Permalink
Updated doc version updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Espen Flage-Larsen committed Feb 21, 2019
1 parent da12ff3 commit 2f7bdf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
# built documents.
#
# The short X.Y version.
version = 1.1
version = '1.1'
# The full version, including alpha/beta/rc tags.
release = 1.1.0
release = '1.1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 3 additions & 3 deletions ops/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def write_to_doc(self):

for index, line in enumerate(lines):
if 'version = ' in line:
lines[index] = 'version = ' + str(self.version).rsplit(
'.', 1)[0] + '\n'
lines[index] = "version = '" + str(self.version).rsplit(
'.', 1)[0] + "'\n"
if 'release = ' in line:
lines[index] = 'release = ' + str(self.version) + '\n'
lines[index] = "release = '" + str(self.version) + "'\n"

with open(self.conf_file.strpath, 'w') as conf_fo:
conf_fo.writelines(lines)
Expand Down

0 comments on commit 2f7bdf0

Please sign in to comment.