* Add CPE related entries * Introduce CONDA option to reflect the settings as defined in "setup.py" * Simplify Makefile by switching to USE_PYTHON=pytest Changelog since 0.5.1: https://github.com/pyupio/dparse/compare/0.5.1...0.6.3 PR: 270923 [1] Reported by: Hubert Tournier [1] MFH: 2023Q3 Security: 83b29e3f-886f-439f-b9a8-72e014479ff9
40 lines
1 KiB
Makefile
40 lines
1 KiB
Makefile
PORTNAME= dparse
|
|
DISTVERSION= 0.6.3
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Parser for Python dependency files
|
|
WWW= https://github.com/pyupio/dparse
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
|
|
|
|
USES= cpe python
|
|
CPE_VENDOR= pyup
|
|
CPE_PRODUCT= dependency_parser
|
|
USE_PYTHON= autoplist distutils pytest
|
|
|
|
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= CONDA PIPENV
|
|
OPTIONS_DEFAULT= CONDA PIPENV
|
|
|
|
CONDA_DESC= Enable support for Conda YML parsing
|
|
PIPENV_DESC= Enable support to update Python Pipfiles
|
|
|
|
CONDA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
|
|
PIPENV_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pipenv>=2022.12.19:devel/py-pipenv@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 31100
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>0:textproc/py-tomli@${PY_FLAVOR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|