Skip to content

{Packaging} Drop the vestigial setuptools runtime dependency - #34010

Open
aryasadeghi1 wants to merge 2 commits into
Azure:devfrom
aryasadeghi1:drop-vestigial-setuptools-dep
Open

{Packaging} Drop the vestigial setuptools runtime dependency#34010
aryasadeghi1 wants to merge 2 commits into
Azure:devfrom
aryasadeghi1:drop-vestigial-setuptools-dep

Conversation

@aryasadeghi1

@aryasadeghi1 aryasadeghi1 commented Aug 30, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

azure-cli declared setuptools in install_requires, but nothing in the shipped code imports it or pkg_resources. It is also absent from all three requirements.py3.*.txt closures, so the deb, homebrew and standalone artifacts never installed it - only pip install azure-cli did.

This is what holds the setuptools<81 cap: setuptools 82 removes pkg_resources. The caps are left in place here and will be audited individually, since not all of them are about azure-cli, scripts/release/homebrew/docker/requirements.txt must keep its pin because homebrew-pypi-poet uses pkg_resources

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

azure-cli declared `setuptools` in install_requires, but nothing in the shipped
code imports it or pkg_resources. It is also absent from all three
requirements.py3.*.txt closures, so the deb, homebrew and standalone artifacts
never installed it - only `pip install azure-cli` did.

Verified by reproducing the shipped install (local packages --no-deps, then the
pinned closure), removing setuptools entirely, and running the CLI:

    setuptools: ABSENT   pkg_resources: ABSENT
    az --version -> 2.90.0
    az self-test -> Commands loaded OK. Help loaded OK. OK

This is what holds the setuptools<81 cap: setuptools 82 removes pkg_resources.
The caps are left in place here and will be audited individually, since not all
of them are about azure-cli - scripts/release/homebrew/docker/requirements.txt
must keep its pin because homebrew-pypi-poet uses pkg_resources.

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

Removes the setuptools runtime dependency from the azure-cli package’s install_requires, aligning the PyPI install behavior with other distribution artifacts and reducing exposure to pkg_resources removals in newer setuptools versions.

Changes:

  • Dropped setuptools from src/azure-cli/setup.py DEPENDENCIES (runtime requirements for pip install azure-cli).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aryasadeghi1 aryasadeghi1 changed the title {Packaging} Drop the setuptools runtime dependency [Packaging] Drop the setuptools runtime dependency Aug 30, 2026
@yonzhan

Copy link
Copy Markdown
Collaborator

Packaging

@aryasadeghi1 aryasadeghi1 changed the title [Packaging] Drop the setuptools runtime dependency {Packaging} Drop the vestigial setuptools runtime dependency Aug 30, 2026
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.

3 participants