python: switch to uv for deploy_to_pypi
- ID
fb355cf- date
2026-03-31 19:26:04+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
e38741d- message
python: switch to uv for deploy_to_pypi- changed files
1 file, 7 additions, 7 deletions
Changed files
python/deploy_to_pypi (962) → python/deploy_to_pypi (948)
diff --git a/python/deploy_to_pypi b/python/deploy_to_pypi
index 00810a4..c47f6d0 100755
--- a/python/deploy_to_pypi
+++ b/python/deploy_to_pypi
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Deploy a new version of a Flickr Foundation Python library:
+# Deploy a new version of a Python library:
#
# 1. Bump the version
# 2. Tag the Git commit
@@ -19,13 +19,13 @@ rm -rv dist/*
echo ""
-print_info '-> python3 -m build'
-python3 -m build -C--quiet
+print_info "-> uv build"
+uv build
echo ""
-print_info '-> python3 -m twine upload dist/* --username=__token__'
-python3 -m twine upload dist/* --username=__token__
+print_info "-> uv publish --username=__token__ --keyring-provider=subprocess"
+uv publish --username=__token__ --keyring-provider=subprocess
echo ""
@@ -39,5 +39,5 @@ git tag "v$version"
echo ""
-print_info "-> git push origin --tag"
-git push origin --tag
+print_info "-> git push origin main --tag"
+git push origin main --tag