[121211] branches/gsoc14-pip2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Fri Jun 20 03:07:59 PDT 2014
Revision: 121211
https://trac.macports.org/changeset/121211
Author: gaurav at macports.org
Date: 2014-06-20 03:07:59 -0700 (Fri, 20 Jun 2014)
Log Message:
-----------
Small changes in the license regex
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-06-20 09:59:25 UTC (rev 121210)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-06-20 10:07:59 UTC (rev 121211)
@@ -222,9 +222,9 @@
license = license.split('\n')[0]
license = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+', ' ', license)
license = re.sub(r'\s(\s)+', ' ', license)
- license = re.sub(r'([A-Z]*)([a-z]*)([\s]*)([0-9]\.*[0-9]*)',
+ license = re.sub(r'([A-Z]*)([a-z]*)([\s]+v*)([0-9]\.*[0-9]*)',
r'\1\2-\4', license)
- license = re.sub(r'v-', '-', license)
+ license = re.sub(r'v(-*)([0-9])', r'\1\2', license)
file.write('license {0}\n'.format(license))
else:
file.write('license {0}\n'.format(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140620/aa8e2f5d/attachment.html>
More information about the macports-changes
mailing list