git: b671188064d0 - main - devel/py-awscrt: Update to 0.27.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 19 May 2025 20:03:46 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b671188064d042344b980accc2ac3f8ae2081220

commit b671188064d042344b980accc2ac3f8ae2081220
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-19 19:08:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-19 19:58:09 +0000

    devel/py-awscrt: Update to 0.27.1
    
    - Change MASTER_SITES back to PYPI
    
    Changes:        https://github.com/awslabs/aws-crt-python/releases
---
 devel/py-awscrt/Makefile                       |  9 +---
 devel/py-awscrt/distinfo                       |  6 +--
 devel/py-awscrt/files/patch-awscrt-__init__.py | 11 ----
 devel/py-awscrt/files/patch-mqtt               | 70 --------------------------
 4 files changed, 5 insertions(+), 91 deletions(-)

diff --git a/devel/py-awscrt/Makefile b/devel/py-awscrt/Makefile
index 8868c424f610..c65f8e7868c9 100644
--- a/devel/py-awscrt/Makefile
+++ b/devel/py-awscrt/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	awscrt
-PORTVERSION=	0.27.0
-DISTVERSIONPREFIX=	v
+PORTVERSION=	0.27.1
 CATEGORIES=	devel python
-#MASTER_SITES=	PYPI
+MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -35,10 +34,6 @@ MAKE_ENV=	AWS_CRT_BUILD_FORCE_STATIC_LIBS=0 \
 		AWS_CRT_BUILD_USE_SYSTEM_LIBS=1 \
 		AWS_CRT_BUILD_WARNINGS_ARE_ERRORS=0
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	awslabs
-GH_PROJECT=	aws-crt-python
-
 # Clean up bundled libraries
 post-patch:
 	@${RM} -r ${WRKSRC}/crt/
diff --git a/devel/py-awscrt/distinfo b/devel/py-awscrt/distinfo
index 359b8d1592ed..eb8fc82ea07c 100644
--- a/devel/py-awscrt/distinfo
+++ b/devel/py-awscrt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1745936114
-SHA256 (awslabs-aws-crt-python-v0.27.0_GH0.tar.gz) = 780e56c0eb7b09088084a613e526a271a39ebbb291255163351d2132e114f967
-SIZE (awslabs-aws-crt-python-v0.27.0_GH0.tar.gz) = 293885
+TIMESTAMP = 1747546494
+SHA256 (awscrt-0.27.1.tar.gz) = fceb989c91001934c7a764e5c0ba68d7cbd339e054260dc35291f3245b8859cb
+SIZE (awscrt-0.27.1.tar.gz) = 36843962
diff --git a/devel/py-awscrt/files/patch-awscrt-__init__.py b/devel/py-awscrt/files/patch-awscrt-__init__.py
deleted file mode 100644
index 292f8dd8e792..000000000000
--- a/devel/py-awscrt/files/patch-awscrt-__init__.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- awscrt/__init__.py.orig	2025-04-25 19:28:57 UTC
-+++ awscrt/__init__.py
-@@ -13,7 +13,7 @@ __all__ = [
-     'websocket',
- ]
- 
--__version__ = '1.0.0.dev0'
-+__version__ = '0.27.0'
- 
- 
- class NativeResource:
diff --git a/devel/py-awscrt/files/patch-mqtt b/devel/py-awscrt/files/patch-mqtt
deleted file mode 100644
index c9cf71ea4487..000000000000
--- a/devel/py-awscrt/files/patch-mqtt
+++ /dev/null
@@ -1,70 +0,0 @@
-Obtained from:	https://github.com/awslabs/aws-crt-python/pull/651
-		https://github.com/awslabs/aws-crt-python/pull/651/commits/aca159cc63187426a61e6c1cc8e4c18db2d73d71
---- source/mqtt_request_response.c.orig	2025-04-25 19:28:57 UTC
-+++ source/mqtt_request_response.c
-@@ -352,8 +352,7 @@ static void s_on_mqtt_request_complete(
- }
- 
- static void s_on_mqtt_request_complete(
--    const struct aws_byte_cursor *response_topic,
--    const struct aws_byte_cursor *payload,
-+    const struct aws_mqtt_rr_incoming_publish_event *publish_event,
-     int error_code,
-     void *user_data) {
- 
-@@ -368,10 +367,10 @@ static void s_on_mqtt_request_complete(
-         request_binding->on_request_complete_callback,
-         "(is#y#)",
-         /* i */ error_code,
--        /* s */ response_topic ? response_topic->ptr : NULL,
--        /* # */ response_topic ? response_topic->len : 0,
--        /* y */ payload ? payload->ptr : NULL,
--        /* # */ payload ? payload->len : 0);
-+        /* s */ publish_event ? publish_event->topic.ptr : NULL,
-+        /* # */ publish_event ? publish_event->topic.len : 0,
-+        /* y */ publish_event ? publish_event->payload.ptr : NULL,
-+        /* # */ publish_event ? publish_event->payload.len : 0);
-     if (!result) {
-         PyErr_WriteUnraisable(PyErr_Occurred());
-     }
-@@ -467,7 +466,7 @@ PyObject *aws_py_mqtt_request_response_client_make_req
-         };
- 
-         if (aws_mqtt_request_response_client_submit_request(client_binding->native, &request_options)) {
--            s_on_mqtt_request_complete(NULL, NULL, aws_last_error(), request_binding);
-+            s_on_mqtt_request_complete(NULL, aws_last_error(), request_binding);
-         }
-     }
- 
-@@ -551,8 +550,7 @@ static void s_aws_mqtt_streaming_operation_incoming_pu
- }
- 
- static void s_aws_mqtt_streaming_operation_incoming_publish_callback_python(
--    struct aws_byte_cursor payload,
--    struct aws_byte_cursor topic,
-+    const struct aws_mqtt_rr_incoming_publish_event *publish_event,
-     void *user_data) {
- 
-     struct mqtt_streaming_operation_binding *stream_binding = user_data;
-@@ -565,10 +563,10 @@ static void s_aws_mqtt_streaming_operation_incoming_pu
-     PyObject *result = PyObject_CallFunction(
-         stream_binding->incoming_publish_callable,
-         "(s#y#)",
--        /* s */ topic.ptr,
--        /* # */ topic.len,
--        /* y */ payload.ptr,
--        /* # */ payload.len);
-+        /* s */ publish_event->topic.ptr,
-+        /* # */ publish_event->topic.len,
-+        /* y */ publish_event->payload.ptr,
-+        /* # */ publish_event->payload.len);
-     if (!result) {
-         PyErr_WriteUnraisable(PyErr_Occurred());
-     }
-@@ -673,4 +671,4 @@ struct aws_mqtt_rr_client_operation *aws_py_get_mqtt_s
-         s_capsule_name_mqtt_streaming_operation,
-         "StreamingOperation",
-         mqtt_streaming_operation_binding);
--}
-\ No newline at end of file
-+}