From fde8c119e81fcce5c0e585bafdd935b23c273bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Fri, 18 Oct 2024 17:49:26 +0200 Subject: [PATCH] ver bump --- coolamqp/__init__.py | 2 +- docs/index.rst | 1 + docs/whatsnew.rst | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docs/whatsnew.rst diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index 77f1c8e..a790050 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1 +1 @@ -__version__ = '1.5.0' +__version__ = '2.0.0a1' diff --git a/docs/index.rst b/docs/index.rst index f7237ce..626a0b7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -5,6 +5,7 @@ Welcome to CoolAMQP's documentation! :maxdepth: 2 :caption: Contents + whatsnew cluster tutorial caveats diff --git a/docs/whatsnew.rst b/docs/whatsnew.rst new file mode 100644 index 0000000..4e2b86d --- /dev/null +++ b/docs/whatsnew.rst @@ -0,0 +1,30 @@ +What's new? What's new? +=========== + +CoolAMQP 2.0.0 marks a slight philosophy shift. Whereas 1.x used auto-generated UUID names, 2.0 will let the server +pick their names for themselves. + +It also forbids some combinations of Queue arguments, and makes the default values more palatable, so for example +a naked :class:`coolamqp.objects.Queue` will be anonymous, non-durable, exclusive and auto-delete. + +Queues +------ + +Following queues will fail now: + +* auto_delete and durable +* anonymous and durables +* anonymous and not exclusives +* anonymous and not auto_delete +* auto_delete and not exclusive and not anonymous + +Following will emit a warning: + +* exclusive and auto_delete - DeprecationWarning, since they're removing it in RabbitMQ 4.0 +* not anonymous, auto_delete and not exclusive - UserWarning, since this makes little sense + +Anonymous queues +---------------- + +They are back. Besides, anything that you will pass to :meth:`coolamqp.clustering.Cluster.consume` will be declared, be +it an exchange, a queue or such shit. This allows you to declare anonymous queues. -- GitLab