diff --git a/.ai/ARCHITECTURE.md b/.ai/ARCHITECTURE.md index 5cae8f69bc..39768ede94 100644 --- a/.ai/ARCHITECTURE.md +++ b/.ai/ARCHITECTURE.md @@ -1080,7 +1080,7 @@ Dash core. It plugs in the same way as a built-in: | `dash.py` | `shared_storage` constructor arg + lazy `app.shared_storage` property | | `_callback_context.py` | `dash.ctx.shared_storage` accessor | -Requires `msgspec` (in `requirements/install.txt`); `DiskcacheSharedStorage` +Requires `msgspec` (the `shared_storage` extra); `DiskcacheSharedStorage` needs the `diskcache` extra and `RedisSharedStorage` the `redis` extra. ## Async Callbacks diff --git a/.ai/README.md b/.ai/README.md index 7d94909213..81221662b2 100644 --- a/.ai/README.md +++ b/.ai/README.md @@ -36,7 +36,7 @@ dash/ │ ├── integration/ # Selenium browser tests │ ├── compliance/ # Type checking (pyright/mypy) │ └── background_callback/ # Background callback tests -└── requirements/ # Modular dependency files +└── pyproject.toml # Package metadata and dependencies ``` ## Code Review Conventions diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1d1dd9744d..4bda24ae7f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -252,9 +252,9 @@ updates: day: "monday" cooldown: default-days: 14 - # Keep lower bounds (e.g. Flask>=1.0.4 in install.txt) low: only raise a + # Keep lower bounds (e.g. Flask>=1.0.4 in pyproject.toml) low: only raise a # floor when the latest release is incompatible with the current range. - # Exact (==) pins in ci/dev/testing still update as normal. + # Exact (==) pins in the ci/dev/testing extras still update as normal. versioning-strategy: increase-if-necessary groups: pip-dependencies: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 44655d0509..1558152d22 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -30,14 +30,14 @@ jobs: id: filter # Give an ID to this step to reference its outputs uses: dorny/paths-filter@v3 with: - # Every job installs from requirements/ and setup.py and runs under + # Every job installs from pyproject.toml and runs under # the shared lint and pytest config, so a change there must run every # job. A dependency bump once skipped the table and dcc jobs and only # failed after merging to dev. filters: | shared_paths: &shared_paths - - 'requirements/**' - - 'setup.py' + - 'pyproject.toml' + - 'MANIFEST.in' - 'pytest.ini' - '.flake8' - '.pylintrc' @@ -118,7 +118,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -243,7 +243,7 @@ jobs: with: python-version: '3.12' cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -309,7 +309,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -389,7 +389,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -495,7 +495,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -557,7 +557,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -617,7 +617,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -681,7 +681,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -743,7 +743,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -819,7 +819,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -921,7 +921,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -1059,7 +1059,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -1129,7 +1129,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 @@ -1209,7 +1209,7 @@ jobs: with: python-version: '3.12' cache: 'pip' - cache-dependency-path: requirements/*.txt + cache-dependency-path: pyproject.toml - name: Download built Dash packages uses: actions/download-artifact@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index ef3c33f9cf..dcc572620a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Removed - [#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. +### Changed +- [#4159](https://github.com/plotly/dash/pull/4159) Package metadata and dependencies move from `setup.py` and `requirements/*.txt` to `pyproject.toml`. The installed package and its extras are unchanged. + ### Fixed - [#4162](https://github.com/plotly/dash/pull/4162) Fix the FastAPI websocket handler logging an `Exception in ASGI application` traceback when the client disconnects while messages are being sent. Fixes [#4157](https://github.com/plotly/dash/issues/4157). - [#4160](https://github.com/plotly/dash/pull/4160) Fix R package generation crashing when the R package settings have no `pkg_help_title` or `pkg_help_description`; it now falls back to the `package.json` description. diff --git a/MANIFEST.in b/MANIFEST.in index 457204bf7d..63c4ad089f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,5 @@ include README.md include LICENSE -include requirements/*.txt include dash/favicon.ico include dash/extract-meta.js include dash/deps/*.js diff --git a/package.json b/package.json index 7517543398..0bf9fdf5cf 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "private::build.jupyterlab": "cd @plotly/dash-jupyterlab && jlpm install && jlpm build:pack", "private::lint.black": "black dash tests --exclude 'metadata_test.py|node_modules' --check", "private::lint.flake8": "flake8 dash tests", - "private::lint.pylint-dash": "pylint dash setup.py --rcfile=.pylintrc", + "private::lint.pylint-dash": "pylint dash --rcfile=.pylintrc", "private::lint.pylint-tests": "pylint tests/unit tests/integration -d all -e C0410,C0413,W0109 --rcfile=.pylintrc", "private::lint.renderer": "cd dash/dash-renderer && npm run lint", "private::test.setup-components": "cd @plotly/dash-test-components && npm ci && npm run build", diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..3996d677c7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,160 @@ +[build-system] +requires = ["setuptools>=77"] +build-backend = "setuptools.build_meta" + +[project] +name = "dash" +dynamic = ["version"] +description = "A Python framework for building reactive web-apps. Developed by Plotly." +readme = "README.md" +license = "MIT" +authors = [{ name = "Chris Parmer", email = "chris@plotly.com" }] +requires-python = ">=3.10" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Dash", + "Framework :: Flask", + "Intended Audience :: Developers", + "Intended Audience :: Education", + "Intended Audience :: Financial and Insurance Industry", + "Intended Audience :: Healthcare Industry", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Topic :: Database :: Front-Ends", + "Topic :: Office/Business :: Financial :: Spreadsheet", + "Topic :: Scientific/Engineering :: Visualization", + "Topic :: Software Development :: Libraries :: Application Frameworks", + "Topic :: Software Development :: Widget Sets", +] +dependencies = [ + "Flask>=1.0.4,<3.2", + "Werkzeug<3.2", + "plotly>=5.0.0", + "importlib-metadata", + "typing_extensions>=4.1.1", + "requests", + "retrying", + "nest-asyncio", + "setuptools", + "janus>=1.0.0", + "pydantic>=2.10", + "comm", +] + +[project.optional-dependencies] +async = ["flask[async]"] +# Dependencies used by CI on github.com/plotly/dash +ci = [ + "black==22.3.0", + "flake8==7.3.0", + "flaky==3.8.1", + "flask-talisman==1.1.0", + "httpx", # fastapi.testclient (tests/websocket/test_ws_stream.py) + "ipython<9.0.0", + "mimesis<=22.2.0", + "mock==5.2.0", + "msgspec", # dash[shared_storage] + "numpy<=2.5.4", + "orjson>=3.10.11", + "openpyxl", + "pandas>=1.4.0", + "pyarrow", + "pylint==4.0.9", + "pytest-mock", + "pytest-split", + "pytest-sugar==1.1.1", + "pyzmq>=26.0.0", + "xlrd>=2.0.1", + "pytest-rerunfailures", + "pytest-timeout", + "jupyterlab<4.0.0", + "pyright==1.1.414", + "mypy==1.15.0", +] +# Dependencies used for developing new Dash components +dev = [ + "coloredlogs>=15.0.1", + "fire>=0.4.0", + "PyYAML>=5.4.1", +] +# Dependencies necessary for utilizing Dash provided testing utilities +testing = [ + "beautifulsoup4>=4.8.2", + "cryptography", + "lxml>=4.6.2", + "percy-python-selenium>=1.0.0", + "pytest>=6.0.2", + "requests[security]>=2.21.0", + "selenium>=4.11.0,<=4.52.0", + "waitress>=1.4.4", + "multiprocess>=0.70.12", + "psutil>=5.8.0", + "dash_testing_stub>=0.0.2", +] +# Used by the CeleryLongCallbackManager +celery = [ + "redis>=3.5.3,<=8.1.0", + "kombu<5.7.0", + "celery[redis]>=5.1.2,<5.7.0", +] +# Used by the DiskcacheLongCallbackManager +diskcache = [ + "diskcache>=5.2.1", + "multiprocess>=0.70.12", + "psutil>=5.8.0", + "msgspec", # DiskcacheSharedStorage +] +# Used by RedisSharedStorage. Keep the redis pin in sync with celery; in +# Dash 5.0 redis will be removed from the celery extra and live here only. +redis = [ + "redis>=3.5.3,<=8.1.0", + "msgspec", +] +compress = ["flask-compress"] +fastapi = [ + "fastapi", + "uvicorn[standard]", +] +quart = ["quart"] +cloud = ["plotly-cloud"] +ag-grid = ["dash-ag-grid"] +shared_storage = ["msgspec"] + +[project.urls] +Homepage = "https://plotly.com/dash" +Documentation = "https://dash.plotly.com" +Source = "https://github.com/plotly/dash" +"Issue Tracker" = "https://github.com/plotly/dash/issues" + +[project.scripts] +dash-generate-components = "dash.development.component_generator:cli" +renderer = "dash.development.build_process:renderer" +dash-update-components = "dash.development.update_components:cli" +plotly = "dash._plotly_cli:cli" + +[project.entry-points.pytest11] +dash = "dash.testing.plugin" + +[tool.setuptools.dynamic] +version = { attr = "dash.version.__version__" } + +# Only dash: a stray top-level package (for example the benchmarks harness) +# would shadow a directory of the same name in every project that installs dash. +[tool.setuptools.packages.find] +include = ["dash", "dash.*"] +namespaces = false + +# Like `jupyter nbextension install/enable --sys-prefix` and the jupyterlab +# extension directory. +[tool.setuptools.data-files] +"share/jupyter/nbextensions/dash" = ["dash/nbextension/main.js"] +"etc/jupyter/nbconfig/notebook.d" = ["dash/nbextension/dash.json"] +"share/jupyter/lab/extensions" = ["dash/labextension/dist/dash-jupyterlab.tgz"] diff --git a/requirements/ag-grid.txt b/requirements/ag-grid.txt deleted file mode 100644 index a7c660ae8c..0000000000 --- a/requirements/ag-grid.txt +++ /dev/null @@ -1 +0,0 @@ -dash-ag-grid diff --git a/requirements/async.txt b/requirements/async.txt deleted file mode 100644 index fafa8e7e6e..0000000000 --- a/requirements/async.txt +++ /dev/null @@ -1 +0,0 @@ -flask[async] diff --git a/requirements/celery.txt b/requirements/celery.txt deleted file mode 100644 index 5c0980067d..0000000000 --- a/requirements/celery.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Dependencies used by the CeleryLongCallbackManager -redis>=3.5.3,<=8.1.0 -kombu<5.7.0 -celery[redis]>=5.1.2,<5.7.0 diff --git a/requirements/ci.txt b/requirements/ci.txt deleted file mode 100644 index 53adedaa8f..0000000000 --- a/requirements/ci.txt +++ /dev/null @@ -1,26 +0,0 @@ -# Dependencies used by CI on github.com/plotly/dash -black==22.3.0 -flake8==7.3.0 -flaky==3.8.1 -flask-talisman==1.1.0 -httpx # fastapi.testclient (tests/websocket/test_ws_stream.py) -ipython<9.0.0 -mimesis<=22.2.0 -mock==5.2.0 -msgspec # dash[shared_storage] -numpy<=2.5.4 -orjson>=3.10.11 -openpyxl -pandas>=1.4.0 -pyarrow -pylint==4.0.9 -pytest-mock -pytest-split -pytest-sugar==1.1.1 -pyzmq>=26.0.0 -xlrd>=2.0.1 -pytest-rerunfailures -pytest-timeout -jupyterlab<4.0.0 -pyright==1.1.414 -mypy==1.15.0 diff --git a/requirements/cloud.txt b/requirements/cloud.txt deleted file mode 100644 index a8bbb9fdfb..0000000000 --- a/requirements/cloud.txt +++ /dev/null @@ -1 +0,0 @@ -plotly-cloud diff --git a/requirements/compress.txt b/requirements/compress.txt deleted file mode 100644 index 232c8aa065..0000000000 --- a/requirements/compress.txt +++ /dev/null @@ -1 +0,0 @@ -flask-compress diff --git a/requirements/dev.txt b/requirements/dev.txt deleted file mode 100644 index 22a770dca3..0000000000 --- a/requirements/dev.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Dependencies used for development new Dash components -coloredlogs>=15.0.1 -fire>=0.4.0 -PyYAML>=5.4.1 diff --git a/requirements/diskcache.txt b/requirements/diskcache.txt deleted file mode 100644 index 47526ef01b..0000000000 --- a/requirements/diskcache.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Dependencies used by the DiskcacheLongCallbackManager -diskcache>=5.2.1 -multiprocess>=0.70.12 -psutil>=5.8.0 -msgspec # DiskcacheSharedStorage diff --git a/requirements/fastapi.txt b/requirements/fastapi.txt deleted file mode 100644 index 364e2ee48e..0000000000 --- a/requirements/fastapi.txt +++ /dev/null @@ -1,2 +0,0 @@ -fastapi -uvicorn[standard] diff --git a/requirements/install.txt b/requirements/install.txt deleted file mode 100644 index 176d9c8f5e..0000000000 --- a/requirements/install.txt +++ /dev/null @@ -1,12 +0,0 @@ -Flask>=1.0.4,<3.2 -Werkzeug<3.2 -plotly>=5.0.0 -importlib-metadata -typing_extensions>=4.1.1 -requests -retrying -nest-asyncio -setuptools -janus>=1.0.0 -pydantic>=2.10 -comm diff --git a/requirements/quart.txt b/requirements/quart.txt deleted file mode 100644 index 60af440c9c..0000000000 --- a/requirements/quart.txt +++ /dev/null @@ -1 +0,0 @@ -quart diff --git a/requirements/redis.txt b/requirements/redis.txt deleted file mode 100644 index 01c0b4f7ba..0000000000 --- a/requirements/redis.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Dependencies used by RedisSharedStorage. -# Kept in sync with the redis pin in celery.txt; in Dash 5.0 redis will be -# removed from the celery extra and live here only. -redis>=3.5.3,<=8.1.0 -msgspec diff --git a/requirements/shared_storage.txt b/requirements/shared_storage.txt deleted file mode 100644 index bdc9e5a1e2..0000000000 --- a/requirements/shared_storage.txt +++ /dev/null @@ -1 +0,0 @@ -msgspec diff --git a/requirements/testing.txt b/requirements/testing.txt deleted file mode 100644 index fcc36fa793..0000000000 --- a/requirements/testing.txt +++ /dev/null @@ -1,12 +0,0 @@ -# Dependencies necessary for utilizing Dash provided testing utilities -beautifulsoup4>=4.8.2 -cryptography -lxml>=4.6.2 -percy-python-selenium>=1.0.0 -pytest>=6.0.2 -requests[security]>=2.21.0 -selenium>=4.11.0,<=4.52.0 -waitress>=1.4.4 -multiprocess>=0.70.12 -psutil>=5.8.0 -dash_testing_stub>=0.0.2 diff --git a/setup.py b/setup.py deleted file mode 100644 index 2716cc0eb7..0000000000 --- a/setup.py +++ /dev/null @@ -1,101 +0,0 @@ -import io -import os -from setuptools import setup, find_packages - -main_ns = {} -exec(open("dash/version.py", encoding="utf-8").read(), main_ns) # pylint: disable=exec-used, consider-using-with - - -def read_req_file(req_type): - with open(os.path.join("requirements", f"{req_type}.txt"), encoding="utf-8") as fp: - requires = (line.strip() for line in fp) - return [req for req in requires if req and not req.startswith("#")] - - -setup( - name="dash", - version=main_ns["__version__"], - author="Chris Parmer", - author_email="chris@plotly.com", - packages=find_packages(include=["dash", "dash.*"]), - include_package_data=True, - license="MIT", - description=( - "A Python framework for building reactive web-apps. " - "Developed by Plotly." - ), - long_description=io.open("README.md", encoding="utf-8").read(), # pylint: disable=consider-using-with - long_description_content_type="text/markdown", - install_requires=read_req_file("install"), - python_requires=">=3.10", - extras_require={ - "async": read_req_file("async"), - "ci": read_req_file("ci"), - "dev": read_req_file("dev"), - "testing": read_req_file("testing"), - "celery": read_req_file("celery"), - "diskcache": read_req_file("diskcache"), - "redis": read_req_file("redis"), - "compress": read_req_file("compress"), - "fastapi": read_req_file("fastapi"), - "quart": read_req_file("quart"), - "cloud": read_req_file("cloud"), - "ag-grid": read_req_file("ag-grid"), - "shared_storage": read_req_file("shared_storage") - }, - entry_points={ - "console_scripts": [ - "dash-generate-components = " - "dash.development.component_generator:cli", - "renderer = dash.development.build_process:renderer", - "dash-update-components = dash.development.update_components:cli", - "plotly = dash._plotly_cli:cli" - ], - "pytest11": ["dash = dash.testing.plugin"], - }, - url="https://plotly.com/dash", - project_urls={ - "Documentation": "https://dash.plotly.com", - "Source": "https://github.com/plotly/dash", - "Issue Tracker": "https://github.com/plotly/dash/issues", - }, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Framework :: Dash", - "Framework :: Flask", - "Intended Audience :: Developers", - "Intended Audience :: Education", - "Intended Audience :: Financial and Insurance Industry", - "Intended Audience :: Healthcare Industry", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Topic :: Database :: Front-Ends", - "Topic :: Office/Business :: Financial :: Spreadsheet", - "Topic :: Scientific/Engineering :: Visualization", - "Topic :: Software Development :: Libraries :: Application Frameworks", - "Topic :: Software Development :: Widget Sets", - ], - data_files=[ - # like `jupyter nbextension install --sys-prefix` - ("share/jupyter/nbextensions/dash", [ - "dash/nbextension/main.js", - ]), - # like `jupyter nbextension enable --sys-prefix` - ("etc/jupyter/nbconfig/notebook.d", [ - "dash/nbextension/dash.json" - ]), - # Place jupyterlab extension in extension directory - ("share/jupyter/lab/extensions", [ - "dash/labextension/dist/dash-jupyterlab.tgz" - ]), - ], -) diff --git a/tests/unit/test_packaging.py b/tests/unit/test_packaging.py index c7a0206aee..49c1f3e3ae 100644 --- a/tests/unit/test_packaging.py +++ b/tests/unit/test_packaging.py @@ -1,8 +1,7 @@ -import runpy from pathlib import Path -from unittest import mock -import setuptools +from setuptools.config.pyprojecttoml import apply_configuration +from setuptools.dist import Distribution ROOT = Path(__file__).resolve().parents[2] @@ -12,10 +11,9 @@ def test_only_dash_is_packaged(monkeypatch): # 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")) + dist = apply_configuration(Distribution(), ROOT / "pyproject.toml") - packages = setup.call_args.kwargs["packages"] + packages = dist.packages assert "dash" in packages assert "dash.testing" in packages assert [p for p in packages if p != "dash" and not p.startswith("dash.")] == [] diff --git a/tests/unit/test_plotly_cli.py b/tests/unit/test_plotly_cli.py index 9cbe34021e..df51ef6141 100644 --- a/tests/unit/test_plotly_cli.py +++ b/tests/unit/test_plotly_cli.py @@ -2,6 +2,7 @@ from pathlib import Path import pytest +from setuptools.config.pyprojecttoml import read_configuration from dash._plotly_cli import cli @@ -19,6 +20,6 @@ def test_plotly_cli_hints_cloud_extra_when_missing(monkeypatch, capsys): def test_plotly_cloud_is_not_an_install_requirement(): - install = Path(__file__).parents[2] / "requirements" / "install.txt" - required = install.read_text(encoding="utf-8").lower().split() - assert "plotly-cloud" not in required + pyproject = Path(__file__).parents[2] / "pyproject.toml" + dependencies = read_configuration(pyproject)["project"]["dependencies"] + assert not [d for d in dependencies if d.lower().startswith("plotly-cloud")]