Skip to content

Commit

Permalink
Python: fix input_range params and export init_logger (#1723)
Browse files Browse the repository at this point in the history
* Fix input_range params and export init_logger

* Set release date
  • Loading branch information
Thoralf-M committed Dec 1, 2023
1 parent d2daecd commit c72a00f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion bindings/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 1.1.2 - 2023-MM-DD
## 1.1.2 - 2023-12-01

### Added

- `Utils:verify_transaction_semantic()`;
- `Account::prepare_claim_outputs()` method;

### Fixed

- Missing `init_logger` export;
- `Client::build_and_post_block()` with custom input range;

## 1.1.1 - 2023-10-31

### Added
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iota-sdk-python"
version = "1.1.1"
version = "1.1.2"
authors = ["IOTA Stiftung"]
edition = "2021"
description = "Python bindings for the IOTA SDK library"
Expand Down
7 changes: 4 additions & 3 deletions bindings/python/iota_sdk/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,12 @@ def build_and_post_block(self,
is_start_set = 'input_range_start' in options
is_end_set = 'input_range_end' in options
if is_start_set or is_end_set:
options['range'] = {}
options['input_range'] = {}
if is_start_set:
options['range']['start'] = options.pop('start')
options['input_range']['start'] = options.pop(
'input_range_start')
if is_end_set:
options['range']['end'] = options.pop('end')
options['input_range']['end'] = options.pop('input_range_end')

options = humps.camelize(options)

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/iota_sdk/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=import-error, unused-import
from .iota_sdk import call_utils_method, call_secret_manager_method, create_secret_manager, destroy_wallet, create_client, create_wallet, listen_wallet, get_client_from_wallet, get_secret_manager_from_wallet, call_wallet_method, call_client_method, listen_mqtt
from .iota_sdk import call_utils_method, call_secret_manager_method, create_secret_manager, destroy_wallet, create_client, create_wallet, listen_wallet, get_client_from_wallet, get_secret_manager_from_wallet, call_wallet_method, call_client_method, init_logger, listen_mqtt
2 changes: 1 addition & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_py_version_cfgs():

setup(
name="iota_sdk",
version="1.1.1",
version="1.1.2",
classifiers=[
"License :: SPDX-License-Identifier :: Apache-2.0",
"Intended Audience :: Developers",
Expand Down

0 comments on commit c72a00f

Please sign in to comment.