Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ jobs:
- name: Update version in __init__.py
if: ${{ steps.release.outputs.release_created }}
run: |
uv run --python-dep tomli scripts/update_version.py
uv run scripts/update_version.py

- name: Build and publish package
if: ${{ steps.release.outputs.release_created }}
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
# Make sure py.typed files exist
touch py.typed
mkdir -p stackone_ai
touch stackone_ai/py.typed

uv build
uv publish
4 changes: 4 additions & 0 deletions scripts/build_docs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.11"
# ///
import re
from pathlib import Path

Expand Down
9 changes: 6 additions & 3 deletions scripts/update_version.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env python
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "tomli",
# ]
# ///
"""
Script to ensure version consistency between pyproject.toml and __init__.py.
Run this script after release-please updates the version in pyproject.toml.

Dependencies:
- tomli
"""

import re
Expand Down