diff --git a/devel/py-twisted/Makefile b/devel/py-twisted/Makefile index b212392df098..117062f7ed50 100644 --- a/devel/py-twisted/Makefile +++ b/devel/py-twisted/Makefile @@ -1,66 +1,62 @@ PORTNAME= twisted -PORTVERSION= 23.8.0 -PORTREVISION= 1 +PORTVERSION= 24.7.0 CATEGORIES= devel net python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Asynchronous networking framework written in Python WWW= https://twistedmatrix.com/ \ https://github.com/twisted/twisted LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=22.5.0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hatchling>=1.10.0:devel/py-hatchling@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}incremental>=21.3.0:devel/py-incremental@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=24.7.0:devel/py-incremental@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=21.3.0:devel/py-attrs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Automat>=0.8.0:devel/py-Automat@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}constantly>=15.1:devel/py-constantly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hyperlink>=17.1.1:www/py-hyperlink@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}incremental>=21.3.0:devel/py-incremental@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=24.7.0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.2.0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}zope.interface>=5:devel/py-zope.interface@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython-test-exception-raiser>=1.0.2<2:devel/py-cython-test-exception-raiser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.56:devel/py-hypothesis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}PyHamcrest>=2:textproc/py-pyhamcrest@${PY_FLAVOR} USES= cpe python USE_PYTHON= autoplist concurrent pep517 CPE_VENDOR= twistedmatrix NO_ARCH= yes OPTIONS_DEFINE= CONCH HTTP2 SERIAL TLS OPTIONS_DEFAULT=CONCH HTTP2 SERIAL TLS CONCH_DESC= Conch secure shell SSH SERIAL_DESC= Serial port extension CONCH_USE= PYTHON=cryptography CONCH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/py-appdirs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}bcrypt>=3.1.3:security/py-bcrypt@${PY_FLAVOR} HTTP2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>=3.0<5.0:www/py-h2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}priority1>=1.1.0<2.0:www/py-priority1@${PY_FLAVOR} SERIAL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.0:comms/py-pyserial@${PY_FLAVOR} TLS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>=2.4:dns/py-idna@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}openssl>=21.0.0,1:security/py-openssl@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}service-identity>=18.1.0:security/py-service-identity@${PY_FLAVOR} # We need twisted.trial in PYTHONPATH # twisted.conch tests depend on finding certain scripts in PATH TEST_ENV= PYTHONPATH=${WRKSRC}/src PATH=${STAGEDIR}/${PREFIX}/bin:$$PATH -post-patch: - ${GREP} -F -Rl TLS_METHOD ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ - -e 's,TLS_METHOD,TLSv1_2_METHOD,' - post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/ -name '*.so' -exec ${STRIP_CMD} {} + do-test: @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m twisted.trial -e twisted .include diff --git a/devel/py-twisted/distinfo b/devel/py-twisted/distinfo index 5545084b2285..9904e18a044b 100644 --- a/devel/py-twisted/distinfo +++ b/devel/py-twisted/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1693987497 -SHA256 (twisted-23.8.0.tar.gz) = 3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24 -SIZE (twisted-23.8.0.tar.gz) = 3478691 +TIMESTAMP = 1727922157 +SHA256 (twisted-24.7.0.tar.gz) = 5a60147f044187a127ec7da96d170d49bcce50c6fd36f594e60f4587eff4d394 +SIZE (twisted-24.7.0.tar.gz) = 3516844 diff --git a/devel/py-twisted/files/patch-pyproject.toml b/devel/py-twisted/files/patch-pyproject.toml deleted file mode 100644 index 4fe5a29a6b2f..000000000000 --- a/devel/py-twisted/files/patch-pyproject.toml +++ /dev/null @@ -1,20 +0,0 @@ ---- pyproject.toml.orig 2020-02-02 00:00:00 UTC -+++ pyproject.toml -@@ -2,7 +2,7 @@ - requires = [ - "hatchling >= 1.10.0", - "hatch-fancy-pypi-readme >= 22.5.0", -- "incremental >= 22.10.0", -+ "incremental >= 21.3.0", - ] - build-backend = "hatchling.build" - -@@ -34,7 +34,7 @@ classifiers = [ - dependencies = [ - "zope.interface >= 5", - "constantly >= 15.1", -- "incremental >= 22.10.0", -+ "incremental >= 21.3.0", - "Automat >= 0.8.0", - "hyperlink >= 17.1.1", - "attrs >= 21.3.0",