File size: 593 Bytes
b922192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# exit if any statement returns non-true return value
set -e

# exit on uninitialized variable
set -u

cd ${buildout:directory}

VERSION=`cat VERSION.txt`
python setup.py sdist upload -r https://testpypi.python.org/pypi | tee upload.log
tail -n 1 upload.log | grep 200

rm -rf testpypi
mkvenv cp2 testpypi
set +u
. testpypi/bin/activate
set -u
pip install --download=testpypi --no-deps --index-url https://testpypi.python.org/simple/ pyhwp==$VERSION
pip install --extra-index-url https://testpypi.python.org/simple/ pyhwp==$VERSION
hwp5proc --version | head -n 1 | grep "$VERSION$"