diff --git a/dns/py-pycares/Makefile b/dns/py-pycares/Makefile index d4f39b7e265e..10d4b10e69f1 100644 --- a/dns/py-pycares/Makefile +++ b/dns/py-pycares/Makefile @@ -1,32 +1,32 @@ PORTNAME= pycares -PORTVERSION= 4.3.0 -PORTREVISION= 1 +PORTVERSION= 5.0.1 CATEGORIES= dns python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= demon@FreeBSD.org +MAINTAINER= nork@FreeBSD.org COMMENT= Python interface to c-ares WWW= https://pypi.org/project/pycares/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.5.0:devel/py-cffi@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cffi>=1.5.0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.5.0:devel/py-cffi@${PY_FLAVOR} -USES= python -USE_PYTHON= distutils autoplist +USES= cmake:indirect python +USE_PYTHON= autoplist pep517 unittest -OPTIONS_DEFINE= IDNA -IDNA_DESC= IDNA support +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +OPTIONS_DEFINE= IDNA +IDNA_DESC= IDNA support IDNA_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} IDNA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/_cares*.so -do-test: - cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} tests/tests.py - .include diff --git a/dns/py-pycares/distinfo b/dns/py-pycares/distinfo index c2799223ed10..2ac20e898e6c 100644 --- a/dns/py-pycares/distinfo +++ b/dns/py-pycares/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1684420027 -SHA256 (pycares-4.3.0.tar.gz) = c542696f6dac978e9d99192384745a65f80a7d9450501151e4a7563e06010d45 -SIZE (pycares-4.3.0.tar.gz) = 821580 +TIMESTAMP = 1769937922 +SHA256 (pycares-5.0.1.tar.gz) = 5a3c249c830432631439815f9a818463416f2a8cbdb1e988e78757de9ae75081 +SIZE (pycares-5.0.1.tar.gz) = 652222 diff --git a/dns/py-pycares/files/patch-pyproject.toml b/dns/py-pycares/files/patch-pyproject.toml new file mode 100644 index 000000000000..c3fa093ba0a4 --- /dev/null +++ b/dns/py-pycares/files/patch-pyproject.toml @@ -0,0 +1,20 @@ +--- pyproject.toml.orig 2026-01-01 12:01:25 UTC ++++ pyproject.toml +@@ -13,7 +13,7 @@ requires-python = ">=3.9" + description = "Python interface for c-ares" + readme = {file = "PYPIREADME.rst", content-type = "text/x-rst"} + requires-python = ">=3.9" +-license = "MIT" ++license = {text = "MIT"} + authors = [ + {name = "Saúl Ibarra Corretgé", email = "s@saghul.net"} + ] +@@ -52,6 +52,8 @@ version = {attr = "pycares._version.__version__"} + + [tool.setuptools.dynamic] + version = {attr = "pycares._version.__version__"} ++ ++[tool.setuptools_scm] + + [tool.cibuildwheel] + build = "cp3*"