Skip to main content

python/deploy_to_pypi: fix version detection logic for chives

ID
b0cd4e7
date
2026-07-19 06:34:29+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
488cb4f
message
python/deploy_to_pypi: fix version detection logic for chives
changed files
1 file, 1 addition, 1 deletion

Changed files

python/deploy_to_pypi (1005 → 1026)

diff --git a/python/deploy_to_pypi b/python/deploy_to_pypi
index c843752..feeb036 100755
--- a/python/deploy_to_pypi
+++ b/python/deploy_to_pypi
@@ -29,7 +29,7 @@ uv publish --username=__token__ --password=$(security find-generic-password -s '
 
 echo ""
 
-version=$(find src -name __init__.py \
+version=$(find . -name __init__.py -not -path "./.venv/*" \
   | xargs grep '__version__ =' \
   | awk '{print $3}' \
   | tr -d '"')