diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/setup_scraper.py	Sun May 11 09:15:35 2014 -0700
@@ -0,0 +1,28 @@
+"""
+scrapes metadata from a python setup.py file
+"""
+
+import imp
+import sys
+import urllib2
+
+# dictionary of 
+data = {}
+
+def mock_setup(**kwargs):
+    """
+    mock the distutils/setuptools setup function
+    """
+    import pdb; pdb.set_trace()
+
+def setuppy2tool(url):
+    """
+    reads a file path or URL (TODO)
+    returns a dict in the appropriate format
+    """
+    
+
+
+if __name__ == '__main__':
+    for arg in sys.argv[1:]:
+        print setuppy2tool(arg)