Skip to content

Fix twine install in Python tool release stage - #16427

Merged
danieljurek merged 1 commit into
mainfrom
djurek/api-stub-view-twine
Jul 21, 2026
Merged

Fix twine install in Python tool release stage#16427
danieljurek merged 1 commit into
mainfrom
djurek/api-stub-view-twine

Conversation

@danieljurek

Copy link
Copy Markdown
Member

Move PipAuthenticate@1 before the Install Twine step in archetype-sdk-tool-python.yml so pip resolves against the internal DevOps feed.

Why

Internal build 6592632 (tools - apiview-stub-generator) failed at Install Twine:

HTTPSConnection(host='pypi.org', port=443): Failed to establish a new connection: [Errno 1] Operation not permitted
ERROR: No matching distribution found for twine

Internal builds block pypi.org egress. pip install twine ran before PipAuthenticate@1 set PIP_INDEX_URL, so pip had no reachable index.

Fix

Reorder so PipAuthenticate@1 runs first; TwineAuthenticate@0 stays right before twine upload.

Affects releases for apiview-stub-generator, azure-pylint-guidelines-checker, and doc-warden (all consume this template).

Move PipAuthenticate@1 before the Install Twine step so pip resolves
against the internal DevOps feed. Internal builds block pypi.org egress,
so 'pip install twine' failed before the feed index URL was configured.

Affects apiview-stub-generator, azure-pylint-guidelines-checker, and
doc-warden releases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2154e14c-2587-4881-a641-96a82d95a829
Copilot AI review requested due to automatic review settings July 21, 2026 07:15
@danieljurek
danieljurek requested a review from a team as a code owner July 21, 2026 07:15
@danieljurek danieljurek self-assigned this Jul 21, 2026
@danieljurek
danieljurek merged commit c8815db into main Jul 21, 2026
6 checks passed
@danieljurek
danieljurek deleted the djurek/api-stub-view-twine branch July 21, 2026 07:16
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
65 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes internal Python tool release failures by ensuring pip install twine runs after the pipeline authenticates to the Azure DevOps Artifacts feed, so pip resolves packages through the internal index (no PyPI egress required).

Changes:

  • Move PipAuthenticate@1 to run before the Install Twine step in the internal ReleaseToFeed stage.
  • Keep TwineAuthenticate@0 immediately before twine upload, preserving existing upload auth behavior.

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