Commits

reneeotten authored and Frank Schima committed 9eb2c6d1e30
py-lz4: update to 2.1.6, add py37

- update dependencies - enable tests - use default PyPI livecheck
No tags

python/py-lz4/Portfile

Modified
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
6 6 name py-lz4
7 -version 0.8.2
7 +version 2.1.6
8 +revision 0
9 +
8 10 license BSD
9 11 maintainers nomaintainer
10 12 description LZ4 bindings for python
11 13 long_description ${description} By Steeve Morin
12 14 platforms darwin
13 15 supported_archs noarch
14 16 homepage https://pypi.python.org/pypi/lz4
15 17 master_sites pypi:l/lz4/
16 18 distname lz4-${version}
17 19
18 -checksums rmd160 77fde62ba95eb293912a389d7af85b92e9f98898 \
19 - sha256 6bf49061d73d69c453e892ace4586b99ccffc7de558f921d18b9418235692ac7
20 +checksums rmd160 8e63d19c77176d21a0d284f2d6ec9607c0e61ea3 \
21 + sha256 3c03f6b52b136a61b3168e875753a60d171a3efbab3601d66402a78dd20de4d2 \
22 + size 129066
20 23
21 -python.versions 27 34 35 36
24 +python.versions 27 34 35 36 37
22 25
23 26 if {${name} ne ${subport}} {
24 - depends_build-append port:py${python.version}-setuptools
25 - livecheck.type none
26 -} else {
27 - livecheck.type regex
28 - livecheck.regex {lz4/(\d+(?:\.\d+)*)}
27 + depends_build-append \
28 + port:py${python.version}-pkgconfig \
29 + port:py${python.version}-setuptools_scm
30 +
31 + if {${python.version} eq 27} {
32 + depends_lib-append \
33 + port:py${python.version}-future
34 + }
35 +
36 + pre-test {
37 + test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
38 + }
39 + depends_test-append \
40 + port:py${python.version}-psutil \
41 + port:py${python.version}-pytest \
42 + port:py${python.version}-pytest-runner
43 + test.run yes
44 + test.cmd py.test-${python.branch}
45 + test.target
46 +
47 + post-destroot {
48 + set docdir ${prefix}/share/doc/${subport}
49 + xinstall -d ${destroot}${docdir}
50 + xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
51 + ${destroot}${docdir}
52 + }
53 +
54 + livecheck.type none
29 55 }

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

Add shortcut