Skip to content

Dependency Cleanup - #4035

Open
brandonschabell wants to merge 1 commit into
plotly:devfrom
brandonschabell:dependency_cleanup
Open

brandonschabell wants to merge 1 commit into
plotly:devfrom
brandonschabell:dependency_cleanup

Conversation

@brandonschabell

Copy link
Copy Markdown
Contributor

Removes setuptools and importlib-metadata from the install dependencies. Also removes benchmarks from being included in the package.

Contributor Checklist

  • I have broken down my PR scope into the following TODO tasks
    • task 1
    • task 2
  • I have run the tests locally and they passed. (refer to testing section in contributing)
  • I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR

optionals

  • I have added entry in the CHANGELOG.md
  • If this PR needs a follow-up in dash docs, community thread, I have mentioned the relevant URLS as follows
    • this GitHub #PR number updates the dash docs
    • here is the show and tell thread in Plotly Dash community

Copilot AI balanced review requested due to automatic review settings October 2, 2026 21:57
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

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.

Copilot review overview

🟡 Changes recommended

The package-content behavior needs a regression test verifying benchmarks are excluded.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Removes unnecessary runtime dependencies and excludes repository-only benchmarks from distributions.

Changes:

  • Uses standard-library importlib.metadata.
  • Removes setuptools and importlib-metadata runtime dependencies.
  • Limits package discovery to dash packages.
File Description
setup.py Restricts packaged modules to dash*.
requirements/​install.txt Removes redundant dependencies.
dash/​backends/​_quart.py Uses standard-library package metadata.
dash/​backends/​_flask.py Uses standard-library package metadata.
CHANGELOG.md Documents dependency removal.

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

Comment thread setup.py
author="Chris Parmer",
author_email="chris@plotly.com",
packages=find_packages(exclude=["tests*"]),
packages=find_packages(include=["dash*"]),
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