# -*- 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-unittest2 version 1.1.0 license PSF maintainers {aronnax @lpsinger} openmaintainer # do not add subports for python > 3.4 python.versions 27 description New features in the unittest library long_description unittest2 is a backport of the new features added to the unittest \ testing framework in Python 2.7 and onwards. \ It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy. \ To use unittest2 instead of unittest simply replace import unittest with \ import unittest2. platforms {darwin any} supported_archs noarch homepage https://pypi.python.org/pypi/unittest2 master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} distname ${python.rootname}-${version} checksums rmd160 b9294b1ef9a6f0f7d8d2419b3260fc27ba81777d \ sha256 22882a0e418c284e1f718a822b3b022944d53d2d908e1690b319a9d3eb2c0579 \ size 81432 # see: last two commits in https://hg.python.org/unittest2, but also don't require argparse for setup patch.pre_args-replace -p0 -p1 patchfiles patch-traceback2-everywhere.diff \ patch-argparse-dependency.diff if {${name} ne ${subport}} { depends_lib-append \ port:py${python.version}-setuptools \ port:py${python.version}-six \ port:py${python.version}-traceback2 test.run yes test.cmd ${python.bin} setup.py livecheck.type none }