Skip to content

Commit 8d50e73

Browse files
author
Hai Liang Wang
committed
Update publish script to release new version in pypi.org
1 parent e829bf8 commit 8d50e73

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

scripts/pypi.sh

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
###########################################
3-
# publish package to pypi
3+
#
44
###########################################
55

66
# constants
@@ -13,4 +13,16 @@ export PATH=/opt/miniconda3/envs/venv-py3/bin:$PATH
1313
# main
1414
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
1515
cd $baseDir/..
16-
python setup.py upload -r pypi
16+
17+
if [ ! -d tmp ]; then
18+
mkdir tmp
19+
fi
20+
21+
if [ -f synonyms/data/words.vector.gz ]; then
22+
echo "Move pkg to tmp"
23+
mv synonyms/data/words.vector.gz tmp
24+
fi
25+
26+
rm -rf ./dist/*
27+
python setup.py sdist upload -r pypi
28+
mv tmp/words.vector.gz synonyms/data/words.vector.gz

0 commit comments

Comments
 (0)