29
29
from pipenv .utils import console , err
30
30
from pipenv .utils .fileutils import create_tracked_tempdir
31
31
from pipenv .utils .requirements import normalize_name
32
- from pipenv .vendor import click
33
32
34
33
from .dependencies import (
35
34
HackedPythonVersion ,
@@ -864,8 +863,8 @@ def venv_resolve_deps(
864
863
with open (target_file .name ) as fh :
865
864
results = json .load (fh )
866
865
except (IndexError , json .JSONDecodeError ):
867
- click . echo (c .stdout .strip (), err = True )
868
- click . echo (c .stderr .strip (), err = True )
866
+ err . print (c .stdout .strip ())
867
+ err . print (c .stderr .strip ())
869
868
if os .path .exists (target_file .name ):
870
869
os .unlink (target_file .name )
871
870
raise RuntimeError ("There was a problem with locking." )
@@ -875,13 +874,15 @@ def venv_resolve_deps(
875
874
environments .PIPENV_SPINNER_OK_TEXT .format ("Success!" )
876
875
)
877
876
if not project .s .is_verbose () and c .stderr .strip ():
878
- click .echo (click .style (f"Warning: { c .stderr .strip ()} " ), err = True )
877
+ err .print (
878
+ f"Warning: { c .stderr .strip ()} " , overflow = "ignore" , crop = False
879
+ )
879
880
else :
880
881
st .console .print (
881
882
environments .PIPENV_SPINNER_FAIL_TEXT .format ("Locking Failed!" )
882
883
)
883
- click . echo (f"Output: { c .stdout .strip ()} " , err = True )
884
- click . echo (f"Error: { c .stderr .strip ()} " , err = True )
884
+ err . print (f"Output: { c .stdout .strip ()} " )
885
+ err . print (f"Error: { c .stderr .strip ()} " )
885
886
if lockfile_section not in lockfile :
886
887
lockfile [lockfile_section ] = {}
887
888
return prepare_lockfile (
0 commit comments