Skip to content

Commit d595d99

Browse files
knikurebenieric
andauthored
feat: Support TensorFlow v2.14.0 and remove Py38 (#152)
* feat: Support TensorFlow v2.14.0 * Remove support for Py38 * update ubuntu version --------- Co-authored-by: Erick Benitez-Ramos <[email protected]>
1 parent 9f1569e commit d595d99

File tree

8 files changed

+18
-19
lines changed

8 files changed

+18
-19
lines changed

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SageMaker TensorFlow
66

77
This package contains SageMaker-specific extensions to TensorFlow, including the :python:`PipeModeDataset` class, that allows SageMaker Pipe Mode channels to be read using TensorFlow Datasets.
88

9-
This package supports Python 3.8-3.10 and TensorFlow versions 1.7 and higher, including 2.0-2.13.0.
9+
This package supports Python 3.9-3.10 and TensorFlow versions 1.7 and higher, including 2.0-2.14.0.
1010
For TensorFlow 1.x support, see the `master branch <https://github.com/aws/sagemaker-tensorflow-extensions>`_.
1111
``sagemaker-tensorflow`` releases for all supported versions are available on `PyPI <https://pypi.org/project/sagemaker-tensorflow/#history>`_.
1212

@@ -97,6 +97,10 @@ Please refer to below table for release support information:
9797
- Sagemaker TensorFlow Extensions Release Version
9898
- TensorFlow Release Version
9999
- Sagemaker TensorFlow Extentions Supported Python Versions
100+
* - 2.14.0.1.20.x
101+
- v1.20.x
102+
- 2.14.0
103+
- 3.9, 3.10
100104
* - 2.13.0.1.19.x
101105
- v1.19.x
102106
- 2.13.0

buildspec-deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,18 @@ version: 0.2
33
phases:
44
build:
55
commands:
6-
- PACKAGE_FILE_38="$CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker_tensorflow-*-cp38-*.whl"
76
- PACKAGE_FILE_39="$CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker_tensorflow-*-cp39-*.whl"
87
- PACKAGE_FILE_310="$CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker_tensorflow-*-cp310-*.whl"
98
# - PACKAGE_FILE_311="$CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker_tensorflow-*-cp311-*.whl"
109
- PYPI_USER=__token__
1110
- PYPI_PASSWORD=$(aws secretsmanager get-secret-value --secret-id /codebuild/pypi/sagemaker-python-sdk-token --query SecretString --output text)
1211

1312
- echo 'md5sum of python packages:'
14-
- md5sum $PACKAGE_FILE_38
1513
- md5sum $PACKAGE_FILE_39
1614
- md5sum $PACKAGE_FILE_310
1715
# - md5sum $PACKAGE_FILE_311
1816

1917
# publish to pypi
20-
- python3 -m twine upload --skip-existing $PACKAGE_FILE_38 -u $PYPI_USER -p $PYPI_PASSWORD
2118
- python3 -m twine upload --skip-existing $PACKAGE_FILE_39 -u $PYPI_USER -p $PYPI_PASSWORD
2219
- python3 -m twine upload --skip-existing $PACKAGE_FILE_310 -u $PYPI_USER -p $PYPI_PASSWORD
2320
# - python3 -m twine upload --skip-existing $PACKAGE_FILE_311 --sign -u $PYPI_USER -p $PYPI_PASSWORD

buildspec-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ phases:
2020
# - python3.11 -m cpplint --linelength=120 --filter=-build/c++11,-build/header_guard --extensions=cpp,hpp --quiet --recursive src/
2121

2222
# run tests
23-
- tox -e py38,py39,py310 -- test/
23+
- tox -e py39,py310 -- test/
2424
# - tox -e py38,py39,py310,py311 -- test/
2525

2626
# generate the distribution package
2727
- python setup.py sdist
2828
- |
29-
PYTHON_VERSIONS="python3.10 python3.9 python3.8"
29+
PYTHON_VERSIONS="python3.10 python3.9"
3030
for PYTHON in ${PYTHON_VERSIONS}; do
3131
$PYTHON -m pip install -U pip
32-
$PYTHON -m pip install wheel tensorflow==2.13.0 twine==1.11 cmake
32+
$PYTHON -m pip install wheel tensorflow==2.14.0 twine==1.11 cmake
3333
$PYTHON setup.py build bdist_wheel --plat-name manylinux1_x86_64
3434
done;
3535
@@ -38,7 +38,6 @@ phases:
3838

3939
artifacts:
4040
files:
41-
- dist/sagemaker_tensorflow-*-cp38-*.whl
4241
- dist/sagemaker_tensorflow-*-cp39-*.whl
4342
- dist/sagemaker_tensorflow-*-cp310-*.whl
4443
# - dist/sagemaker_tensorflow-*-cp311-*.whl

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ phases:
1313

1414
- python3.10 -m cpplint --linelength=120 --filter=-build/c++11 --extensions=cpp,hpp --quiet --recursive src/
1515

16-
- tox -e py38,py39,py310 -- test/
16+
- tox -e py39,py310 -- test/
1717
# - tox -e py38,py39,py310,py311 -- test/

create_integ_test_docker_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import glob
1010
import sys
1111

12-
TF_VERSION = "2.13.0"
12+
TF_VERSION = "2.14.0"
1313
REGION = "us-west-2"
1414
REPOSITORY_NAME = "sagemaker-tensorflow-extensions-test"
1515

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def build_extension(self, ext):
9999

100100
setup(
101101
name='sagemaker_tensorflow',
102-
version='2.13.0.1.19.1',
102+
version='2.14.0.1.20.0',
103103
description='Amazon Sagemaker specific TensorFlow extensions.',
104104
packages=find_packages(where='src', exclude=('test',)),
105105
package_dir={'': 'src'},
@@ -111,14 +111,13 @@ def build_extension(self, ext):
111111
license='Apache License 2.0',
112112
author='Amazon Web Services',
113113
maintainer='Amazon Web Services',
114-
python_requires=">= 3.8",
114+
python_requires=">= 3.9",
115115
classifiers=[
116116
"Development Status :: 5 - Production/Stable",
117117
"Intended Audience :: Developers",
118118
"Natural Language :: English",
119119
"License :: OSI Approved :: Apache Software License",
120120
"Programming Language :: Python",
121-
'Programming Language :: Python :: 3.8',
122121
'Programming Language :: Python :: 3.9',
123122
'Programming Language :: Python :: 3.10'
124123
# 'Programming Language :: Python :: 3.11'

test/integ/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM public.ecr.aws/lts/ubuntu:20.04
1+
FROM public.ecr.aws/lts/ubuntu:22.04
22

33
ARG device=cpu
4-
ARG tensorflow_version=2.13.0
4+
ARG tensorflow_version=2.14.0
55
ARG script
66
ARG python
77

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38,py39,py310,flake8,cpplint
2+
envlist = py39,py310,flake8,cpplint
33

44
skip_missing_interpreters = False
55

@@ -50,7 +50,7 @@ deps =
5050
pytest-xdist==2.3.0
5151
mock==4.0.3
5252
contextlib2==21.6.0
53-
tensorflow==2.13.0
53+
tensorflow==2.14.0
5454
awslogs==0.14.0
5555
docker==6.1.0
5656
cmake==3.21.2
@@ -61,7 +61,7 @@ deps =
6161
cmake==3.21.2
6262
flake8==3.9.2
6363
flake8-future-import==0.4.6
64-
tensorflow==2.13.0
64+
tensorflow==2.14.0
6565

6666
commands = flake8
6767

@@ -71,5 +71,5 @@ commands =
7171

7272
deps =
7373
cmake==3.21.2
74-
tensorflow==2.13.0
74+
tensorflow==2.14.0
7575
cpplint==1.5.5

0 commit comments

Comments
 (0)