cohost.py/build.sh
2022-11-08 21:53:33 -06:00

27 lines
No EOL
493 B
Bash
Executable file

#!/bin/zsh
alias python="python3.11"
if [[ ! -d venv ]]
then
echo "creating build venv"
python -m venv venv/
fi
if [[ -d dist ]]
then
rm -rf dist/
fi
./venv/bin/python -m pip install --upgrade build
./venv/bin/python -m pip install --upgrade wheel
./venv/bin/python -m pip install --upgrade twine
./venv/bin/python -m build
cd dist/
python -m venv venv/
venv/bin/python -m pip install $(find . | grep whl)
echo "starting interactive shell to test package..."
venv/bin/python