Commits

reneeotten authored and Perry E. Metzger committed 39339495773
py-codestyle: update to 2.4.0

- enable tests - removed no longer needed post-extract phase - update livecheck and homepage
No tags

python/py-codestyle/Portfile

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

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut