Skip to content

Move package config to pyproject.toml - #4159

Open
T4rk1n wants to merge 4 commits into
devfrom
chore/pyproject-toml
Open

T4rk1n wants to merge 4 commits into
devfrom
chore/pyproject-toml

Conversation

@T4rk1n

@T4rk1n T4rk1n commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Moves the root dash package config from setup.py and requirements/*.txt to a PEP 621 pyproject.toml (setuptools backend). setup.py and requirements/ are removed.

The built wheel has the same files and entry_points.txt as before. METADATA changes only in the license (now License-Expression: MIT, classifier dropped, needs setuptools>=77 in build-system) and in how author and homepage are written. Dependencies and all extras are unchanged.

Notes:

  • Package discovery is pinned to dash and dash.* with namespaces = false, so benchmarks/ and other folders without an __init__.py stay out of the wheel (Stop installing the benchmarks harness as a top-level package #4148).
  • CI's setuptools<80 / <78 pins are runtime installs and don't affect the build, which runs in pip's isolated build env.
  • Dependabot's pip job at / now reads pyproject.toml. Worth watching the first run in case it proposes bumping setuptools under build-system.
  • Existing editable installs should be redone with pip install -e ..

Contributor Checklist

  • This PR targets dev (fix or chore) or next (feature, new API, breaking change), see Which branch to target
  • I have broken down my PR scope into the following TODO tasks
    • pyproject.toml with all metadata, dependencies and extras from setup.py and requirements/
    • Update CI path filters and pip cache keys, the pylint npm script, dependabot comments and .ai/ docs
    • Port tests/unit/test_packaging.py and tests/unit/test_plotly_cli.py to read pyproject.toml
  • 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

Comment thread pyproject.toml Outdated
Comment on lines +10 to +11
license = "MIT"
license-files = ["LICENSE"]

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.

I think we're only supposed to use one of these.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dropped license-files in e323537. setuptools picks up LICENSE by default, so the wheel still ships it under licenses/ and the metadata still has License-Expression: MIT.

@sonarqubecloud

Copy link
Copy Markdown

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