Skip to content

Instantly share code, notes, and snippets.

@endophage
Created May 30, 2016 03:09
Show Gist options
  • Save endophage/83dfb6abe705515e79e31bcefabfef96 to your computer and use it in GitHub Desktop.
Save endophage/83dfb6abe705515e79e31bcefabfef96 to your computer and use it in GitHub Desktop.
#! /bin/bash
SERVER=https://pytuf.heliocide.org
GUN=pypi.io
target=echo $2 | sed "s/==/-/"
hash=notary -s $SERVER lookup $GUN $target | awk '{print $2}'
echo "$2 --hash=$hash" > /tmp/requirements.txt
pip install -r /tmp/requirements.txt
rm /tmp/requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment