From 4e6acac2f05a5a74d8be1030e82b09d1cb8439ec Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 28 May 2023 22:31:26 -0500 Subject: [PATCH] fix: remove nonsense path arg --- src/viv/viv.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 5d8db62..b5626fe 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -52,7 +52,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.5a2-4-gfba2231-dev" +__version__ = "23.5a2-4-gc960808-dev" class Config: @@ -1247,10 +1247,13 @@ class Viv: viv r pycowsay -- "Viv isn't venv\!" viv r rich -b python -- -m rich """ + if not args.reqs: + error("please specify at lease one dependency", code=1) default_bin = re.split(r"[=><~!*]+", args.reqs[0])[0] bin = default_bin if not args.bin else args.bin - vivenv = ViVenv(args.reqs) + spec = combined_spec(args.reqs, args.requirements) + vivenv = ViVenv(spec) if vivenv.name not in [d.name for d in c.venvcache.iterdir()] or os.getenv( "VIV_FORCE" @@ -1464,13 +1467,6 @@ class Viv: p_run = self._get_subcmd_parser(subparsers, "run") - p_run.add_argument( - "-p", - "--path", - help="generate line to add viv to sys.path", - choices=["abs", "rel"], - ) - p_run.add_argument( "-r", "--requirements",