Skip to content

Commit 7c2a0c9

Browse files
author
Matt Carey
committed
fix: script dependencies
1 parent 86672d7 commit 7c2a0c9

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,17 @@ jobs:
3333
- name: Update version in __init__.py
3434
if: ${{ steps.release.outputs.release_created }}
3535
run: |
36-
uv run --python-dep tomli scripts/update_version.py
36+
uv run scripts/update_version.py
3737
3838
- name: Build and publish package
3939
if: ${{ steps.release.outputs.release_created }}
4040
env:
4141
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
4242
run: |
43+
# Make sure py.typed files exist
44+
touch py.typed
45+
mkdir -p stackone_ai
46+
touch stackone_ai/py.typed
47+
4348
uv build
4449
uv publish

scripts/build_docs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env python
2+
# /// script
3+
# requires-python = ">=3.11"
4+
# ///
15
import re
26
from pathlib import Path
37

scripts/update_version.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/usr/bin/env python
2+
# /// script
3+
# requires-python = ">=3.11"
4+
# dependencies = [
5+
# "tomli",
6+
# ]
7+
# ///
28
"""
39
Script to ensure version consistency between pyproject.toml and __init__.py.
410
Run this script after release-please updates the version in pyproject.toml.
5-
6-
Dependencies:
7-
- tomli
811
"""
912

1013
import re

0 commit comments

Comments
 (0)