1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

dns/py-pycares: Update to 5.0.1

- switch to use 'USE_PYTHON=pep517'
- make test clean
- take maintainership

PR:		292245
ChnageLog:	https://github.com/saghul/pycares/compare/pycares-4.3.0...v5.0.1
Approved by:	demon(maintainer), hrs (mentor, blanket)
This commit is contained in:
Norikatsu Shigemura
2026-02-03 23:16:20 +09:00
parent 92304b0981
commit 77ec25ca7b
3 changed files with 34 additions and 14 deletions
+11 -11
View File
@@ -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 <bsd.port.mk>
+3 -3
View File
@@ -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
+20
View File
@@ -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*"