Skip to content

Instantly share code, notes, and snippets.

@ejucovy
Created June 21, 2012 12:50
Show Gist options
  • Save ejucovy/2965585 to your computer and use it in GitHub Desktop.
Save ejucovy/2965585 to your computer and use it in GitHub Desktop.
I want a tool that can do this.
egj@alcibiades:~$ echo "PasteScript==1.7.5
> WebOb==1.0
> python-dateutil
> http://launchpad.net/bzr/2.3/2.3.4/+download/bzr-2.3.4.tar.gz
> -e svn+https://svn.socialplanning.org/svn/fassembler/tags/0.4#egg=fassembler-0.4
> -e [email protected]:deliverance/Deliverance#egg=Deliverance-dev" > /tmp/req1.txt
egj@alcibiades:~$ echo "WebOb==1.2
> python-dateutil==2.1
> Paste==1.7.5.1
> bzr==2.3.4
> [email protected]:socialplanning/fassembler.git@89e7b68a41be4c201e43b39e32e0571a5b6578ad#egg=fassembler-dev
> -e [email protected]:deliverance/Deliverance.git@24e83d419a4fa168ad49c4870e1f84971afee371#egg=Deliverance-dev" > /tmp/req2.txt
egj@alcibiades:~$ i-wish-i-could-pip-diff-reqs /tmp/req1.txt /tmp/req2.txt
{
{'WebOb': {'version': {'old': '1.0', 'new': '1.2', 'conflict': true}},
{'Paste': {'version': {'old': null, 'new': '1.7.5.1'}, 'exists': {'old': false, 'new': true}},
{'python-dateutil': {'version': {'old': null, 'new': '2.1'}},
{'Deliverance': {'revision': {'old': null, 'new': '24e83d419a4fa168ad49c4870e1f84971afee371'}},
{'fassembler': {'version': {'old': '0.4', 'new': 'dev', 'conflict': true},
'revision': {'old': null, 'new': '89e7b68a41be4c201e43b39e32e0571a5b6578ad'},
'source': {'old': 'svn+https://svn.socialplanning.org/svn/fassembler/tags/0.4',
'new': '[email protected]:socialplanning/fassembler.git'},
'editable': {'old': false, 'new': true}},
{'bzr': {'source': {'old': 'http://launchpad.net/bzr/2.3/2.3.4/+download/bzr-2.3.4.tar.gz', 'new': null}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment