[149437] trunk/dports/python

petr at macports.org petr at macports.org
Mon Jun 20 10:10:37 PDT 2016


Revision: 149437
          https://trac.macports.org/changeset/149437
Author:   petr at macports.org
Date:     2016-06-20 10:10:37 -0700 (Mon, 20 Jun 2016)
Log Message:
-----------
py-codestyle: add new port, Python package `pep8` was renamed in `pycodestyle`, see #51659.

Modified Paths:
--------------
    trunk/dports/python/py-codestyle/Portfile
    trunk/dports/python/pycodestyle_select/Portfile
    trunk/dports/python/pycodestyle_select/files/base

Added Paths:
-----------
    trunk/dports/python/py-codestyle/
    trunk/dports/python/py-codestyle/files/pycodestyle-py27
    trunk/dports/python/py-codestyle/files/pycodestyle-py34
    trunk/dports/python/py-codestyle/files/pycodestyle-py35
    trunk/dports/python/pycodestyle_select/

Removed Paths:
-------------
    trunk/dports/python/py-codestyle/files/pep8-27
    trunk/dports/python/py-codestyle/files/pep8-34
    trunk/dports/python/py-codestyle/files/pep8-35

Modified: trunk/dports/python/py-codestyle/Portfile
===================================================================
--- trunk/dports/python/py-pep8/Portfile	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/py-codestyle/Portfile	2016-06-20 17:10:37 UTC (rev 149437)
@@ -5,41 +5,43 @@
 PortGroup           python 1.0
 PortGroup           select 1.0
 
-set realname        pep8
+set _name           pycodestyle
 
-name                py-pep8
+name                py-codestyle
 
-version             1.7.0
+version             2.0.0
 categories-append   devel
 platforms           darwin
 supported_archs     noarch
 license             MIT
-maintainers         gmail.com:patrik.hartlen openmaintainer
+maintainers         petr openmaintainer
 
-description         Python style guide checker
-long_description    pep8 is a tool to check your Python code against \
-                    some of the style conventions in PEP 8 \
-                    (http://www.python.org/dev/peps/pep-0008/)
+description         Python style guide checker (formally called pep8)
+long_description    \
+    ${_name} is a tool to check your Python code against some of the style \
+    conventions in PEP 8 (http://www.python.org/dev/peps/pep-0008/). \
+    This package used to be called pep8, but was renamed.
 
-homepage            https://pypi.python.org/pypi/${realname}/
+homepage            https://pypi.python.org/pypi/${_name}/
 
-master_sites        pypi:p/${realname}/
-distname            ${realname}-${version}
+master_sites        pypi:[string index ${_name} 0]/${_name}/
+distname            ${_name}-${version}
 
-checksums           md5     2b03109b0618afe3b04b3e63b334ac9d \
-                    rmd160  bca97f9cd30b21ce1f765b1f4f520747443b5d3e \
-                    sha256  a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900
+checksums           md5     733291d308def897c0c48c7840b7f6bc \
+                    rmd160  2e96f05c6bfc5f91e35e0534042147697f98559c \
+                    sha256  37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7
 
 python.versions     27 34 35
 
 if {${name} ne ${subport}} {
     depends_lib-append      port:py${python.version}-setuptools
-    depends_run-append      port:${realname}_select
-    select.group            ${realname}
-    select.file             ${filespath}/${realname}-${python.version}
+    depends_run-append      port:${_name}_select
+
+    select.group            ${_name}
+    select.file             ${filespath}/pycodestyle-py${python.version}
     notes "
-To make the Python ${python.branch} version of pep8 the one that is run\
-when you execute the commands without a version suffix, e.g. 'pep8', run:
+To make the Python ${python.branch} version of ${_name} the one that is run\
+when you execute the commands without a version suffix, e.g. '${_name}', run:
 
 port select --set ${select.group} [file tail ${select.file}]
 "
@@ -47,6 +49,6 @@
     livecheck.type  none
 } else {
     livecheck.type  regex
-    livecheck.url   https://pypi.python.org/pypi/${realname}/json
-    livecheck.regex "${realname}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
 }

Deleted: trunk/dports/python/py-codestyle/files/pep8-27
===================================================================
--- trunk/dports/python/py-pep8/files/pep8-27	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/py-codestyle/files/pep8-27	2016-06-20 17:10:37 UTC (rev 149437)
@@ -1 +0,0 @@
-bin/pep8-2.7

Deleted: trunk/dports/python/py-codestyle/files/pep8-34
===================================================================
--- trunk/dports/python/py-pep8/files/pep8-34	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/py-codestyle/files/pep8-34	2016-06-20 17:10:37 UTC (rev 149437)
@@ -1 +0,0 @@
-bin/pep8-3.4

Deleted: trunk/dports/python/py-codestyle/files/pep8-35
===================================================================
--- trunk/dports/python/py-pep8/files/pep8-35	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/py-codestyle/files/pep8-35	2016-06-20 17:10:37 UTC (rev 149437)
@@ -1 +0,0 @@
-bin/pep8-3.5

Added: trunk/dports/python/py-codestyle/files/pycodestyle-py27
===================================================================
--- trunk/dports/python/py-codestyle/files/pycodestyle-py27	                        (rev 0)
+++ trunk/dports/python/py-codestyle/files/pycodestyle-py27	2016-06-20 17:10:37 UTC (rev 149437)
@@ -0,0 +1 @@
+bin/pycodestyle-2.7

Added: trunk/dports/python/py-codestyle/files/pycodestyle-py34
===================================================================
--- trunk/dports/python/py-codestyle/files/pycodestyle-py34	                        (rev 0)
+++ trunk/dports/python/py-codestyle/files/pycodestyle-py34	2016-06-20 17:10:37 UTC (rev 149437)
@@ -0,0 +1 @@
+bin/pycodestyle-3.4

Added: trunk/dports/python/py-codestyle/files/pycodestyle-py35
===================================================================
--- trunk/dports/python/py-codestyle/files/pycodestyle-py35	                        (rev 0)
+++ trunk/dports/python/py-codestyle/files/pycodestyle-py35	2016-06-20 17:10:37 UTC (rev 149437)
@@ -0,0 +1 @@
+bin/pycodestyle-3.5

Modified: trunk/dports/python/pycodestyle_select/Portfile
===================================================================
--- trunk/dports/python/pep8_select/Portfile	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/pycodestyle_select/Portfile	2016-06-20 17:10:37 UTC (rev 149437)
@@ -4,9 +4,8 @@
 PortSystem          1.0
 PortGroup           select 1.0
 
-name                pep8_select
+name                pycodestyle_select
 version             0.1
-revision            0
 categories          python
 license             BSD
 platforms           darwin
@@ -14,10 +13,10 @@
 
 maintainers         nomaintainer
 
-description         common files for selecting default pep8 version
+description         common files for selecting default pycodestyle version
 long_description \
    This port installs files that allow 'port select' to be used to \
-   create links to the preferred default version of pep8.
+   create links to the preferred default version of pycodestyle.
 
 homepage            http://www.macports.org/
 
@@ -28,8 +27,8 @@
 build               {}
 
 destroot {
-    select::install pep8 ${filespath}/base
-    select::install pep8 ${filespath}/none
+    select::install pycodestyle ${filespath}/base
+    select::install pycodestyle ${filespath}/none
 }
 
 livecheck.type      none

Modified: trunk/dports/python/pycodestyle_select/files/base
===================================================================
--- trunk/dports/python/pep8_select/files/base	2016-06-20 13:56:32 UTC (rev 149436)
+++ trunk/dports/python/pycodestyle_select/files/base	2016-06-20 17:10:37 UTC (rev 149437)
@@ -1 +1 @@
-bin/pep8
+bin/pycodestyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160620/6f0ad6de/attachment-0001.html>


More information about the macports-changes mailing list