diff --git a/changelog.d/920.md b/changelog.d/920.md new file mode 100644 index 000000000..56bd0c27c --- /dev/null +++ b/changelog.d/920.md @@ -0,0 +1 @@ +- Drop dev dependencies that are already brought in transitively by `policyengine-core` as runtime deps (`pytest`, `wheel`), shrinking the install footprint. `coverage`, `pytest-cov`, `ruff` and `towncrier` are kept because they live in `policyengine-core`'s `dev` extras and pip does not install extras of dependencies transitively. diff --git a/pyproject.toml b/pyproject.toml index 6a803a775..6c09fa2b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,17 +67,20 @@ environments = [ [project.optional-dependencies] dev = [ - "ruff>=0.9.0", + # pytest and wheel are brought in transitively by policyengine-core's + # runtime dependencies, so they're not repeated here. coverage, + # pytest-cov, ruff and towncrier live in core's dev extras, which pip + # does NOT install transitively when installing policyengine-uk[dev], + # so they must be listed explicitly here. "coverage", + "pytest-cov", + "ruff>=0.9.0", + "towncrier>=24.8.0", "furo<2023", "tqdm", - "pytest", - "pytest-cov", "setuptools", "sphinx-argparse>=0.3.2,<1", "sphinx-math-dollar>=1.2.1,<2", - "wheel", - "towncrier>=24.8.0", "snowballstemmer>=2,<3", "jupyter-book>=2.0.0a0", "rich",