[123794] branches/gsoc14-pip2port
gaurav at macports.org
gaurav at macports.org
Thu Aug 14 10:08:01 PDT 2014
Revision: 123794
https://trac.macports.org/changeset/123794
Author: gaurav at macports.org
Date: 2014-08-14 10:08:01 -0700 (Thu, 14 Aug 2014)
Log Message:
-----------
Updated pypi2port.py-Remove blank output lines and removed printing the diff to STDOUT; svn property set to ignore pypi-fails.txt
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Property Changed:
----------------
branches/gsoc14-pip2port/
Property changes on: branches/gsoc14-pip2port
___________________________________________________________________
Modified: svn:ignore
- license_list.*
sources
dports
+ license_list.*
pypi-fails.txt
sources
dports
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-08-14 16:36:22 UTC (rev 123793)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-08-14 17:08:01 UTC (rev 123794)
@@ -110,7 +110,6 @@
pbar.update(file_size_dl)
pbar.finish()
- print
checksum_md5_calc = hashlib.md5(open(file_name).read()).hexdigest()
if str(checksum_md5) == str(checksum_md5_calc):
@@ -259,9 +258,7 @@
try:
if flag:
os.rmdir(dir)
- print
except OSError as ex:
- print
return checksums
except:
print "Error\n"
@@ -606,8 +603,8 @@
diff_file = './dports/python/py-'+dict['name']+'/patch.Portfile.diff'
create_diff(old_file, new_file, diff_file)
print str(os.path.abspath(diff_file))+"\n"
- with open(diff_file) as diff:
- print diff.read()
+# with open(diff_file) as diff:
+# print diff.read()
print "\nIf you want to open a new ticket. Please visit"
print "https://trac.macports.org/auth/login/?next=/newticket"
print "to open a new ticket after logging in with your credentials."
@@ -679,15 +676,21 @@
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]
if len(options.packages_data) > 1:
@@ -701,6 +704,8 @@
print "No release found\n"
return
+""" Calls fetch_url with the various package_releases """
+
if options.package_fetch:
pkg_name = options.package_fetch[0]
if len(options.package_fetch) > 1:
@@ -715,6 +720,8 @@
print "No release found\n"
return
+""" Calls print_portfile with the release data available """
+
if options.package_portfile:
pkg_name = options.package_portfile[0]
if len(options.package_portfile) > 1:
@@ -729,6 +736,8 @@
print "No release found\n"
return
+""" Calls port_testing """
+
if options.package_test:
if len(options.package_test) > 0:
pkg_name = options.package_test[0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140814/4f823b53/attachment-0001.html>
More information about the macports-changes
mailing list