Skip to content

Commit 4b5bbce

Browse files
iamgpampcode-com
andcommitted
ci: run build/twine via uv run --with to avoid missing modules in fresh venvs
Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-2faefe91-1117-4536-b79d-e0f711b0bced
1 parent bdca199 commit 4b5bbce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
- name: Build ${{ matrix.package }}
3030
working-directory: src/${{ matrix.package }}
3131
run: |
32-
uv run python -m build
32+
uv run --with build python -m build
3333
- name: Publish ${{ matrix.package }} to PyPI
3434
working-directory: src/${{ matrix.package }}
3535
env:
3636
TWINE_USERNAME: __token__
3737
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3838
run: |
39-
uv run python -m twine upload dist/*
39+
uv run --with twine python -m twine upload dist/*
4040
4141
publish-main:
4242
name: Publish dash-dashkit
@@ -55,10 +55,10 @@ jobs:
5555
uv pip install --system --quiet build twine
5656
- name: Build main
5757
run: |
58-
uv run python -m build
58+
uv run --with build python -m build
5959
- name: Publish dash-dashkit to PyPI
6060
env:
6161
TWINE_USERNAME: __token__
6262
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
6363
run: |
64-
uv run python -m twine upload dist/dash_dashkit-*.whl dist/dash_dashkit-*.tar.gz
64+
uv run --with twine python -m twine upload dist/dash_dashkit-*.whl dist/dash_dashkit-*.tar.gz

0 commit comments

Comments
 (0)