17 lines
309 B
Bash
17 lines
309 B
Bash
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
IFS=$'\\n\\t'
|
|
err_report() {
|
|
echo "Error on line $1"
|
|
}
|
|
trap 'err_report $LINENO' ERR
|
|
|
|
rm dist -rf
|
|
python3 setup.py sdist bdist_wheel
|
|
cd dist
|
|
pip3 uninstall wikimedia_connection -y
|
|
pip3 install --user *.whl
|
|
cd ..
|
|
python3 -m unittest
|
|
# twine upload dist/* # to upload to PyPi
|