Skip to content

Commit 65c2c7f

Browse files
authored
add pypi development release to weekly build (#3910)
1 parent 11e3146 commit 65c2c7f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/weekly.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ jobs:
9090
- weekly-build
9191
if: needs.check-changes.outputs.has-changes == 'true' || github.event.inputs.force_build == 'true'
9292
runs-on: ubuntu-latest
93+
environment:
94+
name: pypi
95+
url: https://pypi.org/p/altair
9396
permissions:
9497
contents: write
98+
id-token: write
9599
steps:
96100
- uses: actions/checkout@v5
97101
with:
@@ -195,6 +199,11 @@ jobs:
195199
echo "Release assets:"
196200
ls -lh dist/
197201
ls -lh *.txt 2>/dev/null || echo "No text files"
202+
- name: Publish to PyPI
203+
uses: pypa/gh-action-pypi-publish@release/v1
204+
with:
205+
verbose: true
206+
skip-existing: true
198207
- name: Create GitHub release
199208
uses: softprops/action-gh-release@v2
200209
with:
@@ -213,6 +222,18 @@ jobs:
213222
214223
## Installation
215224
225+
### From PyPI (recommended)
226+
227+
Install the latest weekly build directly from PyPI:
228+
229+
```bash
230+
pip install altair==${{ steps.version.outputs.version }}
231+
# or
232+
uv pip install altair==${{ steps.version.outputs.version }}
233+
```
234+
235+
_Note_: Weekly builds use timestamped development versions (for example `${{ steps.version.outputs.version }}`) for the PyPI artifacts. Installing from PyPI with an exact version pin picks up the full dev version automatically—no `--pre` flag required.
236+
216237
### From GitHub Repository (direct install)
217238
218239
Install directly from the tagged commit without downloading the wheel:
@@ -224,6 +245,8 @@ jobs:
224245
uv pip install git+https://github.com/${{ github.repository }}.git@${{ steps.version.outputs.tag_name }}
225246
```
226247
248+
_Note_: Installing directly from the `weekly-...` tag will surface the base development version (without the timestamp suffix) because the version file edits are not committed.
249+
227250
**Add to pyproject.toml (pip/uv):**
228251
```toml
229252
[project]

0 commit comments

Comments
 (0)