From aa4c8a2145015649bb75b35916d963786c69e5c2 Mon Sep 17 00:00:00 2001 From: Vlad Emelianov Date: Wed, 16 Aug 2023 17:57:35 +0300 Subject: [PATCH] Update to 0.19.0 --- awscrt-stubs/mqtt.pyi | 3 + awscrt-stubs/mqtt5.pyi | 25 ++++++++ poetry.lock | 132 ++++++++++++++++++++--------------------- pyproject.toml | 23 ++----- 4 files changed, 99 insertions(+), 84 deletions(-) diff --git a/awscrt-stubs/mqtt.pyi b/awscrt-stubs/mqtt.pyi index b34f54a..b46e91c 100644 --- a/awscrt-stubs/mqtt.pyi +++ b/awscrt-stubs/mqtt.pyi @@ -10,12 +10,15 @@ from awscrt.http import HttpRequest as HttpRequest from awscrt.io import ClientBootstrap as ClientBootstrap from awscrt.io import ClientTlsContext as ClientTlsContext from awscrt.io import SocketOptions as SocketOptions +from awscrt.mqtt5 import QoS as Mqtt5QoS class QoS(IntEnum): AT_MOST_ONCE: int AT_LEAST_ONCE: int EXACTLY_ONCE: int + def to_mqtt5(self) -> Mqtt5QoS: ... + class ConnectReturnCode(IntEnum): ACCEPTED: int UNACCEPTABLE_PROTOCOL_VERSION: int diff --git a/awscrt-stubs/mqtt5.pyi b/awscrt-stubs/mqtt5.pyi index 29b19f8..5072781 100644 --- a/awscrt-stubs/mqtt5.pyi +++ b/awscrt-stubs/mqtt5.pyi @@ -5,17 +5,28 @@ from typing import Any, Callable, Optional, Sequence from awscrt import NativeResource as NativeResource from awscrt import exceptions as exceptions +from awscrt.exceptions import AwsCrtError from awscrt.http import HttpProxyOptions as HttpProxyOptions from awscrt.http import HttpRequest as HttpRequest from awscrt.io import ClientBootstrap as ClientBootstrap from awscrt.io import ClientTlsContext as ClientTlsContext from awscrt.io import SocketOptions as SocketOptions +from awscrt.mqtt import ( + Connection, + ConnectReturnCode, + OnConnectionClosedData, + OnConnectionFailureData, + OnConnectionSuccessData, +) +from awscrt.mqtt import QoS as Mqtt3QoS class QoS(IntEnum): AT_MOST_ONCE: int AT_LEAST_ONCE: int EXACTLY_ONCE: int + def to_mqtt3(self) -> Mqtt3QoS: ... + class ConnectReasonCode(IntEnum): SUCCESS: int UNSPECIFIED_ERROR: int @@ -357,3 +368,17 @@ class Client(NativeResource): def subscribe(self, subscribe_packet: SubscribePacket) -> Future[SubackPacket]: ... def unsubscribe(self, unsubscribe_packet: UnsubscribePacket) -> Future[UnsubackPacket]: ... def get_stats(self) -> Future[OperationStatisticsData]: ... + def new_connection( + self, + on_connection_interrupted: Optional[Callable[[Connection, AwsCrtError], None]] = ..., + on_connection_resumed: Optional[ + Callable[[Connection, ConnectReturnCode, bool], None] + ] = ..., + on_connection_success: Optional[ + Callable[[Connection, OnConnectionSuccessData], None] + ] = ..., + on_connection_failure: Optional[ + Callable[[Connection, OnConnectionFailureData], None] + ] = ..., + on_connection_closed: Optional[Callable[[Connection, OnConnectionClosedData], None]] = ..., + ) -> Connection: ... diff --git a/poetry.lock b/poetry.lock index 1918c9c..a6ee56c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,54 +1,54 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.0 and should not be changed by hand. [[package]] name = "awscrt" -version = "0.17.0" +version = "0.19.0" description = "A common runtime for AWS Python projects" optional = false python-versions = ">=3.7" files = [ - {file = "awscrt-0.17.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:9c5bc5edc24b59154852824c724154303cb1871b989fd890a70d484a6218653d"}, - {file = "awscrt-0.17.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9df4d8b0ccee475115fac090199117b028c82104a6e0a0fe72f037b4ed734b11"}, - {file = "awscrt-0.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9485b512a994336dd2663459f41f0dfa1fbd90de2d069534a838690ebfdb2811"}, - {file = "awscrt-0.17.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:2765538a142be06f0eeae532b9ff290ee69dc702d47783a676beb53a83c07ec4"}, - {file = "awscrt-0.17.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:d2f8d26619ca92c71cdf90060278648f0ea7bc1d0939e7bff63d041f3a4c9a18"}, - {file = "awscrt-0.17.0-cp310-cp310-win32.whl", hash = "sha256:a8ec52d966a1c6fd8392c6f91291567c2dbbfe828a2ca159a1769b468d86f383"}, - {file = "awscrt-0.17.0-cp310-cp310-win_amd64.whl", hash = "sha256:88d2c72e0c43050d8160585d13f13f7247c08cdd0af1200cdd699fffcb6161f7"}, - {file = "awscrt-0.17.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:b39e0c8fbec39ef413860203b3e3d7ba98b173c86668cf6a2849500066835121"}, - {file = "awscrt-0.17.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9d242758cea086156ee84be66c2effff1a05c76fef5a53428fe49747426d6d4"}, - {file = "awscrt-0.17.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9ba10b9463e355e3f66a0ee0edd7122fe22cb9a9927ac528b70ee1e11c2147f"}, - {file = "awscrt-0.17.0-cp311-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:90692c47ec9c0ae3e6691f627ad3024aec836befa01e2c1eb8b924571d591a76"}, - {file = "awscrt-0.17.0-cp311-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:2e0b5f31244787d5c7ebfab50921a4395edf6f5757941ba7378fd7263d311ee0"}, - {file = "awscrt-0.17.0-cp311-abi3-win32.whl", hash = "sha256:cab0d4111e3878fea46797d902e70238c277bb3e8cb748046f72ac0f425cdb77"}, - {file = "awscrt-0.17.0-cp311-abi3-win_amd64.whl", hash = "sha256:57bb97cbe70e1ee8a7e296e8371d519f83055f0f09e120b8b7d10de611e81fcb"}, - {file = "awscrt-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:fc767f9ecd9a6b03881553152d448a2c395b32003371b81156f24f0321395c23"}, - {file = "awscrt-0.17.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb41061d0a151268702eebffb74db5ecec507de6d067a05564afdcb41ef565d5"}, - {file = "awscrt-0.17.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4f5b049fb45a60db54f32c017df90e0bc36036537868844a468fc70f6bf1e63"}, - {file = "awscrt-0.17.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f2a5941b07b092a4fb45d4bd573a82362a54e4bd4ec69afbb808eb2d92307c07"}, - {file = "awscrt-0.17.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:7f13a89e73a40de3d1bbc30d6077db8266bc3c9d4e565c149b32af4c8a9920ad"}, - {file = "awscrt-0.17.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:94e575ed8064c2f495d6277946826214e1c5b653dae24ccdcaeef1441f1ae6dc"}, - {file = "awscrt-0.17.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:b7d1e2e0bd2fdc4fc18eb6c538b4b9be0ee93ccf40ae9e6b5afd7136bca898f1"}, - {file = "awscrt-0.17.0-cp37-cp37m-win32.whl", hash = "sha256:2e86f6cfa7d869f6a412d80888d6f1ea38e075ed379af60ad5710bd2a8438e0a"}, - {file = "awscrt-0.17.0-cp37-cp37m-win_amd64.whl", hash = "sha256:266c649ab76af5a8060c1291d603aacc6994924a6f2fd4db758f9a42fb92b6ad"}, - {file = "awscrt-0.17.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d143936d56efb1d0056bfc73bab634059fb9828d6bed24b080337f78f89d8a3c"}, - {file = "awscrt-0.17.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3729a55c8af4a236971e1d83aac31bee484c3b7b284d91dd829a79464d56b53c"}, - {file = "awscrt-0.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f12b34cbf79361789a1e6fff6fcc5f64dfb268da17ce8e38e6153e4587922737"}, - {file = "awscrt-0.17.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:89192e455c1efff30aa51641604d702a88211baaf821080d120f2eefe23a5942"}, - {file = "awscrt-0.17.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:12714dd8f8ca83908023abda0cf8569b51f10f3829c40586afb784f127bd9ebf"}, - {file = "awscrt-0.17.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:b384e138dafcbe2e7f97bcb070246db9d04798331959cf56343a62d6fe8910ac"}, - {file = "awscrt-0.17.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:495fb3b4172313122a714f8560067c8025b78b03bc77f6f349ff1f44d81df1ca"}, - {file = "awscrt-0.17.0-cp38-cp38-win32.whl", hash = "sha256:69433fd077a44bc45f64404ade91a3a2e0a1e055a02f7f5931e7023f11150843"}, - {file = "awscrt-0.17.0-cp38-cp38-win_amd64.whl", hash = "sha256:27b3f4e77de90ba835ba7976f0dd7e0119ef33c9b17a9570f603e2bf06e1209f"}, - {file = "awscrt-0.17.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:99160f223b3008702b4877ce1654108ab94556c1c53dd44dfd7ca09d535531ba"}, - {file = "awscrt-0.17.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:97c02a60ffcc1b862c190ccd6bb73c43aec6e4138900d61fdb6e8860ea7a2f7b"}, - {file = "awscrt-0.17.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:776e46ed4a6a48367895af1cbec166d2e82c6a18c5b269e4a5ecb2a040ee5888"}, - {file = "awscrt-0.17.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6e8a0803fdd9b5b49a51a043b907b55a0e60b2c042a869754a72d8dd32582a10"}, - {file = "awscrt-0.17.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:11666a5f9debc99ae14d86e3b538ee7186cebd33431ece473874f06a169bd359"}, - {file = "awscrt-0.17.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:6fffa6414c879ebe2bca3daaef6f683e0d99d099281836a93585ece71445a2c1"}, - {file = "awscrt-0.17.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4d702d79755c00af28fa51ee2e161918967d6a51fd5e675e1c523ae243993f99"}, - {file = "awscrt-0.17.0-cp39-cp39-win32.whl", hash = "sha256:2b4852bd726bb9805a89d589b46ce068f4d429f74efeef794adf6d99b04859b5"}, - {file = "awscrt-0.17.0-cp39-cp39-win_amd64.whl", hash = "sha256:11fc02ea5021af16d35512093407a3440760358168ed0fb523de515733e61835"}, - {file = "awscrt-0.17.0.tar.gz", hash = "sha256:244ae41917d86024ff9f7bf39b15d83cb596d9c73b8a7fa68932751a3c9a3cfc"}, + {file = "awscrt-0.19.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3ee389c5257a8a83ed77d7208895b04b13bd9aa165f2bb07ff3678fa6377ddd5"}, + {file = "awscrt-0.19.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaedb9141d167d448b0b486bf9d9d535514ef59e811144cb62b3e251d1097c40"}, + {file = "awscrt-0.19.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c0a0b7ac7ba9cfb20fcfc0f6bbca561bf4f56797d30be0a788887a5a5343304"}, + {file = "awscrt-0.19.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:a3cc245157e02714aec7f6344f79e79dd94966a6546a92fc42d57f66392f8ffa"}, + {file = "awscrt-0.19.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e9ffe9b5e194edba5bc043c00b5950bbf3fd3c9641e3d6e027bc2e13c823264e"}, + {file = "awscrt-0.19.0-cp310-cp310-win32.whl", hash = "sha256:1183b6e5351020fce012843564692ceec38d953d406469b8ef81bdd0567f6231"}, + {file = "awscrt-0.19.0-cp310-cp310-win_amd64.whl", hash = "sha256:5f58dd0e03156df7137083bb3f4bac520c7c53e58cb1e314a6bc7ea541832b6d"}, + {file = "awscrt-0.19.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:cd2dbc5a1b92ba76406352452daee2f9c9e4005381e01fffd34e7a8957439225"}, + {file = "awscrt-0.19.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b3d6d3fba8f60c2700c34162d3f617a6d679bb84dcfa341b4dcdb89771c3899"}, + {file = "awscrt-0.19.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4295fe8eef2865dc11f903043683900eeb3228eaa03d80353fbc0444d385913"}, + {file = "awscrt-0.19.0-cp311-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:4b45602181db807270d26683c7689c57ee78dc2121d781c09ee115f5ec0796bc"}, + {file = "awscrt-0.19.0-cp311-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:fcc3147c0e8e0bd723e1b5def4315a05968df99ef995a71b25fc671478c9c862"}, + {file = "awscrt-0.19.0-cp311-abi3-win32.whl", hash = "sha256:3b17063b1c066a9bd0c39bd220de67dc9bb8dcfc656ecee89b9b113fac511d09"}, + {file = "awscrt-0.19.0-cp311-abi3-win_amd64.whl", hash = "sha256:07e2bc2bd5747762819d8b3088c6fbc5c9c2c9d655b176affe83db6c57b76746"}, + {file = "awscrt-0.19.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:84d0d7882f6910739f2d64f7a2dcd9873a52b7ad9097350e739ce935cbe94d35"}, + {file = "awscrt-0.19.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5bf8d7ed82c2f952aed8599166160841c6cbb76eb024322701da2a9ae62e2abb"}, + {file = "awscrt-0.19.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2efee9e99e6f6a61447390bbf02c72f524ae67148aec36e80e52041ed798a40f"}, + {file = "awscrt-0.19.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b6e70597d0912deaeba4d9c28296fa7e79500fde9856b0af0f31582dcb9d11f4"}, + {file = "awscrt-0.19.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:8efe04df5e1d367941606dedb15eac9af34364e8878c73294a79ffd655e834cd"}, + {file = "awscrt-0.19.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:dbc38e714dba1f4d5788cb1106dbe2017c35199a7ac366fb7f63f72a0c485b6c"}, + {file = "awscrt-0.19.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:0a27b50f12192b628be18d4f9baf9a6f49197980d23074940f17a860ee404237"}, + {file = "awscrt-0.19.0-cp37-cp37m-win32.whl", hash = "sha256:40f0ec78fdc5b13c108833a310c33440fe71faa4ad54ffd374784c37ca7f5b15"}, + {file = "awscrt-0.19.0-cp37-cp37m-win_amd64.whl", hash = "sha256:c69d0d9aa28eb25494ed90e98c0acf81296cd4377d36070bc1631d0ab86e198b"}, + {file = "awscrt-0.19.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:90deee8384c28c1fc177c97bc27afcee5487eaba750ad70d895aed40d64d6f0d"}, + {file = "awscrt-0.19.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4ecdd473945dea8836b85a2cdaa86c3a4e368dccdc1c6c40eaa2729da3817d7"}, + {file = "awscrt-0.19.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:189272fa4a11bc5db1514c01ab4f508eb7b60544ff00530e5906653ec124dc0a"}, + {file = "awscrt-0.19.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0f588a307b6acc16b34365688b39c85dc12d3615d3db6d5250fa6b6427c98c6a"}, + {file = "awscrt-0.19.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:eda9392d383f77754a760361229d5f0a0dfa8efcadfc0338dbafa6182509659c"}, + {file = "awscrt-0.19.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ee5bffa1256054464b37ac0558e4bed07fae567d0ee3d8cbce7b881d01048c61"}, + {file = "awscrt-0.19.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:fed90a09b924e9767e80a7487240d3c2f3cf8fdea84050cb75e24ef9f0dfacc9"}, + {file = "awscrt-0.19.0-cp38-cp38-win32.whl", hash = "sha256:32af87a7e9903df5b0466de89d8943cdfe4d5c88363f658c268c38510740ee9d"}, + {file = "awscrt-0.19.0-cp38-cp38-win_amd64.whl", hash = "sha256:9e1ced6daecbde6c1513685a2cbab18bbbb0ed1b10f151204286cc1760da900c"}, + {file = "awscrt-0.19.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:adfd7c6d9e2b585d46ebca746f4996b01a138efce69a46a87cc3c1cadc9d7f6b"}, + {file = "awscrt-0.19.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0670a2c7b85ce5ccff4a29bb33c9add96f595bbff416e2f16f972dcf27ec05cc"}, + {file = "awscrt-0.19.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e6baccbe4c95823491bd6db6150dca72869f7a532ed63dcb393a14424b9d516"}, + {file = "awscrt-0.19.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ce7ea12bc61825354ef9997ab7d0a671432d3a499968d0a409bf28eb00813b62"}, + {file = "awscrt-0.19.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:4ed0e6657012388abe9eedc0b2d7457e5d096e461b2d99d465356e4cf370ec27"}, + {file = "awscrt-0.19.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:7f39f3cd970687b20b6ce2f3a6d4aae496536989503cbf2c4c29eae3815583e8"}, + {file = "awscrt-0.19.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ee79bf0094d2895bcc725d19f73067285cb490b7ad4ac5fa84effb6f9a7daba1"}, + {file = "awscrt-0.19.0-cp39-cp39-win32.whl", hash = "sha256:55d429455dae6ebdaa0e6c1f51f58329f9873a26b98abbc802495be4aea4431a"}, + {file = "awscrt-0.19.0-cp39-cp39-win_amd64.whl", hash = "sha256:4bafff97b87b77e4661254daceb5fed7aec9b8014b5cf46137954ffbc45cdd9d"}, + {file = "awscrt-0.19.0.tar.gz", hash = "sha256:4390c0fa5ada39e6d46208c50e3d755d43d96355fca83ff577081e3282f6499d"}, ] [[package]] @@ -123,19 +123,19 @@ files = [ [[package]] name = "flake8" -version = "6.0.0" +version = "6.1.0" description = "the modular source code checker: pep8 pyflakes and co" optional = false python-versions = ">=3.8.1" files = [ - {file = "flake8-6.0.0-py2.py3-none-any.whl", hash = "sha256:3833794e27ff64ea4e9cf5d410082a8b97ff1a06c16aa3d2027339cd0f1195c7"}, - {file = "flake8-6.0.0.tar.gz", hash = "sha256:c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181"}, + {file = "flake8-6.1.0-py2.py3-none-any.whl", hash = "sha256:ffdfce58ea94c6580c77888a86506937f9a1a227dfcd15f245d694ae20a6b6e5"}, + {file = "flake8-6.1.0.tar.gz", hash = "sha256:d5b3857f07c030bdb5bf41c7f53799571d75c4491748a3adcd47de929e34cd23"}, ] [package.dependencies] mccabe = ">=0.7.0,<0.8.0" -pycodestyle = ">=2.10.0,<2.11.0" -pyflakes = ">=3.0.0,<3.1.0" +pycodestyle = ">=2.11.0,<2.12.0" +pyflakes = ">=3.1.0,<3.2.0" [[package]] name = "isort" @@ -250,13 +250,13 @@ files = [ [[package]] name = "pathspec" -version = "0.11.1" +version = "0.11.2" description = "Utility library for gitignore style pattern matching of file paths." optional = false python-versions = ">=3.7" files = [ - {file = "pathspec-0.11.1-py3-none-any.whl", hash = "sha256:d8af70af76652554bd134c22b3e8a1cc46ed7d91edcdd721ef1a0c51a84a5293"}, - {file = "pathspec-0.11.1.tar.gz", hash = "sha256:2798de800fa92780e33acca925945e9a19a133b715067cf165b8866c15a31687"}, + {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"}, + {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"}, ] [[package]] @@ -272,39 +272,39 @@ files = [ [[package]] name = "platformdirs" -version = "3.9.1" +version = "3.10.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." optional = false python-versions = ">=3.7" files = [ - {file = "platformdirs-3.9.1-py3-none-any.whl", hash = "sha256:ad8291ae0ae5072f66c16945166cb11c63394c7a3ad1b1bc9828ca3162da8c2f"}, - {file = "platformdirs-3.9.1.tar.gz", hash = "sha256:1b42b450ad933e981d56e59f1b97495428c9bd60698baab9f3eb3d00d5822421"}, + {file = "platformdirs-3.10.0-py3-none-any.whl", hash = "sha256:d7c24979f292f916dc9cbf8648319032f551ea8c49a4c9bf2fb556a02070ec1d"}, + {file = "platformdirs-3.10.0.tar.gz", hash = "sha256:b45696dab2d7cc691a3226759c0d3b00c47c8b6e293d96f6436f733303f77f6d"}, ] [package.extras] -docs = ["furo (>=2023.5.20)", "proselint (>=0.13)", "sphinx (>=7.0.1)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"] -test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.3.1)", "pytest-cov (>=4.1)", "pytest-mock (>=3.10)"] +docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.1)", "sphinx-autodoc-typehints (>=1.24)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)"] [[package]] name = "pycodestyle" -version = "2.10.0" +version = "2.11.0" description = "Python style guide checker" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "pycodestyle-2.10.0-py2.py3-none-any.whl", hash = "sha256:8a4eaf0d0495c7395bdab3589ac2db602797d76207242c17d470186815706610"}, - {file = "pycodestyle-2.10.0.tar.gz", hash = "sha256:347187bdb476329d98f695c213d7295a846d1152ff4fe9bacb8a9590b8ee7053"}, + {file = "pycodestyle-2.11.0-py2.py3-none-any.whl", hash = "sha256:5d1013ba8dc7895b548be5afb05740ca82454fd899971563d2ef625d090326f8"}, + {file = "pycodestyle-2.11.0.tar.gz", hash = "sha256:259bcc17857d8a8b3b4a2327324b79e5f020a13c16074670f9c8c8f872ea76d0"}, ] [[package]] name = "pyflakes" -version = "3.0.1" +version = "3.1.0" description = "passive checker of Python programs" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "pyflakes-3.0.1-py2.py3-none-any.whl", hash = "sha256:ec55bf7fe21fff7f1ad2f7da62363d749e2a470500eab1b555334b67aa1ef8cf"}, - {file = "pyflakes-3.0.1.tar.gz", hash = "sha256:ec8b276a6b60bd80defed25add7e439881c19e64850afd9b346283d4165fd0fd"}, + {file = "pyflakes-3.1.0-py2.py3-none-any.whl", hash = "sha256:4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774"}, + {file = "pyflakes-3.1.0.tar.gz", hash = "sha256:a0aae034c444db0071aa077972ba4768d40c830d9539fd45bf4cd3f8f6992efc"}, ] [[package]] @@ -381,4 +381,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "7a1739a82680011373e3c454c41659a9448a490907166090306a6a8a70d71064" +content-hash = "217e63234481a7d62ff10ff967c1117042117b6824607eda36934418871ff321" diff --git a/pyproject.toml b/pyproject.toml index 98c9895..c35c926 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,7 @@ [tool.black] line-length = 100 include = '(awscrt-stubs)/.*\.pyi?$' -target-version = [ - 'py37', - 'py38', - 'py39', - 'py310', -] +target-version = ['py37', 'py38', 'py39', 'py310'] preview = true [tool.isort] @@ -43,9 +38,7 @@ classifiers = [ "Typing :: Stubs Only", "Topic :: Software Development :: Libraries :: Python Modules", ] -packages = [ - { include = "awscrt-stubs" }, -] +packages = [{ include = "awscrt-stubs" }] include = [ "awscrt-stubs/py.typed", "awscrt-stubs/*.pyi", @@ -64,7 +57,7 @@ python = "^3.7" awscrt = "*" isort = { version = "*", python = ">=3.10" } black = { version = "*", python = ">=3.10" } -mypy = { version = "*", python = ">=3.10" } +mypy = { version = "1.4.1", python = ">=3.10" } flake8 = { version = "*", python = ">=3.10" } istub = { version = "*", python = ">=3.10" } @@ -73,14 +66,8 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.pyright] -include = [ - "awscrt-stubs", -] -exclude = [ - "**/__pycache__", - "tests", - "typestubs", -] +include = ["awscrt-stubs"] +exclude = ["**/__pycache__", "tests", "typestubs"] reportMissingImports = "error" reportMissingTypeStubs = false reportMissingTypeArgument = "error"