From bf1d6afd92982f53d76fd05e61d4c4d07aa65e7a Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:59:13 +0300 Subject: [PATCH] fix(action): use PEP 440 syntax to install Darker --- action/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action/main.py b/action/main.py index c59cd8055..ec886d758 100644 --- a/action/main.py +++ b/action/main.py @@ -66,9 +66,7 @@ def pip_install(*packages): req = ["darker[color,isort]"] if VERSION: if VERSION.startswith("@"): - req[0] = ( - f"git+https://github.com/akaihola/darker{VERSION}[color,isort]#egg=darker" - ) + req[0] += f"@git+https://github.com/akaihola/darker{VERSION}" elif VERSION.startswith(("~", "=", "<", ">")): req[0] += VERSION else: