Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 939 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 939 Bytes

pypi-info-generator

Script to auto generate Python package info on requirements.txt

prerequisites

OSX

brew install jq

Ubuntu

sudo apt-get install jq

Installation

curl -L https://raw.githubusercontent.com/hanksudo/pypi-info-generator/master/pypi-info.sh -o ~/bin/pypi-info && chmod +x ~/bin/pypi-info

Usage

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