This commit is contained in:
ahmadbilalkhalid 2019-08-30 19:02:45 +05:00
parent cb2bbccfe1
commit 87ce3aa276

View file

@ -126,7 +126,7 @@ class PipenvOperation(object):
if package.startswith(pip_package.lower()):
pkg, pkg_ver = package.split("==")
substr = f'{pip_package} = "*"'
content = content.replace(substr, f'{pkg} == "{pkg_ver}"')
content = content.replace(substr, f'{pkg} = "=={pkg_ver}"')
with open(os.path.join(path, "Pipfile"), "w") as f:
f.write(content)