Skip to content

Commit 0b6fecb

Browse files
committed
Prepare for pypi release
1 parent a462619 commit 0b6fecb

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include README.md LICENSE.md

release.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Script for Pypi release
4+
# 0. Make sure you are on git tag
5+
# 1. Run the script
6+
# 2. Upload sdist
7+
8+
set -e
9+
10+
script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
11+
cd $script_dir
12+
13+
TAG=$(git describe --exact-match --tags HEAD)
14+
15+
VERSION=${TAG/v/}
16+
17+
DEEPVOICE3_PYTORCH_BUILD_VERSION=$VERSION python setup.py develop sdist
18+
echo "*** Ready to release! deepvoice3_pytorch $TAG ***"
19+
echo "Please run the following command manually:"
20+
echo DEEPVOICE3_PYTORCH_BUILD_VERSION=$VERSION python setup.py sdist upload
21+
echo "Please make sure that release verion is correct."
22+
cat deepvoice3_pytorch/version.py

0 commit comments

Comments
 (0)