Changeset View
Standalone View
finance/py-ofxparse/Makefile
- This file was added.
# $FreeBSD$ | |||||
PORTNAME= ofxparse | |||||
DISTVERSION= 0.20 | |||||
CATEGORIES= finance python | |||||
MASTER_SITES= CHEESESHOP | |||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | |||||
MAINTAINER= vishwin@vishwin.info | |||||
COMMENT= Tools for working with the OFX (Open Financial Exchange) file format | |||||
LICENSE= MIT | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE | |||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4:www/py-beautifulsoup@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | |||||
TEST_DEPENDS= nosetests-${PYTHON_VER}:devel/py-nose@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} | |||||
USES= python | |||||
USE_PYTHON= autoplist concurrent distutils | |||||
NO_ARCH= yes | |||||
do-test: | |||||
koobs: This isn't necessary when specifying `do-test` as the target | |||||
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test | |||||
.include <bsd.port.mk> | |||||
Done Inline ActionsThe package defines test_suite in setup.py which enables the setuptools 'test' command. When packages define this, use ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test unless there is a compelling temporary reason not to (say for example, that invocation method is currently broken) Failing that method working, the next best method is: ${PYTHON_CMD} -m <module> where target could be nose or pytest et al. Many packages depend on, or are limited to specific versions of test dependencies, and doing the above, allows you to use the 'package name and version' style TEST_DEPENDS declaration, which the 'binary name' method doesn't allow. So when changing the do-test invocation, switch the TEST_DEPENDS on nose from the binary to packagename style koobs: The package defines `test_suite` in setup.py which enables the setuptools 'test' command. | |||||
Done Inline ActionsThe documentation said to run nose directly, but it turns out test_suite works too. Switched. vishwin: The documentation said to run `nose` directly, but it turns out `test_suite` works too. |
This isn't necessary when specifying do-test as the target