[123932] branches/gsoc14-pip2port/pypi2port

gaurav at macports.org gaurav at macports.org
Fri Aug 15 21:44:34 PDT 2014


Revision: 123932
          https://trac.macports.org/changeset/123932
Author:   gaurav at macports.org
Date:     2014-08-15 21:44:34 -0700 (Fri, 15 Aug 2014)
Log Message:
-----------
Updated executable

Modified Paths:
--------------
    branches/gsoc14-pip2port/pypi2port

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-08-16 04:43:48 UTC (rev 123931)
+++ branches/gsoc14-pip2port/pypi2port	2014-08-16 04:44:34 UTC (rev 123932)
@@ -657,40 +657,42 @@
 
 def main(argv):
     parser = argparse.ArgumentParser(description="Pypi2Port Tester")
+# Calls list_all() which lists al available python packages
     parser.add_argument('-l', '--list', action='store_true', dest='list',
                         default=False, required=False,
                         help='List all packages')
+# Calls search with the package_name
     parser.add_argument('-s', '--search', action='store', type=str,
                         dest='packages_search', nargs='*', required=False,
                         help='Search for a package')
+# Calls release_data with package_name and package_version
     parser.add_argument('-d', '--data', action='store',
                         dest='packages_data', nargs='*', type=str,
                         help='Releases data for a package')
+# Calls fetch_url with the various package_releases
     parser.add_argument('-f', '--fetch', action='store', type=str,
                         dest='package_fetch', nargs='*', required=False,
                         help='Fetches distfiles for a package')
+# Calls print_portfile with the release data available
     parser.add_argument('-p', '--portfile', action='store', type=str,
                         dest='package_portfile', nargs='*', required=False,
                         help='Prints the portfile for a package')
+# Calls port_testing
     parser.add_argument('-t', '--test', action='store', type=str,
                         dest='package_test', nargs='*', required=False,
                         help='Tests the portfile for various phase tests')
     options = parser.parse_args()
 
-""" Calls list_all() which lists al available python packages """
-
     if options.list:
         list_all()
         return
 
-""" Calls search with the package_name """
 
     if options.packages_search:
         for pkg_name in options.packages_search:
             search(pkg_name)
         return
 
-""" Calls release_data with package_name and package_version """
 
     if options.packages_data:
         pkg_name = options.packages_data[0]
@@ -705,7 +707,6 @@
                 print "No release found\n"
         return
 
-""" Calls fetch_url with the various package_releases """
 
     if options.package_fetch:
         pkg_name = options.package_fetch[0]
@@ -721,7 +722,6 @@
                 print "No release found\n"
         return
 
-""" Calls print_portfile with the release data available """
 
     if options.package_portfile:
         pkg_name = options.package_portfile[0]
@@ -737,7 +737,6 @@
                 print "No release found\n"
         return
 
-""" Calls port_testing """
 
     if options.package_test:
         if len(options.package_test) > 0:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140815/f515aaf3/attachment.html>


More information about the macports-changes mailing list