Commits

Tarek Ziadé  committed ec51afc

added new fields to the rpc interface

  • Participants
  • Parent commits 99fb9d6

Comments (0)

Files changed (1)

 
 class RequestHandler(SimpleXMLRPCDispatcher):
     """A request dispatcher for the PyPI XML-RPC API."""
-    
+
     def __init__(self):
         SimpleXMLRPCDispatcher.__init__(self, True, 'utf-8')
         self.register_function(list_packages)
         self.register_function(ratings)
         self.register_introspection_functions()
         self.register_multicall_functions()
-    
+
     def __call__(self, webui_obj):
         webui_obj.handler.send_response(200, 'OK')
         webui_obj.handler.send_header('Content-type', 'text/xml')
 def release_data(store, package_name, version):
     info = store.get_package(package_name, version).as_dict()
     del info['description_html']
-    for col in ('requires', 'provides', 'obsoletes'):
+    for col in ('requires', 'provides', 'obsoletes', 'requires_dist',
+                'obsoletes_dist', 'project_url', 'provides_dist',
+                'requires_external'):
         rows = store.get_release_relationships(package_name, version, col)
         info[col] = [row['specifier'] for row in rows]
     classifiers = [r[0] for r in store.get_release_classifiers(package_name,