c02ff86a83
When testing a port for a non-default python py.test may fail to find dependencies for default version because they weren't built e.g., $ make test PYTHON_VERSION=python3.5 -C devel/py-apscheduler [...] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 319, in _importconftest mod = conftestpath.pyimport() File "/usr/local/lib/python3.5/site-packages/py/_path/local.py", line 650, in pyimport __import__(modname) File "/usr/ports/devel/py-apscheduler/work/APScheduler-3.2.0/tests/conftest.py", line 8, in <module> from apscheduler.job import Job File "/usr/ports/devel/py-apscheduler/work/APScheduler-3.2.0/apscheduler/job.py", line 4, in <module> import six ImportError: No module named 'six' ERROR: could not load /usr/ports/devel/py-apscheduler/work/APScheduler-3.2.0/tests/conftest.py Approved by: portmgr blanket
32 lines
728 B
Makefile
32 lines
728 B
Makefile
# Created by: Ilya A. Arkhipov <rum1cro@yandex.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyscss
|
|
PORTVERSION= 1.2.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= textproc python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= rum1cro@yandex.ru
|
|
COMMENT= Compiler for SCSS flavor of the Sass language
|
|
|
|
LICENSE= MIT
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
|
|
LIB_DEPENDS= libpcre.so:devel/pcre
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Kronuz
|
|
GH_PROJECT= pyScss
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
regression-test: build
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
|
|
|
|
.include <bsd.port.mk>
|