httpx/scripts/publish
2025-09-16 18:59:11 +01:00

16 lines
264 B
Bash
Executable File

#!/bin/sh
PKG=$1
if [ "$PKG" != "httpx" ] && [ "$PKG" != "ahttpx" ] ; then
echo "publish [httpx|ahttpx]"
exit 1
fi
export PREFIX=""
if [ -d 'venv' ] ; then
export PREFIX="venv/bin/"
fi
${PREFIX}pip install -q twine
${PREFIX}twine upload dist/$PKG-*