dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
git clone https://kaka.farm/~git/dotfiles
Log | Files | Refs

upgrade-pip-packages (561B)


      1 #!/bin/bash
      2 
      3 userpip="$HOME/.local/bin/pip"
      4 
      5 pip3 install -U --user pip
      6 pip install -U --user pip
      7 "$userpip" install -U --user pipsi
      8 "$userpip" install -U --user pip-tools
      9 
     10 #pip-compile --generate-hashes -v -U --annotate "$HOME/requirements.in"
     11 pip-compile -v "$HOME/requirements.in"
     12 "$userpip" install --user --upgrade -r "$HOME/requirements.txt"
     13 
     14 while read -r a_line
     15 do
     16     declare -A row="$a_line"
     17     pipsi install --python "${row[python]}" "${row[package]}" || pipsi install "${row[package]}"
     18     pipsi upgrade "${row[package]}"
     19 done < "$HOME/pipsi-list"