From 30fe3fa63cfc215ce5891401e4396c4b7d712e7a Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 13 Sep 2024 10:37:06 +0800 Subject: [PATCH] Add note about project archival. --- README.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.rst b/README.rst index f6cd194..47aaab1 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,29 @@ +# THIS PROJECT HAS BEEN ARCHIVED + +**With the release of `PyGObject 3.50.0 +`__, GBulb is no longer required**. +PyGObject now contains native integration with the Python event loop. If you +require asyncio support in your GTK app, we advise upgrading your project to use +PyGobject 3.50.0. + +Example usage of PyGObject with native asyncio support:: + + import asyncio + + import gi + gi.require_version("Gtk", "3.0") + + from gi.events import GLibEventLoopPolicy + from gi.repository import Gtk + + asyncio.set_event_loop_policy(GlibEventLoopPolicy()) + + app = Gtk.Application(...) + app.run() + +The last published version of this project (v0.6.6) is compatible with versions of +PyGObject prior to 3.50.0. + .. |pyversions| image:: https://img.shields.io/pypi/pyversions/gbulb.svg :target: https://pypi.python.org/pypi/gbulb :alt: Python Versions