mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +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:
parent
45267fc897
commit
beac865153
@ -109,7 +109,7 @@ def _generate_dev_deps_pattern(pyproject_path):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
for pkg, version in pyroject_config['tool']['bench']['dev-dependencies'].items():
|
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} "
|
requirements_pattern += f"{pkg}{op}{version} "
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user