[134036] trunk/dports/python

petr at macports.org petr at macports.org
Tue Mar 17 10:43:04 PDT 2015


Revision: 134036
          https://trac.macports.org/changeset/134036
Author:   petr at macports.org
Date:     2015-03-17 10:43:04 -0700 (Tue, 17 Mar 2015)
Log Message:
-----------
various PyPI based python ports: adapt livecheck to new PyPI behaviour

Modified Paths:
--------------
    trunk/dports/python/py-bitarray/Portfile
    trunk/dports/python/py-flake8/Portfile
    trunk/dports/python/py-flake8-mccabe/Portfile
    trunk/dports/python/py-future/Portfile
    trunk/dports/python/py-geojson/Portfile
    trunk/dports/python/py-http-parser/Portfile
    trunk/dports/python/py-netlib/Portfile
    trunk/dports/python/py-obspy/Portfile
    trunk/dports/python/py-owslib/Portfile
    trunk/dports/python/py-pyshp/Portfile
    trunk/dports/python/py-radical-utils/Portfile
    trunk/dports/python/py-restkit/Portfile
    trunk/dports/python/py-saga/Portfile
    trunk/dports/python/py-scikits-samplerate/Portfile

Modified: trunk/dports/python/py-bitarray/Portfile
===================================================================
--- trunk/dports/python/py-bitarray/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-bitarray/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -43,6 +43,6 @@
     depends_build         port:py${python.version}-setuptools
 } else {
     livecheck.type      regex
-    livecheck.url       [lindex ${master_sites} 0]
-    livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-flake8/Portfile
===================================================================
--- trunk/dports/python/py-flake8/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-flake8/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -71,6 +71,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-flake8-mccabe/Portfile
===================================================================
--- trunk/dports/python/py-flake8-mccabe/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-flake8-mccabe/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -37,6 +37,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-future/Portfile
===================================================================
--- trunk/dports/python/py-future/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-future/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -59,6 +59,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-geojson/Portfile
===================================================================
--- trunk/dports/python/py-geojson/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-geojson/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -58,6 +58,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-http-parser/Portfile
===================================================================
--- trunk/dports/python/py-http-parser/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-http-parser/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -52,6 +52,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-netlib/Portfile
===================================================================
--- trunk/dports/python/py-netlib/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-netlib/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -49,6 +49,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-obspy/Portfile
===================================================================
--- trunk/dports/python/py-obspy/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-obspy/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -116,6 +116,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json}
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-owslib/Portfile
===================================================================
--- trunk/dports/python/py-owslib/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-owslib/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -57,6 +57,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-pyshp/Portfile
===================================================================
--- trunk/dports/python/py-pyshp/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-pyshp/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -53,9 +53,9 @@
                 ${dest_doc}
     }
 
-    livecheck.type      none
+    livecheck.type  none
 } else {
-    livecheck.type      regex
-    livecheck.url       [lindex ${master_sites} 0]
-    livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.type  regex
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-radical-utils/Portfile
===================================================================
--- trunk/dports/python/py-radical-utils/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-radical-utils/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -55,6 +55,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   ${master_sites}
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-restkit/Portfile
===================================================================
--- trunk/dports/python/py-restkit/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-restkit/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -59,6 +59,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-saga/Portfile
===================================================================
--- trunk/dports/python/py-saga/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-saga/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -62,6 +62,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   [lindex ${master_sites} 0]
-    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }

Modified: trunk/dports/python/py-scikits-samplerate/Portfile
===================================================================
--- trunk/dports/python/py-scikits-samplerate/Portfile	2015-03-17 17:18:29 UTC (rev 134035)
+++ trunk/dports/python/py-scikits-samplerate/Portfile	2015-03-17 17:43:04 UTC (rev 134036)
@@ -36,10 +36,6 @@
 
 python.versions     26 27
 
-livecheck.type  regex
-livecheck.url   [lindex ${master_sites} 0]
-livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
-
 if {${name} ne ${subport}} {
     depends_build-append    port:py${python.version}-setuptools \
                             port:py${python.version}-numpy
@@ -60,4 +56,8 @@
         copy ${worksrcpath}/docs/pdf  ${dest_doc}
     }
     livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150317/931fd7c4/attachment.html>


More information about the macports-changes mailing list