From 8d977c653223ce4748431efd8db649982c4fd073 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 25 Feb 2024 19:18:46 +0800 Subject: [PATCH 1/2] Bump version 0.4.18 --- CHANGES.rst | 8 ++++++++ setup.py | 2 +- thriftpy2/__init__.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 3f32bae..86264f8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,14 @@ Changelog 0.4.x ~~~~~ +Version 0.4.18 +-------------- + +- Make the import hook compatible with python3.12. +- Added a ``strict_decode`` option to all protocols to force all strings in response are decoded to ``str``. +- Allow annotations ``Union`` type. +- Fixed the `message_type` in oneway request. + Version 0.4.17 -------------- diff --git a/setup.py b/setup.py index 39f2b53..79e6e40 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,6 @@ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", @@ -106,6 +105,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ]) diff --git a/thriftpy2/__init__.py b/thriftpy2/__init__.py index 5afde43..881e2c3 100644 --- a/thriftpy2/__init__.py +++ b/thriftpy2/__init__.py @@ -5,7 +5,7 @@ from .hook import install_import_hook, remove_import_hook from .parser import load, load_module, load_fp -__version__ = '0.4.17' +__version__ = '0.4.18' __python__ = sys.version_info __all__ = ["install_import_hook", "remove_import_hook", "load", "load_module", "load_fp"] From 8beffc84f9d7ab8ea6e037ae63a14ade52466477 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 25 Feb 2024 23:16:40 +0800 Subject: [PATCH 2/2] Fix grammar error --- CHANGES.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 86264f8..84d45b2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,10 +7,10 @@ Changelog Version 0.4.18 -------------- -- Make the import hook compatible with python3.12. -- Added a ``strict_decode`` option to all protocols to force all strings in response are decoded to ``str``. -- Allow annotations ``Union`` type. -- Fixed the `message_type` in oneway request. +- Make the import hook compatible with Python3.12. +- Added a ``strict_decode`` option to all protocols to force all strings in the response to be decoded to ``str``. +- Allow annotations in the ``Union`` type. +- Fixed the ``message_type`` in oneway request. Version 0.4.17 --------------