Skip to content

Commit 56a2ae8

Browse files
committed
version string now includes the v
1 parent 794f267 commit 56a2ae8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

RELEASE.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# the tags annotation in git.
66
#
77
VERSION=$1
8-
if [[ "$VERSION" != *"."*"."* ]]; then
8+
if [[ "$VERSION" != "v"*"."*"."* ]]; then
99
echo "Invalid version number"
1010
exit 1
1111
fi
12-
if git tag -l | grep -w v$VERSION; then
12+
if git tag -l | grep -w $VERSION; then
1313
echo "Git tag already exists"
1414
exit 1
1515
fi
@@ -24,11 +24,11 @@ rm sliderule-python-$VERSION.tar.gz 2> /dev/null
2424
#
2525
echo $VERSION > version.txt
2626
git add version.txt
27-
git commit -m "Version v$VERSION"
27+
git commit -m "Version $VERSION"
2828

2929
#
3030
# Create tag and acrhive
3131
#
32-
git tag -a v$VERSION -m "version $VERSION"
33-
git archive --format=tar.gz --prefix=sliderule-python/ v$VERSION > sliderule-python-$VERSION.tar.gz
32+
git tag -a $VERSION -m "version $VERSION"
33+
git archive --format=tar.gz --prefix=sliderule-python/ $VERSION > sliderule-python-$VERSION.tar.gz
3434

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# get version
1313
with open('version.txt') as fh:
1414
version = fh.read().strip()
15+
if version[0] == 'v':
16+
version = version[1:]
1517

1618
# list of all utility scripts to be included with package
1719
scripts=[os.path.join('utils',f) for f in os.listdir('utils') if f.endswith('.py')]

0 commit comments

Comments
 (0)