diff --git a/.pipelines/release.yml b/.pipelines/release.yml index 0eb086ef..009e446a 100644 --- a/.pipelines/release.yml +++ b/.pipelines/release.yml @@ -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: @@ -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: diff --git a/bindings/py/README.md b/bindings/py/README.md index a4b58380..d6d47c54 100644 --- a/bindings/py/README.md +++ b/bindings/py/README.md @@ -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. diff --git a/docs/status/PYTHON_CHECKLIST.md b/docs/status/PYTHON_CHECKLIST.md index a08f65d1..a350d650 100644 --- a/docs/status/PYTHON_CHECKLIST.md +++ b/docs/status/PYTHON_CHECKLIST.md @@ -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