From e18343d1690902e1a8a5c777f0b5b304c7593578 Mon Sep 17 00:00:00 2001 From: Ryuichi Yamamoto Date: Sat, 27 Oct 2018 16:14:58 +0900 Subject: [PATCH] prepare for release --- release.sh | 22 ++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 release.sh diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..9dad00e --- /dev/null +++ b/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/ diff --git a/setup.py b/setup.py index fe1ffba..d2abb2b 100644 --- a/setup.py +++ b/setup.py @@ -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__))