From b5c829129a7cec8ea61569f4e6a83543b64fdc65 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Wed, 2 Oct 2019 10:52:14 -0400 Subject: [PATCH] Fix a constant name Change-Id: I0f8f53b2f8debd68ae74acb732cfe577aa725235 Signed-off-by: Tommy Carpenter --- src/bindings/rmr-python/docs/Changelog.rst | 17 ++++++++++++++++- src/bindings/rmr-python/rmr/rmr.py | 8 +++----- src/bindings/rmr-python/setup.py | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/bindings/rmr-python/docs/Changelog.rst b/src/bindings/rmr-python/docs/Changelog.rst index 721143b..b565641 100644 --- a/src/bindings/rmr-python/docs/Changelog.rst +++ b/src/bindings/rmr-python/docs/Changelog.rst @@ -7,6 +7,21 @@ The format is based on `Keep a Changelog `__ and this project adheres to `Semantic Versioning `__. + +[0.13.2] - 10/2/2019 +-------------------- + +:: + + * Fix a constant name (RMRFL_MT_CALL) + +[0.13.1] - 10/1/2019 +-------------------- + +:: + + * Correct unit test bug in rmr-python. With RMR 1.8.x connections are forced to be asynch by default to prevent kubernetes blocking the attempt for minutes. However, the asynch nature of connections makes unit tests concerned with the ability to send and receive messages non-deterministic as some connections are established before the first message is sent, and others are not. This change ensures that unit tests establish connections in a synchronous manner which ensures that the first send will not be rejected by NNG due to a pending connection. + [0.13.0] - 9/27/2019 -------------------- @@ -14,7 +29,7 @@ Versioning `__. * Add a helpers module to provide extensions and helper functions such as receive all queued messages. * Enhance unit test to check only for RMR constants which are needed. * Correct unprintable characters in documentation. - + [0.12.0] - 8/23/2019 -------------------- diff --git a/src/bindings/rmr-python/rmr/rmr.py b/src/bindings/rmr-python/rmr/rmr.py index 00f6e71..8c9ff5a 100644 --- a/src/bindings/rmr-python/rmr/rmr.py +++ b/src/bindings/rmr-python/rmr/rmr.py @@ -69,7 +69,7 @@ def _get_mapping_dict(cache={}): RMR_ERR_TIMEOUT 12 message processing call timed out RMR_ERR_UNSET 13 the message hasn't been populated with a transport buffer RMR_ERR_TRUNC 14 received message likely truncated - RMR_ERR_INITFAILED 15 initialisation of something (probably message) failed + RMR_ERR_INITFAILED 15 initialization of something (probably message) failed """ if cache: @@ -105,11 +105,9 @@ _RCONST = _get_constants() # TODO: Are there others that will be useful? RMR_MAX_RCV_BYTES = _RCONST["RMR_MAX_RCV_BYTES"] - -RMRFL_NONE = _RCONST.get("RMRFL_MTCALL", 0x02) # initialisation flags +RMRFL_MTCALL = _RCONST.get("RMRFL_MTCALL", 0x02) # initialization flags RMRFL_NONE = _RCONST.get("RMRFL_NONE", 0x0) - -RMR_OK = _RCONST["RMR_OK"] # useful state constants +RMR_OK = _RCONST["RMR_OK"] # useful state constants RMR_ERR_TIMEOUT = _RCONST["RMR_ERR_TIMEOUT"] RMR_ERR_RETRY = _RCONST["RMR_ERR_RETRY"] diff --git a/src/bindings/rmr-python/setup.py b/src/bindings/rmr-python/setup.py index 59368d4..c1b3148 100644 --- a/src/bindings/rmr-python/setup.py +++ b/src/bindings/rmr-python/setup.py @@ -32,7 +32,7 @@ def _long_descr(): setup( name="rmr", - version="0.13.1", + version="0.13.2", packages=find_packages(), author="Tommy Carpenter, E. Scott Daniels", description="Python wrapper for RIC RMR", -- 2.16.6