File: rever.xsh

package info (click to toggle)
cddlib 094m-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,276 kB
  • sloc: ansic: 9,308; makefile: 95; sh: 1
file content (54 lines) | stat: -rw-r--r-- 1,773 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
######################################################################
#  This file is part of cddlib.
#
#        Copyright (C) 2020 Julian RĂ¼th
#
#  cddlib is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or (at your
#  option) any later version.
#
#  cddlib is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with cddlib. If not, see <https://www.gnu.org/licenses/>.
#####################################################################

import sys

try:
  input("Are you sure you are on the master branch which is identical to origin/master and the only pending changes are a version bump in the configure.ac of the library and possible author annotations in the news files and in AUTHORS? [ENTER]")
except KeyboardInterrupt:
  sys.exit(1)

sys.path.insert(0, 'recipe/snippets/rever')

import dist

$PROJECT = 'cddlib'

$ACTIVITIES = [
    'version_bump',
    'changelog',
    'dist',
    'tag',
    'push_tag',
    'ghrelease',
]

$VERSION_BUMP_PATTERNS = [
    ('configure.ac', r'AC_INIT', r'AC_INIT([cddlib], [$VERSION])'),
    ('lib-src/cddtypes.h', r'#define dd_DDVERSION', r'#define dd_DDVERSION   "Version $VERSION"'),
]

$CHANGELOG_FILENAME = 'ChangeLog'
$CHANGELOG_TEMPLATE = 'TEMPLATE.rst'
$PUSH_TAG_REMOTE = 'git@github.com:cddlib/cddlib.git'

$GITHUB_ORG = 'cddlib'
$GITHUB_REPO = 'cddlib'

$GHRELEASE_ASSETS = ['cddlib-' + $VERSION + '.tar.gz']