- Use PY_TOMLI
- While I'm here, convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency change
from setup.py:
"toml": ['tomli; python_full_version<="3.11.0a6"'],
Reference: https://github.com/nedbat/coveragepy/blob/7.9.2/setup.py#L98
Approved by: portmgr (blanket)
With hat: python
31 lines
780 B
Makefile
31 lines
780 B
Makefile
PORTNAME= coverage
|
|
PORTVERSION= 7.9.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
|
COMMENT= Code coverage measurement for Python
|
|
WWW= https://coverage.readthedocs.io/
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
|
|
OPTIONS_DEFINE= TOML
|
|
OPTIONS_DEFAULT=TOML
|
|
TOML_DESC= Enable pyproject.toml support
|
|
|
|
TOML_RUN_DEPENDS= ${PY_TOMLI}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/coverage/tracer*.so
|
|
|
|
.include <bsd.port.mk>
|