forked from xpdAcq/xpdAn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rever.xsh
26 lines (22 loc) · 874 Bytes
/
rever.xsh
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
$PROJECT = 'xpdAn'
$ACTIVITIES = ['version_bump',
#'authors',
'changelog',
'tag',
'push_tag',
'ghrelease',
'conda_forge'
]
$VERSION_BUMP_PATTERNS = [
('xpdan/__init__.py', '__version__\s*=.*', "__version__ = '$VERSION'"),
('setup.py', 'version\s*=.*,', "version='$VERSION',")
]
$CHANGELOG_FILENAME = 'CHANGELOG.rst'
$CHANGELOG_IGNORE = ['TEMPLATE']
$GITHUB_ORG = 'xpdAcq'
$GITHUB_REPO = 'xpdAn'
$TAG_REMOTE = '[email protected]:xpdAcq/xpdAn.git'
$LICENSE_URL = 'https://github.com/{}/{}/blob/master/LICENSE'.format($GITHUB_ORG, $GITHUB_REPO)
from urllib.request import urlopen
rns = urlopen('https://raw.githubusercontent.com/xpdAcq/mission-control/master/tools/release_not_stub.md').read().decode('utf-8')
$GHRELEASE_PREPEND = rns.format($LICENSE_URL, $PROJECT.lower())