2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-27 22:39:03 +00:00

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'`
This commit is contained in:
Gavin D'souza 2022-06-29 19:29:31 +05:30
parent 45267fc897
commit beac865153

View File

@ -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