diff --git a/examples/black b/examples/black index 82c4600..592e489 100755 --- a/examples/black +++ b/examples/black @@ -1,5 +1,5 @@ #!/usr/bin/env python -# AUTOGENERATED by viv (v23.5a5-1-g853e6e6-dev) +# AUTOGENERATED by viv (v23.5a5-2-ge70afb3-dev) # see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help` @@ -22,8 +22,7 @@ def _viv_use(*pkgs, track_exe=False, name=""): _id = sha256.hexdigest() if (env := cache / (name if name else _id)) not in cache.glob("*/") or force: sys.stderr.write(f"generating new vivenv -> {env.name}\n") - venv.create(env, symlinks=True, with_pip=True, clear=True) - (env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true") + venv.create(env, symlinks=True, with_pip=True, clear=True, upgrade_deps=True) run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2)))) p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw) if (rc := p.returncode) != 0: diff --git a/src/viv/viv.py b/src/viv/viv.py index e77a550..08ac7cb 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -50,7 +50,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.5a5-2-ge70afb3-dev" +__version__ = "23.5a5-3-g2bc2476-dev" class Spinner: @@ -221,8 +221,7 @@ to create/activate a vivenv: _id = sha256.hexdigest() if (env := cache / (name if name else _id)) not in cache.glob("*/") or force: sys.stderr.write(f"generating new vivenv -> {env.name}\n") - venv.create(env, symlinks=True, with_pip=True, clear=True) - (env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true") + venv.create(env, symlinks=True, with_pip=True, clear=True, upgrade_deps=True) run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2)))) p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw) if (rc := p.returncode) != 0: @@ -697,11 +696,8 @@ class ViVenv: if not quiet: echo(f"new unique vivenv -> {self.name}") with Spinner("creating vivenv"): - venv.create(self.path, with_pip=True, clear=True, symlinks=True) - - # add config to ignore pip version - (self.path / "pip.conf").write_text( - "[global]\ndisable-pip-version-check = true" + venv.create( + self.path, with_pip=True, clear=True, symlinks=True, upgrade_deps=True ) self.meta.created = str(datetime.today())