From eff02db4ace2d3e92d013aacb73f35c9d50dc4ba Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sun, 2 Jul 2023 22:40:50 -0400 Subject: [PATCH] build: Iterate the version number --- docs/changelog.rst | 15 +++++++-------- docs/conf.py | 2 +- setup.cfg | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index bb08179..7928599 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,7 +9,6 @@ Added - :class:`yapw.clients.Async` - :class:`yapw.clients.AsyncConsumer` -- :meth:`yapw.clients.Base.add_signal_handlers` - :meth:`yapw.clients.Base.add_signal_handler` - :meth:`yapw.clients.Base.interrupt` - :meth:`yapw.clients.Base.state` @@ -20,24 +19,24 @@ Added Changed ~~~~~~~ -**BREAKING CHANGES** +**BREAKING CHANGES:** - Use subclasses instead of mixins, to share logic between synchronous and asynchronous clients with less code. - Move ``__init__`` arguments from other classes to the :class:`~yapw.clients.Base` class. - Move the ``publish`` method from the :class:`~yapw.clients.Blocking` class to the :class:`~yapw.clients.Base` class. +- Move and rename ``install_signal_handlers`` from ``yapw.ossignal`` to :class:`yapw.clients.Base.add_signal_handlers` class. +- Move the ``default_decode`` method from the :mod:`yapw.decorators` module to the :mod:`yapw.util` module. +- Rename the ``callback`` positional argument for the consumer callback to ``on_message_callback``, to avoid ambiguity. +- Rename the ``yapw.methods.blocking`` module to the :mod:`yapw.methods` module. - Merge the ``Publisher`` and ``Threaded`` classes into the :class:`~yapw.clients.Blocking` class. - Merge the ``Durable`` and ``Transient`` classes into the :class:`~yapw.clients.Blocking` class, as a ``durable`` keyword argument. -- Rename the ``yapw.methods.blocking`` module to the :mod:`yapw.methods` module. -- Rename the ``callback`` positional argument for the consumer callback to ``on_message_callback``, to avoid ambiguity. -- Move and rename ``install_signal_handlers`` from ``yapw.ossignal`` to :class:`yapw.clients.Base.add_signal_handlers` class. -- Move the ``default_decode`` method to the :mod:`yapw.util` module. Non-breaking changes: - Pending futures are cancelled during graceful shutdown. -- The signal handlers for the :class:`~yapw.clients.Blocking` class are installed before the consumer starts, instead of during initialization. - Use callbacks to communicate with the main thread from other threads, instead of sending SIGUSR1 or SIGUSR2 signals. -- Do not catch the ``pika.exceptions.ConnectionClosedByBroker`` exception when using the blocking connection adapter (can't be caught). +- The signal handlers for the :class:`~yapw.clients.Blocking` class are installed before the consumer starts, instead of during initialization. +- Don't attempt to catch the ``pika.exceptions.ConnectionClosedByBroker`` exception in the :meth:`yapw.clients.Blocking.consume` method (can't be caught). - Drop Python 3.7, 3.8, 3.9, 3.10 support. 0.0.13 (2022-01-28) diff --git a/docs/conf.py b/docs/conf.py index edfe7b3..f878725 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ author = "Open Contracting Partnership" # The short X.Y version -version = "0.0.13" +version = "0.1.0" # The full version, including alpha/beta/rc tags release = version diff --git a/setup.cfg b/setup.cfg index 74f7e49..a548382 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ extend-ignore = E203 [metadata] name = yapw -version = 0.0.13 +version = 0.1.0 author = Open Contracting Partnership author_email = data@open-contracting.org license = BSD