Script to auto generate Python package info on requirements.txt
OSX
brew install jq
Ubuntu
sudo apt-get install jq
curl -L https://raw.githubusercontent.com/hanksudo/pypi-info-generator/master/pypi-info.sh -o ~/bin/pypi-info && chmod +x ~/bin/pypi-info
pypi-info requirements.txt
input file: requirements.txt
Pygments==2.0.2
simplejson==3.3.1
oauth2client
output file: new-requirements.txt
# Pygments is a syntax highlighting package written in Python.
# http://pygments.org/
Pygments==2.0.2
# Simple, fast, extensible JSON encoder/decoder for Python
# http://github.com/simplejson/simplejson
simplejson==3.3.1
# OAuth 2.0 client library
# http://github.com/google/oauth2client/
oauth2client