Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Oct 27, 2018
1 parent 30836e8 commit e18343d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions release.sh
@@ -0,0 +1,22 @@
#!/bin/bash

# Script for Pypi release
# 0. Make sure you are on git tag
# 1. Run the script
# 2. Upload sdist

set -e

script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
cd $script_dir

TAG=$(git describe --exact-match --tags HEAD)

VERSION=${TAG/v/}

GANTTS_BUILD_VERSION=$VERSION python setup.py develop sdist
echo "*** Ready to release! gantts $TAG ***"
echo "Please make sure that release verion is correct."
cat gantts/version.py
echo "Please run the following command manually:"
echo twine upload dist/gantts-${VERSION}.tar.gz --repository-url https://upload.pypi.org/legacy/
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@
import os
import subprocess

version = '0.0.1'
version = '0.1.0'

# Adapted from https://github.com/pytorch/pytorch
cwd = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit e18343d

Please sign in to comment.