source: trunk/dports/python/py-flake8-mccabe/Portfile

Last change on this file was 149438, checked in by petr@…, 15 months ago

py-flake8*: update to py-flake8 @2.6.0 and and py-flake8-mccabe @0.5.0 respectively, fixes #51659.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149438 2016-06-20 17:25:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           mccabe
8set _n              [string index ${_name} 0]
9
10name                py-flake8-${_name}
11version             0.5.0
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         petr openmaintainer
18
19description         McCabe complexity checker for Python code, flake8 plugin
20
21long_description    ${description}
22
23homepage            https://pypi.python.org/pypi/${_name}
24
25distname            ${_name}-${version}
26master_sites        pypi:${_n}/${_name}/
27
28checksums           md5     8304dc8dc2c7e0b15912e2638ee21c0a \
29                    rmd160  baff2484b25b7293e3482b97bff38f084a761989 \
30                    sha256  379358498f58f69157b53f59f46aefda0e9a3eb81365238f69fbedf7014e21ab
31
32python.versions     27 34 35
33
34if {${name} ne ${subport}} {
35    depends_build-append    port:py${python.version}-setuptools
36
37    test.run        yes
38    test.cmd        ${python.bin}
39    test.target     test_mccabe.py
40
41    if {${test.run}} {
42        depends_build-append    port:py${python.version}-pytest
43        depends_build-append    port:py${python.version}-pytest-runner
44    }
45
46    livecheck.type  none
47} else {
48    livecheck.type  regex
49    livecheck.url   https://pypi.python.org/pypi/${_name}/json
50    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
51}
Note: See TracBrowser for help on using the repository browser.