Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- [#4136](https://github.com/plotly/dash/pull/4136) Drop Python 3.9 support: Dash now requires Python 3.10 or later, and is tested on 3.10 through 3.14.

### Fixed
- [#4148](https://github.com/plotly/dash/pull/4148) The wheel no longer installs the repository's `benchmarks` harness as a top-level `benchmarks` package (included since 4.5.0), which shadowed a `benchmarks` directory in projects that install dash.
- [#4136](https://github.com/plotly/dash/pull/4136) MCP tools with a generic type annotation such as `list[str]` no longer crash on Python 3.10.
- [#4114](https://github.com/plotly/dash/pull/4114) Fix the `get_dash_component` MCP tool failing when a component's value contains Dash components, Plotly figures, or numpy arrays. Fixes [#4113](https://github.com/plotly/dash/issues/4113).
- [#4105](https://github.com/plotly/dash/pull/4105) Only load `.js`/`.mjs` assets as scripts and `.css` assets as stylesheets, at startup and on hot reload. Hot reload now skips files excluded by `assets_ignore` or `assets_path_ignore`. Fixes [#1684](https://github.com/plotly/dash/issues/1684).
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def read_req_file(req_type):
version=main_ns["__version__"],
author="Chris Parmer",
author_email="chris@plotly.com",
packages=find_packages(exclude=["tests*"]),
packages=find_packages(include=["dash", "dash.*"]),
include_package_data=True,
license="MIT",
description=(
Expand Down
21 changes: 21 additions & 0 deletions tests/unit/test_packaging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import runpy
from pathlib import Path
from unittest import mock

import setuptools

ROOT = Path(__file__).resolve().parents[2]


def test_only_dash_is_packaged(monkeypatch):
# A stray top-level package in the wheel (for example the repo's benchmarks
# harness) shadows a directory of the same name in every project that
# installs dash.
monkeypatch.chdir(ROOT)
with mock.patch.object(setuptools, "setup") as setup:
runpy.run_path(str(ROOT / "setup.py"))

packages = setup.call_args.kwargs["packages"]
assert "dash" in packages
assert "dash.testing" in packages
assert [p for p in packages if p != "dash" and not p.startswith("dash.")] == []
Loading