Commits
reneeotten authored and Frank Schima committed 6fd1026ed3f
1 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 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup python 1.0 |
5 5 | PortGroup select 1.0 |
6 6 | |
7 - | set _name pycodestyle |
8 - | |
9 7 | name py-codestyle |
8 + | python.rootname pycodestyle |
10 9 | |
11 10 | # CAUTION: Updates tend to break port `py-flake8` due to strict version caps. |
12 11 | # Please DO NOT update without cross-checking version compatibility and |
13 12 | # perform updates in a coordinated way. |
14 13 | |
15 - | version 2.4.0 |
14 + | version 2.5.0 |
16 15 | categories-append devel |
17 16 | platforms darwin |
18 17 | supported_archs noarch |
19 18 | license MIT |
20 19 | maintainers {petr @petrrr} openmaintainer |
21 20 | |
22 21 | description Python style guide checker (formally called pep8) |
23 22 | long_description \ |
24 - | ${_name} is a tool to check your Python code against some of the style \ |
23 + | ${python.rootname} is a tool to check your Python code against some of the style \ |
25 24 | conventions in PEP 8 (https://www.python.org/dev/peps/pep-0008/). \ |
26 25 | This package used to be called pep8, but was renamed. |
27 26 | |
28 27 | homepage https://pycodestyle.readthedocs.io |
29 28 | |
30 - | master_sites pypi:[string index ${_name} 0]/${_name}/ |
31 - | distname ${_name}-${version} |
29 + | master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}/ |
30 + | distname ${python.rootname}-${version} |
32 31 | |
33 - | checksums rmd160 1a0281bb62c0a409e2318b6eb3b25e84c9840f8e \ |
34 - | sha256 cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a \ |
35 - | size 96665 |
32 + | checksums rmd160 aa9a73b35c6bd921be4eb8c3a5bcd3cd09e20fd8 \ |
33 + | sha256 e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c \ |
34 + | size 98802 |
36 35 | |
37 36 | python.versions 27 34 35 36 37 |
38 37 | |
39 38 | if {${name} ne ${subport}} { |
40 39 | depends_lib-append port:py${python.version}-setuptools |
41 40 | |
42 - | depends_run-append port:${_name}_select |
41 + | depends_run-append port:${python.rootname}_select |
43 42 | |
44 - | select.group ${_name} |
43 + | select.group ${python.rootname} |
45 44 | select.file ${filespath}/pycodestyle-py${python.version} |
46 45 | notes " |
47 - | To make the Python ${python.branch} version of ${_name} the one that is run\ |
48 - | when you execute the commands without a version suffix, e.g. '${_name}', run: |
46 + | To make the Python ${python.branch} version of ${python.rootname} the one that is run\ |
47 + | when you execute the commands without a version suffix, e.g. '${python.rootname}', run: |
49 48 | |
50 49 | port select --set ${select.group} [file tail ${select.file}] |
51 50 | " |
52 51 | |
53 52 | test.run yes |
54 - | test.cmd ${python.bin} pycodestyle.py --testsuite testsuite |
55 - | test.target |
53 + | test.cmd ${python.bin} setup.py |
54 + | test.target test |
56 55 | |
57 56 | livecheck.type none |
58 - | } else { |
59 - | livecheck.type pypi |
60 - | livecheck.name pycodestyle |
61 57 | } |