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
5 changes: 5 additions & 0 deletions .pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ parameters:
displayName: Sign and release the packages (DoEsrp)
type: boolean
default: true
- name: PublishPyPI
displayName: Publish Python packages to PyPI
type: boolean
default: false
- name: signingIdentity
type: object
default:
Expand Down Expand Up @@ -531,6 +535,7 @@ extends:
mainpublisher: 'ESRPRELPACMAN'
domaintenantid: ${{ parameters.signingIdentity.tenantId }}

- ${{ if and(eq(parameters.DoEsrp, 'true'), eq(parameters.PublishPyPI, 'true')) }}:
- stage: Release_PyPI
displayName: Publish to PyPI
dependsOn:
Expand Down
8 changes: 5 additions & 3 deletions bindings/py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ To release:
3. The ADO pipeline waits for the complete wheel set, downloads it through the
repository's GitHub service connection, and revalidates every filename,
platform tag, Python ABI tag, metadata record, type stub, and native payload.
4. ADO publishes the eight `dynwinrt` wheels first and the two
`dynwinrt-codegen` wheels second through the Microsoft ESRP release identity.
PyPI publication is not available from GitHub Actions.
4. PyPI publication is opt-in: the ADO `PublishPyPI` parameter is disabled by
default. When explicitly enabled with `DoEsrp`, ADO publishes the eight
`dynwinrt` wheels first and the two `dynwinrt-codegen` wheels second through
the Microsoft ESRP release identity. PyPI publication is not available from
GitHub Actions.

Before the first release, onboard both PyPI project names to the configured ESRP
service connection and confirm the signing identity, owners, and approvers.
Expand Down
3 changes: 2 additions & 1 deletion docs/status/PYTHON_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ of a dynamic projection.
wheel set to the shared JavaScript GitHub release.
- [ ] Publish signed/provenanced wheels to an approved internal Python feed.
- [x] Route production PyPI publication through the official 1ES ADO release
pipeline and Microsoft ESRP identity.
pipeline and Microsoft ESRP identity, behind the opt-in `PublishPyPI`
parameter that is disabled by default.
- [ ] Complete one-time ESRP/PyPI onboarding for `dynwinrt` and
`dynwinrt-codegen`, including release owners and approvers.
- [x] Add complete tested Python wheel assets and installation notes to GitHub
Expand Down
Loading