mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
6294c57070
Signed-off-by: Dan Ryan <dan@danryan.co> More debugging info Signed-off-by: Dan Ryan <dan@danryan.co> Fix stdout write bugs Signed-off-by: Dan Ryan <dan@danryan.co> Fix spinner invocations Signed-off-by: Dan Ryan <dan@danryan.co> Create missing directory Signed-off-by: Dan Ryan <dan@danryan.co> Filesystem encode envvars Signed-off-by: Dan Ryan <dan@danryan.co> convert envvars to strings Signed-off-by: Dan Ryan <dan@danryan.co> Update encodings Signed-off-by: Dan Ryan <dan@danryan.co> Update vistir to init colorama Signed-off-by: Dan Ryan <dan@danryan.co> Update vistir version number Signed-off-by: Dan Ryan <dan@danryan.co> add some debugging and vsts changes Signed-off-by: Dan Ryan <dan@danryan.co> fix delegator mod Signed-off-by: Dan Ryan <dan@danryan.co> Log to stderr so we can see it Signed-off-by: Dan Ryan <dan@danryan.co> Log to stderr so we can see it Signed-off-by: Dan Ryan <dan@danryan.co> Try importing colorama... Signed-off-by: Dan Ryan <dan@danryan.co> change variable setting syntax Signed-off-by: Dan Ryan <dan@danryan.co>
33 lines
915 B
Python
33 lines
915 B
Python
# -*- coding=utf-8 -*-
|
|
|
|
import os
|
|
import sys
|
|
|
|
|
|
def _patch_path():
|
|
import site
|
|
pipenv_libdir = os.path.dirname(os.path.abspath(__file__))
|
|
pipenv_site_dir = os.path.dirname(pipenv_libdir)
|
|
site.addsitedir(pipenv_site_dir)
|
|
for _dir in ("vendor", "patched"):
|
|
sys.path.insert(0, os.path.join(pipenv_libdir, _dir))
|
|
|
|
|
|
def test_install():
|
|
from pipenv.vendor.vistir.contextmanagers import cd
|
|
from pipenv.vendor.click.testing import CliRunner
|
|
runner = CliRunner()
|
|
with cd("/tmp/test"):
|
|
from pipenv.core import do_lock
|
|
locked = do_lock(system=False, clear=False, pre=False, keep_outdated=False,
|
|
write=True, pypi_mirror=None)
|
|
# result = runner.invoke(cli, ["lock", "--verbose"])
|
|
# print(result.output)
|
|
# print(result.exit_code)
|
|
print(locked)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
_patch_path()
|
|
test_install()
|