Skip to content

Commit

Permalink
update the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 29, 2023
1 parent 5995764 commit 4a9bec8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion make_release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ git commit -m "New version $VERSION" -v version.txt
echo "tagging"
git tag $VERSION
echo "preparing the pypi package"
rm -rf dist/*
rm -rf dist/* build/*
TMPDIR=`mktemp -d`
cp -r * $TMPDIR
cd $TMPDIR/
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*

rm -fr $TMPDIR

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def get_revision():
ret = '+dev' + revision
else:
ret = ''
except:
ret= ''
except: # noqa
ret = ''
return ret


Expand All @@ -38,7 +38,7 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


VERSIONPIP=read('version.txt').rstrip()
VERSIONPIP = read('version.txt').rstrip()
VERSION = VERSIONPIP + get_revision()

with open('py/minimint/_version.py', 'w') as fp:
Expand Down

0 comments on commit 4a9bec8

Please sign in to comment.