Skip to content

Commit 6528f8b

Browse files
authored
Merge branch 'master' into script-path
2 parents 2b58b04 + 3015410 commit 6528f8b

File tree

98 files changed

+2342
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2342
-486
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Feature request
3-
about: Suggest an improvement for this library
3+
about: Suggest new functionality for this library
44
title: ''
55
labels: ''
66
assignees: ''
77

88
---
99

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
**Describe the feature you'd like**
11+
A clear and concise description of the functionality you want.
1212

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
13+
**How would this feature be used? Please describe.**
14+
A clear and concise description of the use case for this feature. Please provide an example, if possible.
1515

1616
**Describe alternatives you've considered**
1717
A clear and concise description of any alternative solutions or features you've considered.

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _Put an `x` in the boxes that apply. You can also fill these out after creating
1212

1313
- [ ] I have read the [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md) doc
1414
- [ ] I used the commit message format described in [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md#committing-your-change)
15-
- [ ] I have passed the region in to any/all clients that I've initialized as part of this change.
15+
- [ ] I have passed the region in to all S3 and STS clients that I've initialized as part of this change.
1616
- [ ] I have updated any necessary documentation, including [READMEs](https://github.com/aws/sagemaker-python-sdk/blob/master/README.rst) and [API docs](https://github.com/aws/sagemaker-python-sdk/tree/master/doc) (if appropriate)
1717

1818
#### Tests

.pylintrc

+10-9
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,22 @@ confidence=
7676
# --disable=W"
7777
disable=
7878
C0330, # Black disagrees with and explicitly violates this: https://github.com/python/black/issues/48
79-
too-many-locals,
79+
abstract-method, # TODO: Fix abstract methods
8080
arguments-differ,
81-
too-many-lines,
81+
cyclic-import, # TODO: Resolve cyclic imports
8282
fixme,
83-
too-many-arguments,
8483
invalid-name,
85-
too-many-instance-attributes,
86-
len-as-condition, # TODO: Enable this check once pylint 2.4.0 is released and consumed due to the fix in https://github.com/PyCQA/pylint/issues/2684
8784
import-error, # Since we run Pylint before any of our builds in tox, this will always fail
88-
protected-access, # TODO: Fix access
89-
abstract-method, # TODO: Fix abstract methods
90-
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
91-
cyclic-import, # TODO: Resolve cyclic imports
85+
import-outside-toplevel,
9286
no-self-use, # TODO: Convert methods to functions where appropriate
87+
protected-access, # TODO: Fix access
88+
signature-differs, # TODO: fix kwargs
89+
too-many-arguments,
9390
too-many-branches, # TODO: Simplify or ignore as appropriate
91+
too-many-instance-attributes,
92+
too-many-lines,
93+
too-many-locals,
94+
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
9495

9596
[REPORTS]
9697
# Set the output format. Available formats are text, parseable, colorized, msvs

CHANGELOG.md

+152
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,157 @@
11
# Changelog
22

3+
## v1.69.0 (2020-07-09)
4+
5+
### Features
6+
7+
* Add ModelClientConfig Fields for Batch Transform
8+
9+
### Documentation Changes
10+
11+
* add KFP Processing component
12+
13+
## v1.68.0 (2020-07-07)
14+
15+
### Features
16+
17+
* add spot instance support for AlgorithmEstimator
18+
19+
### Documentation Changes
20+
21+
* add xgboost documentation for inference
22+
23+
## v1.67.1.post0 (2020-07-01)
24+
25+
### Documentation Changes
26+
27+
* add Step Functions SDK info
28+
29+
## v1.67.1 (2020-06-30)
30+
31+
### Bug Fixes and Other Changes
32+
33+
* add deprecation warnings for estimator.delete_endpoint() and tuner.delete_endpoint()
34+
35+
## v1.67.0 (2020-06-29)
36+
37+
### Features
38+
39+
* Apache Airflow integration for SageMaker Processing Jobs
40+
41+
### Bug Fixes and Other Changes
42+
43+
* fix punctuation in warning message
44+
45+
### Testing and Release Infrastructure
46+
47+
* address warnings about pytest custom marks, error message checking, and yaml loading
48+
* mark long-running cron tests
49+
* fix tox test dependencies and bump coverage threshold to 86%
50+
51+
## v1.66.0 (2020-06-25)
52+
53+
### Features
54+
55+
* add 3.8 as supported python version
56+
57+
### Testing and Release Infrastructure
58+
59+
* upgrade airflow to latest stable version
60+
* update feature request issue template
61+
62+
## v1.65.1.post1 (2020-06-24)
63+
64+
### Testing and Release Infrastructure
65+
66+
* add py38 to buildspecs
67+
68+
## v1.65.1.post0 (2020-06-22)
69+
70+
### Documentation Changes
71+
72+
* document that Local Mode + local code doesn't support dependencies arg
73+
74+
### Testing and Release Infrastructure
75+
76+
* upgrade Sphinx to 3.1.1
77+
78+
## v1.65.1 (2020-06-18)
79+
80+
### Bug Fixes and Other Changes
81+
82+
* remove include_package_data=True from setup.py
83+
84+
### Documentation Changes
85+
86+
* add some clarification to Processing docs
87+
88+
### Testing and Release Infrastructure
89+
90+
* specify what kinds of clients in PR template
91+
92+
## v1.65.0 (2020-06-17)
93+
94+
### Features
95+
96+
* support for describing hyperparameter tuning job
97+
98+
### Bug Fixes and Other Changes
99+
100+
* update distributed GPU utilization warning message
101+
* set logs to False if wait is False in AutoML
102+
* workflow passing spot training param to training job
103+
104+
## v1.64.1 (2020-06-16)
105+
106+
### Bug Fixes and Other Changes
107+
108+
* include py38 tox env and some dependency upgrades
109+
110+
## v1.64.0 (2020-06-15)
111+
112+
### Features
113+
114+
* add support for SKLearn 0.23
115+
116+
## v1.63.0 (2020-06-12)
117+
118+
### Features
119+
120+
* Allow selecting inference response content for automl generated models
121+
* Support for multi variant endpoint invocation with target variant param
122+
123+
### Documentation Changes
124+
125+
* improve docstring and remove unavailable links
126+
127+
## v1.62.0 (2020-06-11)
128+
129+
### Features
130+
131+
* Support for multi variant endpoint invocation with target variant param
132+
133+
### Bug Fixes and Other Changes
134+
135+
* Revert "feature: Support for multi variant endpoint invocation with target variant param (#1571)"
136+
* make instance_type optional for prepare_container_def
137+
* docs: workflows navigation
138+
139+
### Documentation Changes
140+
141+
* fix typo in MXNet documentation
142+
143+
## v1.61.0 (2020-06-09)
144+
145+
### Features
146+
147+
* Use boto3 DEFAULT_SESSION when no boto3 session specified.
148+
149+
### Bug Fixes and Other Changes
150+
151+
* remove v2 Session warnings
152+
* upgrade smdebug-rulesconfig to 0.1.4
153+
* explicitly handle arguments in create_model for sklearn and xgboost
154+
3155
## v1.60.2 (2020-05-29)
4156

5157
### Bug Fixes and Other Changes

README.rst

+13-9
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ SageMaker Python SDK is tested on:
9696
- Python 2.7
9797
- Python 3.6
9898
- Python 3.7
99+
- Python 3.8
99100

100101
AWS Permissions
101102
~~~~~~~~~~~~~~~
@@ -123,8 +124,8 @@ You can install the libraries needed to run the tests by running :code:`pip inst
123124

124125

125126
We run unit tests with tox, which is a program that lets you run unit tests for multiple Python versions, and also make sure the
126-
code fits our style guidelines. We run tox with Python 2.7, 3.6 and 3.7, so to run unit tests
127-
with the same configuration we do, you'll need to have interpreters for Python 2.7, Python 3.6 and Python 3.7 installed.
127+
code fits our style guidelines. We run tox with Python 2.7, 3.6, 3.7, and 3.8, so to run unit tests
128+
with the same configuration we do, you'll need to have interpreters for Python 2.7, Python 3.6, Python 3.7, and Python 3.8 installed.
128129

129130
To run the unit tests with tox, run:
130131

@@ -164,23 +165,26 @@ You can also run them in parallel:
164165
Building Sphinx docs
165166
~~~~~~~~~~~~~~~~~~~~
166167

167-
Setup a Python environment with ``sphinx`` and ``sagemaker``:
168+
Setup a Python environment, and install the dependencies listed in ``doc/requirements.txt``:
168169

169170
::
170171

172+
# conda
171173
conda create -n sagemaker python=3.7
172174
conda activate sagemaker
173-
conda install sphinx==2.2.2
174-
pip install sagemaker --user
175+
conda install --file doc/requirements.txt
175176

176-
Install the Read The Docs theme:
177+
# pip
178+
pip install -r doc/requirements.txt
177179

178-
::
179180

180-
pip install sphinx_rtd_theme --user
181+
Clone/fork the repo, and install your local version:
182+
183+
::
181184

185+
pip install --upgrade .
182186

183-
Clone/fork the repo, ``cd`` into the ``sagemaker-python-sdk/doc`` directory and run:
187+
Then ``cd`` into the ``sagemaker-python-sdk/doc`` directory and run:
184188

185189
::
186190

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.60.3.dev0
1+
1.69.1.dev0

buildspec-localmodetests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ phases:
1111

1212
# local mode tests
1313
- start_time=`date +%s`
14-
- execute-command-if-has-matching-changes "tox -e py27,py37 -- tests/integ -m local_mode --durations 50" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-localmodetests.yml"
15-
- ./ci-scripts/displaytime.sh 'py27,py37 local mode' $start_time
14+
- execute-command-if-has-matching-changes "tox -e py27,py38 -- tests/integ -m local_mode --durations 50" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-localmodetests.yml"
15+
- ./ci-scripts/displaytime.sh 'py27,py38 local mode' $start_time

buildspec-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ phases:
1818
# run unit tests
1919
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
2020
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
21-
tox -e py27,py36,py37 -- tests/unit
21+
tox -e py27,py36,py37,py38 -- tests/unit
2222

2323
# run a subset of the integration tests
2424
- IGNORE_COVERAGE=- tox -e py36 -- tests/integ -m canary_quick -n 64 --boxed --reruns 2

buildspec-unittests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ phases:
1818
- start_time=`date +%s`
1919
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
2020
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
21-
tox -e py27,py36,py37 --parallel all -- tests/unit
22-
- ./ci-scripts/displaytime.sh 'py27,py36,py37 unit' $start_time
21+
tox -e py27,py36,py37,py38 --parallel all -- tests/unit
22+
- ./ci-scripts/displaytime.sh 'py27,py36,py37,py38 unit' $start_time

buildspec.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ phases:
1111

1212
# run integration tests
1313
- start_time=`date +%s`
14-
- execute-command-if-has-matching-changes "python3.7 -u ci-scripts/queue_build.py" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
14+
- execute-command-if-has-matching-changes "python3.8 -u ci-scripts/queue_build.py" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
1515
- ./ci-scripts/displaytime.sh 'build queue' $start_time
1616

1717
- start_time=`date +%s`
1818
- |
19-
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py37 -- tests/integ -m \"not local_mode\" -n 512 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
20-
- ./ci-scripts/displaytime.sh 'py37 tests/integ' $start_time
19+
execute-command-if-has-matching-changes "env -u AWS_DEFAULT_REGION tox -e py38 -- tests/integ -m \"not local_mode\" -n 512 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{\"region_name\": \"us-east-2\"}'" "tests/integ" "tests/scripts" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"
20+
- ./ci-scripts/displaytime.sh 'py38 tests/integ' $start_time
2121

2222
post_build:
2323
finally:

0 commit comments

Comments
 (0)