Skip to content

Commit 9f5dc3d

Browse files
committed
assume f-strings are available (python3.6+) for all scripts we are the only ones to run
1 parent e658296 commit 9f5dc3d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

make_release.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/python
2-
# coding=utf-8
32
# Release script for Editor
43
# Licence: GPLv3
54
# Requires:
65
# * git
7-
from __future__ import print_function, unicode_literals
8-
96
import sys
107
import json
118
from os.path import abspath, dirname, join
@@ -40,7 +37,7 @@ def update_version_in_json_used_by_menuinst(config):
4037
menu_items = data['menu_items']
4138
for i, menu_item in enumerate(menu_items):
4239
if 'webbrowser' in menu_item:
43-
menu_items[i]['webbrowser'] = 'http://larray.readthedocs.io/en/{}'.format(version)
40+
menu_items[i]['webbrowser'] = f'http://larray.readthedocs.io/en/{version}'
4441
with open(menuinst_file, mode='w') as mf:
4542
json.dump(data, mf, indent=4)
4643

@@ -57,7 +54,7 @@ def update_version_in_json_used_by_menuinst(config):
5754
if __name__ == '__main__':
5855
argv = sys.argv
5956
if len(argv) < 2:
60-
print("Usage: {} [-c|--conda] release_name|dev [step|startstep:stopstep] [branch]".format(argv[0]))
57+
print(f"Usage: {argv[0]} [-c|--conda] release_name|dev [step|startstep:stopstep] [branch]")
6158
print("make release steps:", ', '.join(f.__name__ for f, _ in make_release_steps))
6259
print("update conda-forge feedstock steps:", ', '.join(f.__name__ for f, _ in update_feedstock_steps))
6360
sys.exit()

next_release.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/python
2-
# encoding: utf-8
32
# script to start a new release cycle
43
# Licence: GPLv3
54
from os.path import abspath, dirname
@@ -12,7 +11,7 @@
1211

1312
argv = sys.argv
1413
if len(argv) < 2:
15-
print("Usage: {} release_name [branch]".format(argv[0]))
14+
print(f"Usage: {argv[0]} release_name [branch]")
1615
sys.exit()
1716

1817
local_repository = abspath(dirname(__file__))

0 commit comments

Comments
 (0)