[123104] branches/gsoc14-pip2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Tue Aug 5 04:24:22 PDT 2014
Revision: 123104
https://trac.macports.org/changeset/123104
Author: gaurav at macports.org
Date: 2014-08-05 04:24:22 -0700 (Tue, 05 Aug 2014)
Log Message:
-----------
Long description
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-08-05 11:19:51 UTC (rev 123103)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-08-05 11:24:22 UTC (rev 123104)
@@ -320,26 +320,27 @@
else:
file.write('description None\n\n')
description = dict['description']
- if description:
- description = description.encode('utf-8')
- description = filter(lambda x: x in string.printable, description)
- description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+',
- ' ', description)
- description = re.sub(r'\s(\s)+', ' ', description)
- lines = textwrap.wrap(description, width=70)
- file.write('long_description ')
- for line in lines:
- if line and lines.index(line) < 4:
- if not lines.index(line) == 0:
- file.write(' ')
- if lines.index(line) >= 3:
- file.write("{0}...\n".format(line))
- elif line == lines[-1]:
- file.write("{0}\n".format(line))
- else:
- file.write("{0} \\\n".format(line))
- else:
- file.write('long_description ${description}\n\n')
+# if description:
+# description = description.encode('utf-8')
+# description = filter(lambda x: x in string.printable, description)
+# description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+',
+# ' ', description)
+# description = re.sub(r'\s(\s)+', ' ', description)
+# lines = textwrap.wrap(description, width=70)
+# file.write('long_description ')
+# for line in lines:
+# if line and lines.index(line) < 4:
+# if not lines.index(line) == 0:
+# file.write(' ')
+# if lines.index(line) >= 3:
+# file.write("{0}...\n".format(line))
+# elif line == lines[-1]:
+# file.write("{0}\n".format(line))
+# else:
+# file.write("{0} \\\n".format(line))
+# else:
+# file.write('long_description ${description}\n\n')
+ file.write('long_description ${description}\n\n')
home_page = dict['home_page']
if home_page and not home_page == 'UNKNOWN':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140805/44a7e513/attachment.html>
More information about the macports-changes
mailing list