Changeset - f5b5749113aa
[Not reviewed]
stable
0 1 0
Thomas De Schampheleire - 8 years ago 2018-03-18 21:08:52
thomas.de_schampheleire@nokia.com
make-release: use a fresh virtualenv for building the release

A user-provided virtualenv could contain extra packages or different
versions, which may mask problems inside Kallithea.
1 file changed with 16 insertions and 0 deletions:
0 comments (0 inline, 0 general)
scripts/make-release
Show inline comments
 
#!/bin/bash
 
set -e
 
set -x
 

	
 
cleanup()
 
{
 
  echo "Removing venv $venv"
 
  rm  -rf "$venv"
 
}
 

	
 
echo "Checking that you are NOT inside a virtualenv"
 
[ -z "$VIRTUAL_ENV" ]
 

	
 
venv=$(mktemp -d --tmpdir kallithea-release-XXXXX)
 
trap cleanup EXIT
 

	
 
echo "Setting up a fresh virtualenv in $venv"
 
virtualenv -p python2 "$venv"
 
. "$venv/bin/activate"
 

	
 
echo "Install/verify tools needed for building and uploading stuff"
 
pip install --upgrade -e .
 
pip install --upgrade Sphinx Sphinx-PyPI-upload
 

	
 
echo "Cleanup and update copyrights ... and clean checkout"
 
scripts/whitespacecleanup.sh
0 comments (0 inline, 0 general)