Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

Update release workflow

patcher9439911e6456a
diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml
index 5b7117a6..50271bf8 100644
--- a/.github/workflows/pypi-release.yml
+++ b/.github/workflows/pypi-release.yml
@@ -7,7 +7,6 @@ on:
permissions:
contents: write
- id-token: write
jobs:
release:
@@ -25,36 +24,23 @@ jobs:
working-directory: sdk/python
run: |
python -m pip install --upgrade pip
- pip install poetry==1.8.3
- poetry --version
- poetry config --list
+ pip install poetry
- name: Build package
working-directory: sdk/python
run: |
rm -rf dist/
- echo "=== Poetry configuration ==="
- cat pyproject.toml | head -20
- echo "=== Source directory structure ==="
- find src/ -name "*.py" | head -10
- echo "=== Building package ==="
- poetry build -vvv
+ poetry build
- name: Validate package
working-directory: sdk/python
run: |
pip install twine
- echo "=== Listing built files ==="
- ls -la dist/
- echo "=== Checking wheel contents ==="
- python -m zipfile -l dist/*.whl | head -20
- echo "=== Extracting and checking metadata ==="
- python -m zipfile -e dist/*.whl temp_extract/
- find temp_extract/ -name "METADATA" -exec cat {} \; | head -20
- echo "=== Running twine check ==="
twine check dist/*
- name: Publish package
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
with:
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: sdk/python/dist