Skip to content

Commit

Permalink
fix: Use == to define had pinned requirement
Browse files Browse the repository at this point in the history
This allows one to add a dependency like `PyPika = '5.1.0'` directly
instead of `PyPika = '==5.1.0'`
  • Loading branch information
gavindsouza committed Jun 29, 2022
1 parent 45267fc commit beac865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beac865

Please sign in to comment.