Files
novelWriter/setup/make_pip.sh
T
Veronica Berglyd Olsen 1386be23f4 Setup fixes post 1.5 release (#902)
* The main version must now always include the patch number
* Fix bug in pip build script
* Fix bug in debian sha256 function call
2021-09-19 13:43:20 +02:00

31 lines
740 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -f setup.py ]; then
echo "Must be called from the root folder of the source"
exit 1
fi
echo ""
echo " Building Packages"
echo "================================================================================"
echo ""
python3 setup.py qtlrelease manual sample
python3 setup.py sdist bdist_wheel
mkdir -pv dist_upload
cp -v dist/novelWriter-*.whl dist_upload/
echo ""
echo " Checking Packages"
echo "================================================================================"
echo ""
twine check dist/*
echo ""
echo " Done!"
echo "================================================================================"
echo ""
echo " To upload packages to PyPi, run:"
echo " twine upload dist/*"
echo ""