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

patcher9839d7efc9dee
diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml
index 6e5dd8be..89ce4562 100644
--- a/.github/workflows/pypi-release.yml
+++ b/.github/workflows/pypi-release.yml
@@ -30,50 +30,19 @@ jobs:
working-directory: sdk/python
run: |
rm -rf dist/
- echo "=== Current directory ==="
- pwd
- echo "=== Directory contents ==="
- ls -la
- echo "=== Checking if src/openlit exists ==="
- if [ -d "src/openlit" ]; then
- echo "✅ src/openlit directory exists"
- ls -la src/openlit/
- else
- echo "❌ src/openlit directory NOT found"
- echo "Available directories:"
- find . -type d -name "*openlit*"
- fi
- echo "=== pyproject.toml content ==="
- cat pyproject.toml
- echo "=== Source directory structure ==="
- find . -name "*.py" | head -20
- echo "=== Poetry check ==="
- poetry check
- echo "=== Building with verbose output ==="
- poetry build -vvv
+ poetry build
- name: Validate package
working-directory: sdk/python
run: |
pip install twine
- echo "=== Built files ==="
ls -la dist/
- echo "=== Wheel contents ==="
- python -m zipfile -l dist/*.whl
- echo "=== Extracting wheel ==="
- python -m zipfile -e dist/*.whl temp_extract/
- echo "=== Searching for metadata ==="
- find temp_extract/ -type f -name "*" | sort
- echo "=== METADATA file content ==="
- find temp_extract/ -name "METADATA" -exec cat {} \;
- echo "=== PKG-INFO content (if exists) ==="
- find temp_extract/ -name "PKG-INFO" -exec cat {} \;
- echo "=== Running twine check ==="
- twine check dist/* --verbose
+ twine check dist/*
- name: Publish package
- uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
+ uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: sdk/python/dist
+ verbose: true