Files

55 lines
1.7 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-six
version 1.15.0
revision 0
categories-append devel
license MIT
platforms darwin
supported_archs noarch
maintainers {g5pw @g5pw} openmaintainer
description ${name} is a Python 2 and 3 compatibility library.
long_description ${description} It provides utility functions for smoothing\
over the differences between the Python versions with the goal\
of writing Python code that is compatible on both Python versions.
homepage https://pypi.python.org/pypi/six/
checksums rmd160 cee285cfd4f91cff80a7b6fd3f3eb0e544f038fc \
sha256 30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259 \
size 33917
# keep version for PY27 and PY34, these are (indirect) dependencies of py-virtualenv
python.versions 27 34 35 36 37 38 39
if {${name} ne ${subport}} {
depends_test-append \
port:py${python.version}-pytest
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
# do not want to re-add py34-pytest and all its (recursive) depencies
if {${python.version} == 34} {
depends_test
test.run no
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE CHANGES \
${destroot}${docdir}
}
livecheck.type none
}