git: ac33312f730a - main - databases/py-snowflake-connector-python: Update to 3.8.0

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 06 May 2024 19:12:08 UTC
The branch main has been updated by fuz:

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

commit ac33312f730a8bdba8dbb578bf5d0299bd85f009
Author:     Pat Maddox <pat@patmaddox.com>
AuthorDate: 2024-01-19 09:46:27 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-05-06 19:11:25 +0000

    databases/py-snowflake-connector-python: Update to 3.8.0
    
    Changelog: https://github.com/snowflakedb/snowflake-connector-python/releases/tag/v3.8.0
    
    PR:             276455
---
 databases/py-snowflake-connector-python/Makefile         |  4 +---
 databases/py-snowflake-connector-python/distinfo         |  6 +++---
 .../py-snowflake-connector-python/files/patch-setup.cfg  | 13 -------------
 ...nnector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c | 12 ++++++------
 ...nnector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h | 16 ++++++++--------
 5 files changed, 18 insertions(+), 33 deletions(-)

diff --git a/databases/py-snowflake-connector-python/Makefile b/databases/py-snowflake-connector-python/Makefile
index 915908ea09d5..6177cd438e74 100644
--- a/databases/py-snowflake-connector-python/Makefile
+++ b/databases/py-snowflake-connector-python/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	snowflake-connector-python
-PORTVERSION=	3.5.0
-PORTREVISION=	1
+DISTVERSION=	3.8.0
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -22,7 +21,6 @@ USE_PYTHON=	autoplist concurrent distutils
 PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asn1crypto>0.24.0,<2.0.0:devel/py-asn1crypto@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cffi>=1.9,<2:devel/py-cffi@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cryptography>=3.1.0:security/py-cryptography@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}oscrypto<2.0:security/py-oscrypto@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyjwt<3.0:www/py-pyjwt@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
diff --git a/databases/py-snowflake-connector-python/distinfo b/databases/py-snowflake-connector-python/distinfo
index 7ef6b3e3b074..9cc22707e696 100644
--- a/databases/py-snowflake-connector-python/distinfo
+++ b/databases/py-snowflake-connector-python/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1701367506
-SHA256 (snowflake-connector-python-3.5.0.tar.gz) = 654e4a1f68a491544bd8f7c5ab02eb8531df67c5f4309d5253bd204044f8a1b3
-SIZE (snowflake-connector-python-3.5.0.tar.gz) = 702274
+TIMESTAMP = 1712271603
+SHA256 (snowflake-connector-python-3.8.0.tar.gz) = b5b5e85d02b4348a1f2d6c67df4829aa3387967b0133d2b7fa31d190d0609c31
+SIZE (snowflake-connector-python-3.8.0.tar.gz) = 733956
diff --git a/databases/py-snowflake-connector-python/files/patch-setup.cfg b/databases/py-snowflake-connector-python/files/patch-setup.cfg
deleted file mode 100644
index bb597af1f64a..000000000000
--- a/databases/py-snowflake-connector-python/files/patch-setup.cfg
+++ /dev/null
@@ -1,13 +0,0 @@
-Obtained from:	https://github.com/snowflakedb/snowflake-connector-python/commit/1718a94804e1c737c2f7d7e52d6aafcd8ae3c506
-
---- setup.cfg.orig	2023-11-13 17:55:47 UTC
-+++ setup.cfg
-@@ -58,7 +58,7 @@ install_requires = 
- 	typing_extensions>=4.3,<5
- 	filelock>=3.5,<4
- 	sortedcontainers>=2.4.0
--	platformdirs>=2.6.0,<4.0.0
-+	platformdirs>=2.6.0,<5.0.0
- 	tomlkit
- include_package_data = True
- package_dir = 
diff --git a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c
index 46bb0a440466..ba9bbadf843f 100644
--- a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c
+++ b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c
@@ -1,6 +1,6 @@
---- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c.orig	2023-11-30 19:17:00 UTC
+--- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c.orig	2024-04-04 23:04:16 UTC
 +++ src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c
-@@ -21239,7 +21239,7 @@ static inline int ArrowIpcDecoderReadHeaderPrefix(stru
+@@ -32030,7 +32030,7 @@ static inline int ArrowIpcDecoderReadHeaderPrefix(
  
    if (header_body_size_bytes == 0) {
      ArrowErrorSet(error, "End of Arrow stream");
@@ -9,16 +9,16 @@
    }
  
    return NANOARROW_OK;
-@@ -22194,7 +22194,7 @@ static int ArrowIpcArrayStreamReaderNextHeader(
-     // is one of the valid outcomes) but we set the error anyway in case it gets
-     // propagated higher (e.g., if the stream is empty and there's no schema message)
+@@ -33015,7 +33015,7 @@ static int ArrowIpcArrayStreamReaderNextHeader(
+     // it gets propagated higher (e.g., if the stream is empty and there's no
+     // schema message)
      ArrowErrorSet(&private_data->error, "No data available on stream");
 -    return ENODATA;
 +    return ENOATTR;
    } else if (bytes_read != 8) {
      ArrowErrorSet(&private_data->error,
                    "Expected at least 8 bytes in remainder of stream");
-@@ -22338,7 +22338,7 @@ static int ArrowIpcArrayStreamReaderGetNext(struct Arr
+@@ -33167,7 +33167,7 @@ static int ArrowIpcArrayStreamReaderGetNext(struct Arr
    // Read + decode the next header
    int result = ArrowIpcArrayStreamReaderNextHeader(
        private_data, NANOARROW_IPC_MESSAGE_TYPE_RECORD_BATCH);
diff --git a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h
index cf93c5d9c978..3a6e10bb4d04 100644
--- a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h
+++ b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h
@@ -1,11 +1,11 @@
---- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.h.orig	2023-11-30 19:16:47 UTC
+--- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.h.orig	2024-04-04 23:04:09 UTC
 +++ src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.h
-@@ -193,7 +193,7 @@ void ArrowIpcDecoderReset(struct ArrowIpcDecoder* deco
- /// The first 8 bytes of an Arrow IPC message are 0xFFFFFF followed by the size
- /// of the header as a little-endian 32-bit integer. ArrowIpcDecoderPeekHeader() reads
- /// these bytes and returns ESPIPE if there are not enough remaining bytes in data to read
--/// the entire header message, EINVAL if the first 8 bytes are not valid, ENODATA if the
-+/// the entire header message, EINVAL if the first 8 bytes are not valid, ENOATTR if the
- /// Arrow end-of-stream indicator has been reached, or NANOARROW_OK otherwise.
+@@ -198,7 +198,7 @@ void ArrowIpcDecoderReset(struct ArrowIpcDecoder* deco
+ /// of the header as a little-endian 32-bit integer. ArrowIpcDecoderPeekHeader()
+ /// reads these bytes and returns ESPIPE if there are not enough remaining bytes
+ /// in data to read the entire header message, EINVAL if the first 8 bytes are
+-/// not valid, ENODATA if the Arrow end-of-stream indicator has been reached, or
++/// not valid, ENOATTR if the Arrow end-of-stream indicator has been reached, or
+ /// NANOARROW_OK otherwise.
  ArrowErrorCode ArrowIpcDecoderPeekHeader(struct ArrowIpcDecoder* decoder,
                                           struct ArrowBufferView data,