view scripts/setup_scraper.py @ 5:bf5386d3c7e4

be less picky about pyes version
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 10:10:44 -0800
parents b0942f44413f
children
line wrap: on
line source

"""
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)