Skip to content

Commit 2792fcb

Browse files
authored
update: Update awscli version and remove related pins (#267)
* Update awscli, remove dependent pins * Update setup.py package versions to latest
1 parent 97be952 commit 2792fcb

File tree

5 files changed

+8
-28
lines changed

5 files changed

+8
-28
lines changed

docker/1.15.0/py2/Dockerfile.cpu

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ RUN pip install --no-cache-dir -U \
100100
keras_preprocessing==1.1.0 \
101101
requests==2.22.0 \
102102
keras==2.3.1 \
103-
# botocore requires python-dateutil<2.8.1
104-
"python-dateutil<2.8.1" \
105-
awscli==1.16.296 \
106103
mpi4py==3.0.2 \
107104
"cryptography>=2.3" \
108105
"sagemaker-tensorflow>=1.15,<1.16" \
@@ -111,10 +108,9 @@ RUN pip install --no-cache-dir -U \
111108
${TF_URL} \
112109
&& pip install --no-cache-dir -U \
113110
$FRAMEWORK_SUPPORT_INSTALLABLE \
111+
awscli==1.16.314 \
114112
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE \
115113
&& pip install --no-cache-dir -U \
116-
# awscli requires PyYAML<5.2
117-
"PyYAML<5.2" \
118114
horovod==0.18.2
119115

120116
COPY dockerd-entrypoint.py /usr/local/bin/dockerd-entrypoint.py

docker/1.15.0/py2/Dockerfile.gpu

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ RUN pip install --no-cache-dir -U \
133133
keras_preprocessing==1.1.0 \
134134
requests==2.22.0 \
135135
keras==2.3.1 \
136-
# botocore requires python-dateutil<2.8.1
137-
"python-dateutil<2.8.1" \
138-
awscli==1.16.296 \
139136
mpi4py==3.0.2 \
140137
"cryptography>=2.3" \
141138
"sagemaker-tensorflow>=1.15,<1.16" \
@@ -144,13 +141,12 @@ RUN pip install --no-cache-dir -U \
144141
${TF_URL} \
145142
&& pip install --no-cache-dir -U \
146143
$FRAMEWORK_SUPPORT_INSTALLABLE \
144+
awscli==1.16.314 \
147145
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE
148146

149147
# Install Horovod, temporarily using CUDA stubs
150148
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs \
151149
&& HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_WITH_TENSORFLOW=1 pip install --no-cache-dir \
152-
# awscli requires PyYAML<5.2
153-
"PyYAML<5.2" \
154150
horovod==0.18.2 \
155151
&& ldconfig
156152

docker/1.15.0/py3/Dockerfile.cpu

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ RUN pip3 --no-cache-dir install --upgrade \
8888
RUN ln -s $(which python3) /usr/local/bin/python \
8989
&& ln -s $(which pip3) /usr/bin/pip
9090

91-
# install PyYAML==5.1.2 to avoid conflict with latest awscli
92-
# python-dateutil==2.8.0 to satisfy botocore associated with latest awscli
9391
RUN pip install --no-cache-dir -U \
9492
numpy==1.17.4 \
9593
scipy==1.2.2 \
@@ -100,12 +98,9 @@ RUN pip install --no-cache-dir -U \
10098
keras_applications==1.0.8 \
10199
keras_preprocessing==1.1.0 \
102100
keras==2.3.1 \
103-
# botocore requires python-dateutil<2.8.1
104-
"python-dateutil<2.8.1" \
105101
requests==2.22.0 \
106102
smdebug==0.4.14 \
107103
sagemaker-experiments==0.1.3 \
108-
awscli==1.16.296 \
109104
mpi4py==3.0.2 \
110105
"cryptography>=2.3" \
111106
"sagemaker-tensorflow>=1.15,<1.16" \
@@ -114,11 +109,10 @@ RUN pip install --no-cache-dir -U \
114109
&& pip install --force-reinstall --no-cache-dir -U \
115110
${TF_URL} \
116111
&& pip install --force-reinstall --no-cache-dir -U \
117-
# awscli requires PyYAML<5.2
118-
"PyYAML<5.2" \
119112
horovod==0.18.2 \
120113
&& pip install --no-cache-dir -U \
121114
$FRAMEWORK_SUPPORT_INSTALLABLE \
115+
awscli==1.16.314 \
122116
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE
123117

124118
COPY dockerd-entrypoint.py /usr/local/bin/dockerd-entrypoint.py

docker/1.15.0/py3/Dockerfile.gpu

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ RUN ln -s $(which python3) /usr/local/bin/python \
125125

126126
COPY $FRAMEWORK_SUPPORT_INSTALLABLE .
127127

128-
# install PyYAML==5.1.2 to avoid conflict with latest awscli
129-
# python-dateutil==2.8.0 to satisfy botocore associated with latest awscli
130128
RUN pip install --no-cache-dir -U \
131129
numpy==1.17.4 \
132130
scipy==1.2.2 \
@@ -138,11 +136,8 @@ RUN pip install --no-cache-dir -U \
138136
keras_preprocessing==1.1.0 \
139137
requests==2.22.0 \
140138
keras==2.3.1 \
141-
# botocore requires python-dateutil<2.8.1
142-
"python-dateutil<2.8.1" \
143139
smdebug==0.4.14 \
144140
sagemaker-experiments==0.1.3 \
145-
awscli==1.16.296 \
146141
mpi4py==3.0.2 \
147142
"cryptography>=2.3" \
148143
"sagemaker-tensorflow>=1.15,<1.16" \
@@ -152,13 +147,12 @@ RUN pip install --no-cache-dir -U \
152147
${TF_URL} \
153148
&& pip install --no-cache-dir -U \
154149
$FRAMEWORK_SUPPORT_INSTALLABLE \
150+
awscli==1.16.314 \
155151
&& rm -f $FRAMEWORK_SUPPORT_INSTALLABLE
156152

157153
# Install Horovod, temporarily using CUDA stubs
158154
RUN ldconfig /usr/local/cuda-10.0/targets/x86_64-linux/lib/stubs \
159155
&& HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_WITH_TENSORFLOW=1 pip install --no-cache-dir \
160-
# awscli requires PyYAML<5.2
161-
"PyYAML<5.2" \
162156
horovod==0.18.2 \
163157
&& ldconfig
164158

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ def read_version():
5353
'Programming Language :: Python :: 3.6',
5454
],
5555

56-
install_requires=['sagemaker-containers>=2.4.6', 'numpy', 'scipy', 'sklearn',
56+
install_requires=['sagemaker-containers>=2.6.2', 'numpy', 'scipy', 'sklearn',
5757
'pandas', 'Pillow', 'h5py'],
5858
extras_require={
5959
'test': ['tox', 'flake8', 'pytest', 'pytest-cov', 'pytest-xdist', 'mock',
60-
'sagemaker==1.19.1', 'tensorflow<2.0', 'docker-compose', 'boto3==1.10.32',
61-
'six==1.13.0', 'python-dateutil>=2.1,<2.8.1', 'botocore==1.13.32',
62-
'requests-mock', 'awscli==1.16.296'],
60+
'sagemaker==1.50.1', 'tensorflow<2.0', 'docker-compose', 'boto3==1.10.50',
61+
'six==1.13.0', 'python-dateutil>=2.1,<2.8.1', 'botocore==1.13.50',
62+
'requests-mock', 'awscli==1.16.314'],
6363
'benchmark': ['click']
6464
},
6565
)

0 commit comments

Comments
 (0)