Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Commit a017c6a

Browse files
laurenyunadiaya
authored andcommitted
Bump version to 2.4.4 (#170)
1 parent 9dbda56 commit a017c6a

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
CHANGELOG
33
=========
44

5-
2.4.4dev
6-
========
5+
2.4.4
6+
=====
77

88
* bug-fix: correctly set NGINX_PROXY_READ_TIMEOUT to match model_sever_timeout.
99
* enhancement: remove numpy version restriction.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def read(file_name):
4444

4545
setuptools.setup(
4646
name='sagemaker_containers',
47-
version='2.4.3',
47+
version='2.4.4',
4848
description='Open source library for creating containers to run on Amazon SageMaker.',
4949

5050
packages=packages,
@@ -73,7 +73,7 @@ def read(file_name):
7373
install_requires=required_packages,
7474

7575
extras_require={
76-
'test': ['tox', 'flake8', 'pytest', 'pytest-cov', 'mock', 'sagemaker==1.16.2']
76+
'test': ['tox', 'flake8==3.6.0', 'pytest', 'pytest-cov', 'mock', 'sagemaker==1.16.2']
7777
},
7878

7979
entry_points={

src/sagemaker_containers/_modules.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import importlib
1616
import os
1717
import shlex
18-
from subprocess import Popen
18+
import subprocess
1919
import sys
2020
import tarfile
2121
import textwrap
@@ -160,7 +160,7 @@ def download_and_install(uri, name=DEFAULT_MODULE_NAME, cache=True):
160160

161161

162162
def run(module_name, args=None, env_vars=None, wait=True, capture_error=False):
163-
# type: (str, list, dict, bool, bool) -> Popen
163+
# type: (str, list, dict, bool, bool) -> subprocess.Popen
164164
"""Run Python module as a script.
165165
166166
Search sys.path for the named module and execute its contents as the __main__ module.
@@ -252,7 +252,7 @@ def import_module(uri, name=DEFAULT_MODULE_NAME, cache=None): # type: (str, str
252252

253253

254254
def run_module(uri, args, env_vars=None, name=DEFAULT_MODULE_NAME, cache=None, wait=True, capture_error=False):
255-
# type: (str, list, dict, str, bool, bool, bool) -> Popen
255+
# type: (str, list, dict, str, bool, bool, bool) -> subprocess.Popen
256256
"""Download, prepare and executes a compressed tar file from S3 or provided directory as a module.
257257
258258
SageMaker Python SDK saves the user provided scripts as compressed tar files in S3

src/sagemaker_containers/_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
DEFAULT_FAILURE_CODE = 1
2626

2727

28-
def _exit_processes(exit_code):
28+
def _exit_processes(exit_code): # type: (int) -> None
2929
"""Exit main thread and child processes.
3030
3131
For more information:

test/functional/simple_flask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414

1515
from flask import Flask
16+
1617
app = Flask(__name__)
1718

1819

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ exclude =
1717
tests/data/
1818
venv/
1919
max-complexity = 15
20+
builtins = FileNotFoundError
21+
2022

2123
[testenv]
2224
passenv =
@@ -52,4 +54,3 @@ deps =
5254
pep8-naming
5355
flake8-import-order
5456
commands = flake8
55-

0 commit comments

Comments
 (0)