From beac8651532db2ec8a55aa9d931b0cf3bde1ef25 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Wed, 29 Jun 2022 19:29:31 +0530 Subject: [PATCH] fix: Use == to define had pinned requirement This allows one to add a dependency like `PyPika = '5.1.0'` directly instead of `PyPika = '==5.1.0'` --- bench/utils/bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils/bench.py b/bench/utils/bench.py index 51d52ddb..72653dbc 100644 --- a/bench/utils/bench.py +++ b/bench/utils/bench.py @@ -109,7 +109,7 @@ def _generate_dev_deps_pattern(pyproject_path): try: for pkg, version in pyroject_config['tool']['bench']['dev-dependencies'].items(): - op = "=" if "=" not in version else "" + op = "==" if "=" not in version else "" requirements_pattern += f"{pkg}{op}{version} " except KeyError: pass