forked from larray-project/larray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext_release.py
More file actions
35 lines (25 loc) · 748 Bytes
/
next_release.py
File metadata and controls
35 lines (25 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/python
# script to start a new release cycle
# Licence: GPLv3
from os.path import abspath, dirname
from make_release import PACKAGE_NAME, SRC_CODE, SRC_DOC
from releaser import add_release
CHANGELOG_INDEX_TEMPLATE = """{title}
{underline}
In development.
CORE
----
.. include:: ./changes/{fname}
EDITOR
------
.. include:: ./changes/editor/{fname}
"""
if __name__ == '__main__':
import sys
argv = sys.argv
if len(argv) < 2:
print(f"Usage: {argv[0]} release_name")
sys.exit()
local_repository = abspath(dirname(__file__))
add_release(local_repository, PACKAGE_NAME, SRC_CODE, release_name=argv[1], src_documentation=SRC_DOC,
changelog_index_template=CHANGELOG_INDEX_TEMPLATE)