@@ -0,0 +1,1675 @@
+import os%0Aimport sys%0Aimport json%0Aimport subprocess%0A%0A%0Adef setup(params, package=None):%0A    if package:%0A        path = os.path.dirname(__file__)%0A        meta = sh('%25s %25s package_info %25s %25s'%0A                  %25 (sys.executable, __file__, package, path))%0A        params.update(json.loads(meta))%0A%0A    return params%0A%0A%0Adef read(name):%0A    filename = os.path.join(os.path.dirname(__file__), name)%0A    with open(filename) as fp:%0A        return fp.read()%0A%0A%0Adef requirements(name):%0A    install_requires = %5B%5D%0A    dependency_links = %5B%5D%0A%0A    for line in read(name).split('%5Cn'):%0A        if line.startswith('-e '):%0A            link = line%5B3:%5D.strip()%0A            if link == '.':%0A                continue%0A            dependency_links.append(link)%0A            line = link.split('=')%5B1%5D%0A        line = line.strip()%0A        if line:%0A            install_requires.append(line)%0A%0A    return install_requires, dependency_links%0A%0A%0Adef sh(command):%0A    return subprocess.Popen(command,%0A                            stdout=subprocess.PIPE,%0A                            stderr=subprocess.PIPE,%0A                            shell=True,%0A                            universal_newlines=True).communicate()%5B0%5D%0A%0A%0Aif __name__ == '__main__':%0A    if len(sys.argv) %3E= 3 and sys.argv%5B1%5D == 'package_info':%0A        package = sys.argv%5B2%5D%0A        if len(sys.argv) %3E 3:%0A            sys.path.append(sys.argv%5B3%5D)%0A        os.environ%5B'package_info'%5D = package%0A        pkg = __import__(package)%0A        print(json.dumps(dict(version=pkg.__version__,%0A                              description=pkg.__doc__)))%0A    else:%0A        from agile import AgileManager%0A%0A        AgileManager(description='Release manager for pulsar').start()%0A

test new setup