Skip to content

Add ADO publish pipeline for PyPI releases#890

Open
RyAuld wants to merge 12 commits intodevfrom
RyAuld/PyPI-ADO-PackagePublish
Open

Add ADO publish pipeline for PyPI releases#890
RyAuld wants to merge 12 commits intodevfrom
RyAuld/PyPI-ADO-PackagePublish

Conversation

@RyAuld
Copy link

@RyAuld RyAuld commented Mar 20, 2026

Summary

Adds a manually-triggered ADO pipeline (.Pipelines/) that validates, tests, builds, and publishes the msal package to test.pypi.org or pypi.org.

Pipeline stages

  1. Validate — confirms the packageVersion parameter matches msal/sku.py version
  2. CI — runs the full pytest matrix across Python 3.9–3.13 (mirrors existing PR build)
  3. Build — builds sdist + wheel, verifies with wine check, publishes as pipeline artifact
  4. Publish — uploads to test.pypi.org (Preview/RC) or pypi.org (Production) depending on the publishTarget parameter; production stage uses the MSAL-Python-Release environment for approval gating

Files added

  • .Pipelines/pipeline-publish.yml\ — main pipeline definition
  • .Pipelines/template-run-tests.yml\ — pytest step template (mirrors \�zure-pipelines.yml)
  • .Pipelines/template-build-package.yml\ — sdist + wheel build template
  • .Pipelines/template-publish-package.yml\ — TwineAuthenticate + twine upload template
  • .Pipelines/template-install-lab-cert.yml\ — lab cert retrieval (kept for future e2e enablement)
  • .Pipelines/ADO-PUBLISH-SETUP.md\ — one-time ADO setup guide

Other changes

  • \msal/sku.py\ — bumped version to \1.35.2rc1; fixed stray \�nd\ prefix on module docstring

@RyAuld RyAuld changed the base branch from main to dev March 20, 2026 22:03
@RyAuld RyAuld requested a review from a team as a code owner March 20, 2026 22:03
Python312:
python.version: '3.12'
Python313:
python.version: '3.13'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pipeline Python Versions
Current CI (azure-pipelines.yml) 3.9, 3.10, 3.11, 3.12, 3.13, 3.14
New Publish - This PR (.Pipelines/pipeline-publish.yml) 3.9, 3.10, 3.11, 3.12, 3.13

Issue:

The new publish pipeline's CI stage is missing Python 3.14. Recommend adding it.

Copy link

@gladjohn gladjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comments. Please Add Python 3.14 to the matrix in .Pipelines/pipeline-publish.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants