feat(pipeline): add Azure Pipelines configuration for building and publishing library#1085
Draft
MIchaelMainer wants to merge 10 commits into
Draft
feat(pipeline): add Azure Pipelines configuration for building and publishing library#1085MIchaelMainer wants to merge 10 commits into
MIchaelMainer wants to merge 10 commits into
Conversation
…blishing Python packages to PyPI
…blishing Python packages to PyPI
we gate releases in other ways
There was a problem hiding this comment.
Pull request overview
Adds an Azure DevOps (1ES) pipeline to build, test, package, and publish msgraph-sdk-python-core to PyPI, while removing the prior GitHub Actions-based publish workflow.
Changes:
- Added
.azure-pipelines/cd-publish-python.ymlto build/test/package and publish artifacts via ESRP Release. - Removed
.github/workflows/publish.yml(GitHub Actions PyPI publish workflow). - Minor tooling/config updates (dev requirements markers and VS Code Azure Pipelines schema setting).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
requirements-dev.txt |
Removes Python-version markers for dill and wrapt pins. |
.vscode/settings.json |
Enables Azure Pipelines 1ES template schema support in VS Code settings. |
.github/workflows/publish.yml |
Removes the GitHub Actions tag-based PyPI publish workflow. |
.azure-pipelines/cd-publish-python.yml |
Introduces a 1ES Azure Pipelines build + ESRP-based PyPI publishing pipeline. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| stages: | ||
| - stage: build | ||
| displayName: "Build and Package msgraph-sdk-python-core" | ||
| condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), eq(variables['Build.Reason'], 'Manual')) |
| - script: yapf -dr src | ||
| displayName: "Check code format" | ||
|
|
||
| - script: isort src |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Validated that
buildstage runs successfully.NOTE: Must update ADO config to target main once this PR is completed.