#!/bin/bash VENV_DIR="venv" if [ -d "$VENV_DIR" ]; then source "$VENV_DIR/bin/activate" else python3 -m venv venv source "$VENV_DIR/bin/activate" fi pip install --upgrade pip pip install -r requirements.txt python setup.py sdist bdist_wheel || { echo "setup.py failed!"; exit 1; } twine check dist/* || { echo "twine check failed!"; exit 1; } twine upload dist/* || { echo "twine upload failed!"; exit 1; }