Skip to content

Commit

Permalink
PyPT update
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <[email protected]>
  • Loading branch information
Kwpolska committed Aug 22, 2016
1 parent 04637bd commit 77c27fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .pypt/commitlog
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main():
new_version = args.new_version[0]

with open(filename) as fh:
e = re.findall('#~ C(.*?) MESSAGE START ~#\n(.*?)\n#~ C(.*?) MESSAGE '
e = re.findall('#~ (C[A-Z]+) MESSAGE START ~#\n(.*?)\n#~ (C[A-Z]+) MESSAGE '
'END ~#', fh.read(), flags=re.S)

for i in e:
Expand All @@ -97,7 +97,6 @@ def main():
print('ERROR: mismatched tags')
return 1
else:
i[0] = 'C' + i[0] # regexp hack
if i[0] == 'COMMIT':
with open(filename + '-commit', 'w') as fh:
fh.write(i[1])
Expand Down
4 changes: 2 additions & 2 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ sed "s/# $PROJECT v.*/# $PROJECT v$version/" $PROJECTLC/**/*.py -i
sed "s/__version__ = .*/__version__ = '$version'/g" $PROJECTLC/__init__.py -i
sed "s/:Date: .*/:Date: $date/g" docs/*.rst -i

sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD -i || true
sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD-git -i || true
[[ -e "PKGBUILD" ]] && sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD -i || true
[[ -e "PKGBUILD-git" ]] && sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD-git -i || true

cp docs/README.rst docs/CHANGELOG.rst docs/CONTRIBUTING.rst .
cp docs/README.rst README
Expand Down

0 comments on commit 77c27fa

Please sign in to comment.