Skip to content

Commit

Permalink
build: Iterate the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 3, 2023
1 parent 38f48c7 commit eff02db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eff02db

Please sign in to comment.