diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-07 17:11:20 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-07 17:18:30 +0300 |
commit | fb7e2db618ca57793e256a099677433c3f8a3005 (patch) | |
tree | eda33fc426b6bf3c88d3a24cb5035ca058554268 | |
parent | 1db34968b62efd36baf1e286042c6c797e33e985 (diff) | |
download | ydb-fb7e2db618ca57793e256a099677433c3f8a3005.tar.gz |
Intermediate changes
-rw-r--r-- | contrib/libs/pybind11/include/pybind11/detail/class.h | 4 | ||||
-rw-r--r-- | contrib/libs/pybind11/include/pybind11/detail/common.h | 7 | ||||
-rw-r--r-- | contrib/libs/pybind11/include/pybind11/detail/internals.h | 4 | ||||
-rw-r--r-- | contrib/libs/pybind11/include/pybind11/detail/type_caster_base.h | 3 | ||||
-rw-r--r-- | contrib/libs/pybind11/include/pybind11/pytypes.h | 2 | ||||
-rw-r--r-- | contrib/libs/pybind11/ya.make | 4 | ||||
-rw-r--r-- | contrib/python/clickhouse-connect/.dist-info/METADATA | 2 | ||||
-rw-r--r-- | contrib/python/clickhouse-connect/clickhouse_connect/__version__.py | 2 | ||||
-rw-r--r-- | contrib/python/clickhouse-connect/clickhouse_connect/driver/insert.py | 3 | ||||
-rw-r--r-- | contrib/python/clickhouse-connect/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/idna/py3/.dist-info/METADATA | 18 | ||||
-rw-r--r-- | contrib/python/idna/py3/README.rst | 12 | ||||
-rw-r--r-- | contrib/python/idna/py3/idna/core.py | 8 | ||||
-rw-r--r-- | contrib/python/idna/py3/idna/package_data.py | 2 | ||||
-rw-r--r-- | contrib/python/idna/py3/tests/test_idna.py | 1 | ||||
-rw-r--r-- | contrib/python/idna/py3/ya.make | 2 |
16 files changed, 46 insertions, 30 deletions
diff --git a/contrib/libs/pybind11/include/pybind11/detail/class.h b/contrib/libs/pybind11/include/pybind11/detail/class.h index ff06297297..790afe52ca 100644 --- a/contrib/libs/pybind11/include/pybind11/detail/class.h +++ b/contrib/libs/pybind11/include/pybind11/detail/class.h @@ -9,8 +9,8 @@ #pragma once -#include "../attr.h" -#include "../options.h" +#include <pybind11/attr.h> +#include <pybind11/options.h> PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) PYBIND11_NAMESPACE_BEGIN(detail) diff --git a/contrib/libs/pybind11/include/pybind11/detail/common.h b/contrib/libs/pybind11/include/pybind11/detail/common.h index 3711116fad..1f97eea91c 100644 --- a/contrib/libs/pybind11/include/pybind11/detail/common.h +++ b/contrib/libs/pybind11/include/pybind11/detail/common.h @@ -11,11 +11,11 @@ #define PYBIND11_VERSION_MAJOR 2 #define PYBIND11_VERSION_MINOR 13 -#define PYBIND11_VERSION_PATCH 4 +#define PYBIND11_VERSION_PATCH 5 // Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html // Additional convention: 0xD = dev -#define PYBIND11_VERSION_HEX 0x020D0400 +#define PYBIND11_VERSION_HEX 0x020D0500 // Define some generic pybind11 helper macros for warning management. // @@ -527,6 +527,8 @@ PYBIND11_WARNING_POP } \endrst */ +PYBIND11_WARNING_PUSH +PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments") #define PYBIND11_MODULE(name, variable, ...) \ static ::pybind11::module_::module_def PYBIND11_CONCAT(pybind11_module_def_, name) \ PYBIND11_MAYBE_UNUSED; \ @@ -547,6 +549,7 @@ PYBIND11_WARNING_POP PYBIND11_CATCH_INIT_EXCEPTIONS \ } \ void PYBIND11_CONCAT(pybind11_init_, name)(::pybind11::module_ & (variable)) +PYBIND11_WARNING_POP PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) diff --git a/contrib/libs/pybind11/include/pybind11/detail/internals.h b/contrib/libs/pybind11/include/pybind11/detail/internals.h index 6a04bb2194..7d846e40e4 100644 --- a/contrib/libs/pybind11/include/pybind11/detail/internals.h +++ b/contrib/libs/pybind11/include/pybind11/detail/internals.h @@ -12,10 +12,10 @@ #include "common.h" #if defined(PYBIND11_SIMPLE_GIL_MANAGEMENT) -# include "../gil.h" +# include <pybind11/gil.h> #endif -#include "../pytypes.h" +#include <pybind11/pytypes.h> #include <exception> #include <mutex> diff --git a/contrib/libs/pybind11/include/pybind11/detail/type_caster_base.h b/contrib/libs/pybind11/include/pybind11/detail/type_caster_base.h index 53366edbe4..188d6458b3 100644 --- a/contrib/libs/pybind11/include/pybind11/detail/type_caster_base.h +++ b/contrib/libs/pybind11/include/pybind11/detail/type_caster_base.h @@ -9,7 +9,8 @@ #pragma once -#include "../pytypes.h" +#include <pybind11/pytypes.h> + #include "common.h" #include "descr.h" #include "internals.h" diff --git a/contrib/libs/pybind11/include/pybind11/pytypes.h b/contrib/libs/pybind11/include/pybind11/pytypes.h index 8b6cbabf15..6b47fad171 100644 --- a/contrib/libs/pybind11/include/pybind11/pytypes.h +++ b/contrib/libs/pybind11/include/pybind11/pytypes.h @@ -1274,6 +1274,7 @@ protected: using pointer = arrow_proxy<const handle>; sequence_fast_readonly(handle obj, ssize_t n) : ptr(PySequence_Fast_ITEMS(obj.ptr()) + n) {} + sequence_fast_readonly() = default; // NOLINTNEXTLINE(readability-const-return-type) // PR #3263 reference dereference() const { return *ptr; } @@ -1296,6 +1297,7 @@ protected: using pointer = arrow_proxy<const sequence_accessor>; sequence_slow_readwrite(handle obj, ssize_t index) : obj(obj), index(index) {} + sequence_slow_readwrite() = default; reference dereference() const { return {obj, static_cast<size_t>(index)}; } void increment() { ++index; } diff --git a/contrib/libs/pybind11/ya.make b/contrib/libs/pybind11/ya.make index ba7ffe2d30..54b64a24c0 100644 --- a/contrib/libs/pybind11/ya.make +++ b/contrib/libs/pybind11/ya.make @@ -6,9 +6,9 @@ LICENSE(BSD-3-Clause) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(2.13.4) +VERSION(2.13.5) -ORIGINAL_SOURCE(https://github.com/pybind/pybind11/archive/v2.13.4.tar.gz) +ORIGINAL_SOURCE(https://github.com/pybind/pybind11/archive/v2.13.5.tar.gz) ADDINCL( GLOBAL contrib/libs/pybind11/include diff --git a/contrib/python/clickhouse-connect/.dist-info/METADATA b/contrib/python/clickhouse-connect/.dist-info/METADATA index f18cfc7fe4..e001706076 100644 --- a/contrib/python/clickhouse-connect/.dist-info/METADATA +++ b/contrib/python/clickhouse-connect/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: clickhouse-connect -Version: 0.7.18 +Version: 0.7.19 Summary: ClickHouse Database Core Driver for Python, Pandas, and Superset Home-page: https://github.com/ClickHouse/clickhouse-connect Author: ClickHouse Inc. diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py index 7233ef650a..d9d76edb88 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py @@ -1 +1 @@ -version = '0.7.18' +version = '0.7.19' diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/driver/insert.py b/contrib/python/clickhouse-connect/clickhouse_connect/driver/insert.py index c7861b3077..39a306cdc4 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/driver/insert.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/driver/insert.py @@ -117,7 +117,8 @@ class InsertContext(BaseQueryContext): sample = [data[j][i] for j in range(0, self.row_count, sample_freq)] d_size = d_type.data_size(sample) row_size += d_size - return 1 << (21 - int(log(row_size, 2))) + shift_size = (21 - int(log(row_size, 2))) + return 1 if shift_size < 0 else 1 << (21 - int(log(row_size, 2))) def next_block(self) -> Generator[InsertBlock, None, None]: while True: diff --git a/contrib/python/clickhouse-connect/ya.make b/contrib/python/clickhouse-connect/ya.make index 9ed576f193..0fe2ab62b4 100644 --- a/contrib/python/clickhouse-connect/ya.make +++ b/contrib/python/clickhouse-connect/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(0.7.18) +VERSION(0.7.19) LICENSE(Apache-2.0) diff --git a/contrib/python/idna/py3/.dist-info/METADATA b/contrib/python/idna/py3/.dist-info/METADATA index b28f6ecdd5..a04a7f9657 100644 --- a/contrib/python/idna/py3/.dist-info/METADATA +++ b/contrib/python/idna/py3/.dist-info/METADATA @@ -1,9 +1,9 @@ Metadata-Version: 2.1 Name: idna -Version: 3.7 +Version: 3.8 Summary: Internationalized Domain Names in Applications (IDNA) Author-email: Kim Davies <kim+pypi@gumleaf.org> -Requires-Python: >=3.5 +Requires-Python: >=3.6 Description-Content-Type: text/x-rst Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers @@ -13,7 +13,6 @@ Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 @@ -21,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Internet :: Name Service (DNS) @@ -115,7 +115,9 @@ This library provides one such mapping that was developed by the Unicode Consortium. Known as `Unicode IDNA Compatibility Processing <https://unicode.org/reports/tr46/>`_, it provides for both a regular mapping for typical applications, as well as a transitional mapping to -help migrate from older IDNA 2003 applications. +help migrate from older IDNA 2003 applications. Strings are +preprocessed according to Section 4.4 “Preprocessing for IDNA2008” +prior to the IDNA operations. For example, “Königsgäßchen” is not a permissible label as *LATIN CAPITAL LETTER K* is not allowed (nor are capital letters in general). @@ -215,7 +217,7 @@ Additional Notes * **Packages**. The latest tagged release version is published in the `Python Package Index <https://pypi.org/project/idna/>`_. -* **Version support**. This library supports Python 3.5 and higher. +* **Version support**. This library supports Python 3.6 and higher. As this library serves as a low-level toolkit for a variety of applications, many of which strive for broad compatibility with older Python versions, there is no rush to remove older interpreter support. @@ -223,9 +225,9 @@ Additional Notes maintenance burden has become too high. * **Python 2**. Python 2 is supported by version 2.x of this library. - While active development of the version 2.x series has ended, notable - issues being corrected may be backported to 2.x. Use "idna<3" in your - requirements file if you need this library for a Python 2 application. + Use "idna<3" in your requirements file if you need this library for + a Python 2 application. Be advised that these versions are no longer + actively developed. * **Testing**. The library has a test suite based on each rule of the IDNA specification, as well as tests that are provided as part of the diff --git a/contrib/python/idna/py3/README.rst b/contrib/python/idna/py3/README.rst index a4f1f71e72..5f5bd3820e 100644 --- a/contrib/python/idna/py3/README.rst +++ b/contrib/python/idna/py3/README.rst @@ -83,7 +83,9 @@ This library provides one such mapping that was developed by the Unicode Consortium. Known as `Unicode IDNA Compatibility Processing <https://unicode.org/reports/tr46/>`_, it provides for both a regular mapping for typical applications, as well as a transitional mapping to -help migrate from older IDNA 2003 applications. +help migrate from older IDNA 2003 applications. Strings are +preprocessed according to Section 4.4 “Preprocessing for IDNA2008” +prior to the IDNA operations. For example, “Königsgäßchen” is not a permissible label as *LATIN CAPITAL LETTER K* is not allowed (nor are capital letters in general). @@ -183,7 +185,7 @@ Additional Notes * **Packages**. The latest tagged release version is published in the `Python Package Index <https://pypi.org/project/idna/>`_. -* **Version support**. This library supports Python 3.5 and higher. +* **Version support**. This library supports Python 3.6 and higher. As this library serves as a low-level toolkit for a variety of applications, many of which strive for broad compatibility with older Python versions, there is no rush to remove older interpreter support. @@ -191,9 +193,9 @@ Additional Notes maintenance burden has become too high. * **Python 2**. Python 2 is supported by version 2.x of this library. - While active development of the version 2.x series has ended, notable - issues being corrected may be backported to 2.x. Use "idna<3" in your - requirements file if you need this library for a Python 2 application. + Use "idna<3" in your requirements file if you need this library for + a Python 2 application. Be advised that these versions are no longer + actively developed. * **Testing**. The library has a test suite based on each rule of the IDNA specification, as well as tests that are provided as part of the diff --git a/contrib/python/idna/py3/idna/core.py b/contrib/python/idna/py3/idna/core.py index 0dae61acdb..69b66ef781 100644 --- a/contrib/python/idna/py3/idna/core.py +++ b/contrib/python/idna/py3/idna/core.py @@ -240,8 +240,12 @@ def check_label(label: Union[str, bytes, bytearray]) -> None: if intranges_contain(cp_value, idnadata.codepoint_classes['PVALID']): continue elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTJ']): - if not valid_contextj(label, pos): - raise InvalidCodepointContext('Joiner {} not allowed at position {} in {}'.format( + try: + if not valid_contextj(label, pos): + raise InvalidCodepointContext('Joiner {} not allowed at position {} in {}'.format( + _unot(cp_value), pos+1, repr(label))) + except ValueError: + raise IDNAError('Unknown codepoint adjacent to joiner {} at position {} in {}'.format( _unot(cp_value), pos+1, repr(label))) elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTO']): if not valid_contexto(label, pos): diff --git a/contrib/python/idna/py3/idna/package_data.py b/contrib/python/idna/py3/idna/package_data.py index ed81113363..79aa47c5e2 100644 --- a/contrib/python/idna/py3/idna/package_data.py +++ b/contrib/python/idna/py3/idna/package_data.py @@ -1,2 +1,2 @@ -__version__ = '3.7' +__version__ = '3.8' diff --git a/contrib/python/idna/py3/tests/test_idna.py b/contrib/python/idna/py3/tests/test_idna.py index 81afb32258..0641eeb3dc 100644 --- a/contrib/python/idna/py3/tests/test_idna.py +++ b/contrib/python/idna/py3/tests/test_idna.py @@ -270,6 +270,7 @@ class IDNATests(unittest.TestCase): self.assertRaises(idna.IDNAError, decode, b'xn--') self.assertRaises(idna.IDNAError, decode, b'\x8d\xd2') self.assertRaises(idna.IDNAError, decode, b'A.A.0.a.a.A.0.a.A.A.0.a.A.0A.2.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.A.A.a.A.A.B.A.A.a.A.A.0.a.A.a.a.A.A.0.a.A.0.A.a.A0.a.a.A.0.a.fB.A.A.a.A.A.B.0A.A.a.A.A.B.A.A.a.A.A.a.A.A.B.A.A.a.A.0.a.B.A.A.a.A.B.A.a.A.A.5.a.A.0.a.Ba.A.B.A.A.a.A.0.a.Xn--B.A.A.A.a') + self.assertRaises(idna.IDNAError, decode, b'xn--ukba655qaaaa14431eeaaba.c') if __name__ == '__main__': unittest.main() diff --git a/contrib/python/idna/py3/ya.make b/contrib/python/idna/py3/ya.make index 6d08b94b1b..cad55a092e 100644 --- a/contrib/python/idna/py3/ya.make +++ b/contrib/python/idna/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(3.7) +VERSION(3.8) LICENSE(BSD-3-Clause) |