Skip to content

Commit

Permalink
4.x - fix for botocore 1.33.2 (based off Pull Request #1206 made for …
Browse files Browse the repository at this point in the history
…5.x branch) (#1235)
  • Loading branch information
canopus1io authored May 20, 2024
1 parent b0c37e6 commit ba49719
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
5 changes: 5 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release Notes
=============

v4.4.1
----------
* Fix compatibility with botocore 1.33.2 (#1235)


v4.4.0
----------
* Update for botocore 1.28 private API change (#1130) which caused the following exception::
Expand Down
4 changes: 3 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.[signals]
sphinx-rtd-theme==0.4.3
sphinx>=5
sphinx-rtd-theme==1.1.1
sphinx-issues
2 changes: 1 addition & 1 deletion pynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""
__author__ = 'Jharrod LaFon'
__license__ = 'MIT'
__version__ = '4.4.0'
__version__ = '4.4.1'
4 changes: 3 additions & 1 deletion pynamodb/connection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ def _make_api_call(self, operation_name, operation_kwargs):
'has_streaming_input': operation_model.has_streaming_input,
'auth_type': operation_model.auth_type,
}
endpoint_url, additional_headers = self.client._resolve_endpoint_ruleset(
endpoint_url, additional_headers, *rest = self.client._resolve_endpoint_ruleset(
operation_model, operation_kwargs, request_context
)
if rest and rest[0]:
request_context['endpoint_properties'] = rest[0]
request_dict = self.client._convert_to_request_dict(
api_params=operation_kwargs,
operation_model=operation_model,
Expand Down

0 comments on commit ba49719

Please sign in to comment.