Skip to content

Commit 68cb9ea

Browse files
committed
updated next_release.py
1 parent 1d6ea1c commit 68cb9ea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

make_release.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def replace_lines(fpath, changes, end="\n"):
264264
lines = f.readlines()
265265
for i, line in enumerate(lines[:]):
266266
for substring_to_find, new_line in changes:
267-
if substring_to_find in line and '#' not in line:
267+
if substring_to_find in line and not line.strip().startswith('#'):
268268
lines[i] = new_line + end
269269
with open(fpath, 'w') as f:
270270
f.writelines(lines)
@@ -674,7 +674,7 @@ def announce_new_release(context):
674674
############################################
675675
# UPDATE LARRAY METAPACKAGE ON CONDA-FORGE #
676676
############################################
677-
# assume larray package on cond-forge has been updated
677+
# assume larray package on conda-forge has been updated
678678

679679
####################
680680
# ANNOUNCE RELEASE #

next_release.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,12 @@ def update_changelog(release_name):
4444
if no('Does the full changelog look right?'):
4545
exit(1)
4646
call('git add {}'.format(fpath))
47-
call('git commit -m "added release {} as in development in changes.rst"'.format(short(release_name)))
4847

4948

5049
def add_release(release_name, branch='master'):
5150
update_changelog(release_name)
5251
context = {'branch': branch,
53-
'release_name': 'dev',
52+
'release_name': release_name+'-dev',
5453
'repository': abspath(dirname(__file__)),
5554
'build_dir': abspath(dirname(__file__)),
5655
'public_release': True}

0 commit comments

Comments
 (0)