From 6399c1b4ed25379a51009efced6398b8363a9bf1 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:51:54 +0100 Subject: [PATCH] pkg: prune all semi-private extras (#2307) (cherry picked from commit c86ae7b9264684a10635834614424c1701dc0f78) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 968c32d65c3..6f2e6f06455 100755 --- a/setup.py +++ b/setup.py @@ -190,7 +190,7 @@ def _prepare_extras(skip_pattern: str = "^_", skip_files: Tuple[str] = ("base.tx # create an 'all' keyword that install all possible dependencies extras_req["all"] = list(chain([pkgs for k, pkgs in extras_req.items() if k not in ("_test", "_tests")])) extras_req["dev"] = extras_req["all"] + extras_req["_tests"] - return extras_req + return {k: v for k, v in extras_req.items() if not k.startswith("_")} # https://packaging.python.org/discussions/install-requires-vs-requirements /