trim21 opened a new pull request, #9346:
URL: https://github.com/apache/opendal/pull/9346

   # Which issue does this PR close?
   
   None.
   
   # Rationale for this change
   
   The Python binding publishes candidates to TestPyPI only when a release 
candidate tag is pushed, so there is no way to install a wheel built from 
`main`. Users and maintainers cannot exercise binding changes against the 
published package format before a release.
   
   This adds a weekly scheduled run on `main` that builds the full wheel matrix 
and publishes a dated development version to TestPyPI.
   
   # What changes are included in this PR?
   
   - `.github/workflows/build-python-wheels.yml` is a new reusable workflow 
(`workflow_call`) that holds the sdist and wheel matrix previously in 
`release_python.yml`. It takes one input, `dev`. Releases keep the existing 
tag-driven release candidate preparation; the weekly workflow also passes 
`--dev`.
   - `.github/workflows/release_python.yml` calls that reusable workflow and 
keeps its own two publish steps, so the released artifacts and its 
trusted-publisher identity are unchanged. Its jobs now appear as `build / 
sdist` and `build / wheels`.
   - `.github/workflows/weekly_python_wheels.yml` runs at `0 16 * * 3` UTC, 
which is Thursday 00:00 in UTC+8, calls the reusable workflow with `dev: true`, 
and publishes to TestPyPI. `gh workflow run weekly_python_wheels.yml -f 
publish-test-pypi=true` runs the same build on demand; without the input it 
only builds.
   - `.github/scripts/release_python/prepare.py` gains `--dev`, which renders 
`<stable>.dev<YYYYMMDD>` (date in `Asia/Shanghai`) into the PEP 621 metadata, 
reusing the existing `pyproject.toml` rewrite. `--dev` and `--tag` are mutually 
exclusive, and the release candidate path is unchanged.
   - Two unit tests cover the development version format and the idempotent 
rewrite, and the release helper README documents the new mode.
   
   Publishing skips files that already exist on the index (`--check-url`), so 
re-running the same day's build is a no-op instead of a version conflict.
   
   # Are there any user-facing changes?
   
   Only for users who opt in to TestPyPI. `opendal` keeps publishing stable 
builds to PyPI and release candidates to TestPyPI exactly as before. The new 
versions are PEP 440 development releases such as `0.47.12.dev20261126`, which 
require `--pre` to install.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi
   - Model: deepseek-v4.1-flash (provider: axonhub)
   - Effort: high
   - Role: Split the wheel matrix into a reusable workflow, added the `--dev` 
version mode with tests, and drafted this description. The author reviewed the 
change and remains accountable for it. Not verified: no workflow run has 
executed the new files yet, and a TestPyPI trusted publisher entry for 
`weekly_python_wheels.yml` must exist before the scheduled publish can mint an 
OIDC token.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to