Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Set version correctly (due to change above)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
scripts/set_version.py
|
@@ -36,7 +36,7 @@ def sed_like_thing(pattern, repl, path): |
|
|
sed_like_thing("release = .*", "release = '{0}'".format(version), os.path.join('docs', 'sphinx', 'conf.py')) |
|
|
sed_like_thing('__version__ = ".*"', '__version__ = "{0}"'.format(version), os.path.join('nikola', '__init__.py')) |
|
|
sed_like_thing('New in master', 'New in v{0}'.format(version), 'CHANGES.txt') |
|
|
sed_like_thing('Nikola v.*', 'Nikola v{0}'.format(version), os.path.join('docs', 'man', 'nikola.rst')) |
|
|
sed_like_thing(':Version: .*', ':Version: Nikola v{0}'.format(version), os.path.join('docs', 'man', 'nikola.rst')) |
|
|
man = subprocess.check_output(["rst2man", os.path.join('docs', 'man', 'nikola.rst')]) |
|
|
with io.open(os.path.join('docs', 'man', 'nikola.1'), 'w', encoding='utf-8') as fh: |
|
|
try: |
|
|