diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..e384528 --- /dev/null +++ b/.clang-format @@ -0,0 +1 @@ +DisableFormat: true diff --git a/CHANGELOG.md b/CHANGELOG.md index da32253..fddb6f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,14 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [1.4.0] - 2025-02-09 - Significantly reduced awaitable object size by dynamically allocating it. - Reduced memory footprint by removing preallocated awaitable objects. - Objects returned by a PyAwaitable object's `__await__` are now garbage collected (*i.e.*, they don't leak with rare circular references). - Removed limit on number of stored callbacks or values. - Switched some user-error messages to `RuntimeError` instead of `SystemError`. -- Added `PyAwaitable_DeferAwait` for executing code when the awaitable object is called by the event loop. +- Added `PyAwaitable_DeferAwait` for executing code without a coroutine when the awaitable object is called by the event loop. ## [1.3.0] - 2024-10-26 diff --git a/setup.py b/setup.py index 5b6b99b..2a66a9a 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="pyawaitable", license="MIT", - version="1.4.0-dev", + version="1.4.0", ext_modules=[ Extension( "_pyawaitable", diff --git a/src/pyawaitable/__init__.py b/src/pyawaitable/__init__.py index f1541f8..c0416e6 100644 --- a/src/pyawaitable/__init__.py +++ b/src/pyawaitable/__init__.py @@ -12,7 +12,7 @@ from . import abi __all__ = "PyAwaitable", "include", "abi" -__version__ = "1.3.0" +__version__ = "1.4.0" __author__ = "Peter Bierma" PyAwaitable: Type = _PyAwaitableType diff --git a/src/pyawaitable/pyawaitable.h b/src/pyawaitable/pyawaitable.h index 5c62088..e3c4134 100644 --- a/src/pyawaitable/pyawaitable.h +++ b/src/pyawaitable/pyawaitable.h @@ -55,7 +55,8 @@ typedef struct _pyawaitable_abi ); int (*defer_await)( PyObject *aw, - defer_callback cb); + defer_callback cb + ); } PyAwaitableABI; #ifdef PYAWAITABLE_THIS_FILE_INIT