diff --git a/textproc/py-pygments/Makefile b/textproc/py-pygments/Makefile index 3e0629819c71..13ff60f6cdf1 100644 --- a/textproc/py-pygments/Makefile +++ b/textproc/py-pygments/Makefile @@ -1,27 +1,37 @@ PORTNAME= pygments -DISTVERSION= 2.14.0 +DISTVERSION= 2.15.0 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Pygments-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Syntax highlighter written in Python WWW= https://pygments.org/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0.40.0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wcag-contrast-ratio>=0.9:www/py-wcag-contrast-ratio@${PY_FLAVOR} -USES= cpe python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USES= cpe python:3.7+ +USE_PYTHON= autoplist concurrent pep517 CONFLICTS_INSTALL= py??-pygments-25 NO_ARCH= yes +# test: 4033 passed, 3 skipped, 8072 warnings do-test: (cd ${TEST_WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts=) -.include +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include diff --git a/textproc/py-pygments/distinfo b/textproc/py-pygments/distinfo index 9c0528ca7542..b79868a06ab2 100644 --- a/textproc/py-pygments/distinfo +++ b/textproc/py-pygments/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1672564497 -SHA256 (Pygments-2.14.0.tar.gz) = b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297 -SIZE (Pygments-2.14.0.tar.gz) = 4434562 +TIMESTAMP = 1681143350 +SHA256 (Pygments-2.15.0.tar.gz) = f7e36cffc4c517fbc252861b9a6e4644ca0e5abadf9a113c72d1358ad09b9500 +SIZE (Pygments-2.15.0.tar.gz) = 4818485 diff --git a/textproc/py-pygments/files/patch-pyproject.toml b/textproc/py-pygments/files/patch-pyproject.toml new file mode 100644 index 000000000000..60a9f7dd5303 --- /dev/null +++ b/textproc/py-pygments/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2023-02-25 10:36:04 UTC ++++ pyproject.toml +@@ -4,7 +4,7 @@ requires = ["setuptools >= 61"] + build-backend = "setuptools.build_meta" + + [project] +-name = "Pygments" ++name = "pygments" + dynamic = ["version"] + requires-python = ">=3.7" + license = {text = "BSD-2-Clause"}