Skip to content

Commit 4fdd3ce

Browse files
authored
Merge branch 'master' into sklearn-bump-version
2 parents 58a07ae + 30310ba commit 4fdd3ce

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v1.61.0 (2020-06-09)
4+
5+
### Features
6+
7+
* Use boto3 DEFAULT_SESSION when no boto3 session specified.
8+
9+
### Bug Fixes and Other Changes
10+
11+
* remove v2 Session warnings
12+
* upgrade smdebug-rulesconfig to 0.1.4
13+
* explicitly handle arguments in create_model for sklearn and xgboost
14+
315
## v1.60.2 (2020-05-29)
416

517
### Bug Fixes and Other Changes

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.60.3.dev0
1+
1.61.1.dev0

src/sagemaker/session.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,6 @@ def upload_data(self, path, bucket=None, key_prefix="data", extra_args=None):
181181
``s3://{bucket name}/{key_prefix}``.
182182
"""
183183
# Generate a tuple for each file that we want to upload of the form (local_path, s3_key).
184-
LOGGER.warning(
185-
"'upload_data' method will be deprecated in favor of 'S3Uploader' class "
186-
"(https://sagemaker.readthedocs.io/en/stable/s3.html#sagemaker.s3.S3Uploader) "
187-
"in SageMaker Python SDK v2."
188-
)
189-
190184
files = []
191185
key_suffix = None
192186
if os.path.isdir(path):
@@ -236,12 +230,6 @@ def upload_string_as_file_body(self, body, bucket, key, kms_key=None):
236230
str: The S3 URI of the uploaded file.
237231
The URI format is: ``s3://{bucket name}/{key}``.
238232
"""
239-
LOGGER.warning(
240-
"'upload_string_as_file_body' method will be deprecated in favor of 'S3Uploader' class "
241-
"(https://sagemaker.readthedocs.io/en/stable/s3.html#sagemaker.s3.S3Uploader) "
242-
"in SageMaker Python SDK v2."
243-
)
244-
245233
if self.s3_resource is None:
246234
s3 = self.boto_session.resource("s3", region_name=self.boto_region_name)
247235
else:
@@ -3335,7 +3323,6 @@ def get_execution_role(sagemaker_session=None):
33353323
Returns:
33363324
(str): The role ARN
33373325
"""
3338-
33393326
if not sagemaker_session:
33403327
sagemaker_session = Session()
33413328
arn = sagemaker_session.get_caller_identity_arn()

0 commit comments

Comments
 (0)