comparison scripts/setup_scraper.py @ 0:b0942f44413f

import from git://github.com/mozilla/toolbox.git
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 09:15:35 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b0942f44413f
1 """
2 scrapes metadata from a python setup.py file
3 """
4
5 import imp
6 import sys
7 import urllib2
8
9 # dictionary of
10 data = {}
11
12 def mock_setup(**kwargs):
13 """
14 mock the distutils/setuptools setup function
15 """
16 import pdb; pdb.set_trace()
17
18 def setuppy2tool(url):
19 """
20 reads a file path or URL (TODO)
21 returns a dict in the appropriate format
22 """
23
24
25
26 if __name__ == '__main__':
27 for arg in sys.argv[1:]:
28 print setuppy2tool(arg)