From c20c3b9bab48f0908f3547765126c4d30d11ca5a Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Wed, 6 Mar 2024 23:38:59 +0200 Subject: pip anyone --- dev.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'dev.sh') diff --git a/dev.sh b/dev.sh index 29633c5..e5b0a37 100755 --- a/dev.sh +++ b/dev.sh @@ -15,15 +15,16 @@ covxml Sama mutta xml muoto (codecov tarvitsee tämän) covff Tee html haarakattavuusraportti ja avaa se firefoxissa all Sama kuin '$0 covff && $0 pylint' install Rakenna ja asenna paketti käyttäen pipx & poetry -uninstall Poistaa paketin (pipx uninstall...) " && exit 0 +[ x$PIP = x ] && PIP="pipx" + echo "\033[32m>>> $0 $1 - started.\033[0m" case $1 in install-poetry) - pipx install poetry + $PIP install poetry ;; poetry-dev-deps) @@ -67,14 +68,19 @@ case $1 in && $0 pylint ;; - install) - pipx install poetry \ - && poetry build \ - && pipx install `ls dist/*.tar.gz -t -c -1 | head -1` + poetry-build) + poetry build + ;; + + install-latest-build) + $PIP install `ls dist/*.tar.gz -t -c -1 | head -1` \ + && echo "For uninstall please use '$PIP uninstall ...'" ;; - uninstall) - pipx uninstall miinaharava + install) + $0 install-poetry \ + && $0 poetry-build \ + && $0 install-latest-build ;; *) -- cgit v1.2.3