Skip to content
Permalink
Browse files

py-cog: update to 3.0.0, add py37

- pin to 2.5.1 for py27 and py34
- enable tests
- install files in post-destroot
  • Loading branch information
reneeotten committed Apr 19, 2019
1 parent c908741 commit 76e6b67dbdce9dd827fa5a2844c4a63f6c222427
Showing with 32 additions and 5 deletions.
  1. +32 −5 python/py-cog/Portfile
@@ -5,7 +5,7 @@ PortGroup python 1.0

name py-cog
python.rootname cogapp
version 2.5.1
version 3.0.0
revision 0
platforms darwin
supported_archs noarch
@@ -22,15 +22,42 @@ master_sites pypi:c/${python.rootname}

distname ${python.rootname}-${version}

checksums rmd160 253834c2612eca68ac38d5618716768360e830dd \
checksums rmd160 705f49591837155f5f29d42e7780cbb09f836509 \
sha256 5e5da2bcfc4e4750c66cecb80ea4eaed1ef4fddd3787c989d4f5bfffb1152d6a \
size 24638

python.versions 27 34 35 36 37

if {${name} ne ${subport}} {
if {${python.version} in "27 34"} {
version 2.5.1
revision 0
distname ${python.rootname}-${version}
checksums rmd160 253834c2612eca68ac38d5618716768360e830dd \
sha256 f8cf2288fb5a2087eb4a00d8b347ddc86e9058d4ab26b8c868433eb401adfe1c \
size 22226
}

python.versions 27 34 35 36
depends_lib-append \
port:py${python.version}-setuptools

depends_lib-append \
port:py${python.version}-pytest
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib

if {${name} ne ${subport}} {
post-destroot {
file delete ${destroot}${python.prefix}/bin/test_cog.py
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
if {${python.version} in "27 34"} {
xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt \
${destroot}${docdir}
} else {
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \
${destroot}${docdir}
}
}

livecheck.type none

0 comments on commit 76e6b67

Please sign in to comment.
You can’t perform that action at this time.