Skip to content

Commit 407b738

Browse files
Merge pull request #288 from awslabs/trs/release-3.2.4
Release v3.2.4
2 parents 303378a + 2e9cd33 commit 407b738

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

CHANGELOG.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### Release 3.2.4
2+
3+
This release makes retries more compatible with Python 3.12+.
4+
5+
#### Bug Fixes:
6+
* Only pass `int` to `random.randint()` to be compatible with breaking
7+
changes introduced in Python 3.12.
8+
* Pin `amazon.ion` in `requirements.txt` as well
9+
110
### Release 3.2.3
211

312
This release pins the Amazon Ion library to a compatible version.
@@ -56,36 +65,36 @@ Note: This version is a release candidate and may not be production ready.
5665

5766
* Fixed bug which leads to infinite number of retries when a transaction expires.
5867
* Fixed bug which causes transaction to remain open when an unknown exception is thrown inside execute_lambda.
59-
* Added a limit to the number of times the driver will try to get(from pool)/create a session.
68+
* Added a limit to the number of times the driver will try to get(from pool)/create a session.
6069

6170
### [Release 3.0.0-rc.1](https://github.com/awslabs/amazon-qldb-driver-python/releases/tag/v3.0.0-rc.1) (June 22, 2020)
6271
Note: This version is a release candidate and may not be production ready.
6372

6473
#### Breaking changes:
6574

66-
* [(#23)](https://github.com/awslabs/amazon-qldb-driver-python/issues/23) Moved Session pooling functionality to
75+
* [(#23)](https://github.com/awslabs/amazon-qldb-driver-python/issues/23) Moved Session pooling functionality to
6776
`QldbDriver` and removed `PooledQldbDriver`.
68-
* [(#28)](https://github.com/awslabs/amazon-qldb-driver-python/issues/28) Removed interfaces which allow developers to
77+
* [(#28)](https://github.com/awslabs/amazon-qldb-driver-python/issues/28) Removed interfaces which allow developers to
6978
get a session from the pool and execute transaction.
70-
* [(#29)](https://github.com/awslabs/amazon-qldb-driver-python/issues/29) Renamed `QldbDriver` property `pool_limit` to
79+
* [(#29)](https://github.com/awslabs/amazon-qldb-driver-python/issues/29) Renamed `QldbDriver` property `pool_limit` to
7180
`max_concurrent_transactions`.
7281
* [(#30)](https://github.com/awslabs/amazon-qldb-driver-python/issues/30) Removed `QldbDriver` property `pool_timeout`.
73-
* [(#31)](https://github.com/awslabs/amazon-qldb-driver-python/issues/31) Moved method `list_tables` to the driver
82+
* [(#31)](https://github.com/awslabs/amazon-qldb-driver-python/issues/31) Moved method `list_tables` to the driver
7483
instance
75-
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Removed `retry_indicator`
84+
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Removed `retry_indicator`
7685
from `QldbDriver.execute_lambda`.
77-
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Moved `retry_limit` from `QldbDriver` to
86+
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Moved `retry_limit` from `QldbDriver` to
7887
`RetryConfig`.
7988
[(#34)](https://github.com/awslabs/amazon-qldb-driver-python/issues/34) Removed `QldbDriver.execute_statement`.
8089

8190
#### New features:
8291

83-
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Added support for defining custom retry
92+
* [(#27)](https://github.com/awslabs/amazon-qldb-driver-python/issues/27) Added support for defining custom retry
8493
backoffs.
8594

86-
#### Announcements
95+
#### Announcements
8796

88-
* Dropping support for Python v3.4 and v3.5. Going forward the minimum Python version required will be v3.6 for Pyqldb 3.x
97+
* Dropping support for Python v3.4 and v3.5. Going forward the minimum Python version required will be v3.6 for Pyqldb 3.x
8998
series.
9099

91100

@@ -104,9 +113,9 @@ The driver requires Python 3.4 or later, earlier it was mentioned to be 3.x
104113
* Added support for python native types for [execute_statement](https://amazon-qldb-driver-python.readthedocs.io/en/v2.0.0/reference/session/pooled_qldb_session.html#pyqldb.session.pooled_qldb_session.PooledQldbSession.execute_statement) parameters
105114

106115
#### Unavoidable breaking changes:
107-
* In order to be more pythonic, the method signature of [execute_statement](https://amazon-qldb-driver-python.readthedocs.io/en/v2.0.0/reference/session/pooled_qldb_session.html#pyqldb.session.pooled_qldb_session.PooledQldbSession.execute_statement) has
108-
been changed to receive *args. This is a breaking change for any application
109-
that uses 1.0.0-rc.2 version of the driver. Starting v2.0, applications should
116+
* In order to be more pythonic, the method signature of [execute_statement](https://amazon-qldb-driver-python.readthedocs.io/en/v2.0.0/reference/session/pooled_qldb_session.html#pyqldb.session.pooled_qldb_session.PooledQldbSession.execute_statement) has
117+
been changed to receive *args. This is a breaking change for any application
118+
that uses 1.0.0-rc.2 version of the driver. Starting v2.0, applications should
110119
pass execute_statement parameters as comma separated arguments instead of passing them as a list.
111120

112121
### Release 1.0.0-rc.2 (October 29, 2019)

pyqldb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
1010
# and limitations under the License.
1111

12-
__version__ = '3.2.3'
12+
__version__ = '3.2.4'

tests/unit/test_qldb_driver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ def test_get_read_ahead(self, mock_client):
433433
driver = QldbDriver(MOCK_LEDGER_NAME)
434434
self.assertEqual(driver.read_ahead, driver._read_ahead)
435435

436-
def test_get_retry_limit(self):
436+
@patch('pyqldb.driver.qldb_driver.client')
437+
def test_get_retry_limit(self, mock_client):
438+
mock_client.return_value = mock_client
437439
retry_limit = 4
438440
retry_config = RetryConfig(retry_limit=retry_limit)
439441
driver = QldbDriver(MOCK_LEDGER_NAME, retry_config=retry_config)

0 commit comments

Comments
 (0)