a
This commit is contained in:
parent
cb2bbccfe1
commit
87ce3aa276
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class PipenvOperation(object):
|
||||||
if package.startswith(pip_package.lower()):
|
if package.startswith(pip_package.lower()):
|
||||||
pkg, pkg_ver = package.split("==")
|
pkg, pkg_ver = package.split("==")
|
||||||
substr = f'{pip_package} = "*"'
|
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:
|
with open(os.path.join(path, "Pipfile"), "w") as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|
Loading…
Reference in a new issue