Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']
which-tests: ["not e2e", "e2e"]
dependency-selector: ["NIGHTLY", "DEFAULT"]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu]
python-version: ['cp39', 'cp310']
python-version: ['cp39', 'cp310', 'cp311']

runs-on: ${{ format('{0}-latest', matrix.os) }}
steps:
Expand Down
12 changes: 8 additions & 4 deletions nightly_test_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ alembic==1.13.3
annotated-types==0.7.0
anyio==4.6.0
apache-airflow==2.10.3
apache-beam==2.50.0
apache-beam==2.50.0; python_version < "3.11"
apache-beam==2.53.0; python_version >= "3.11"
apispec==6.6.1
argcomplete==3.5.1
argon2-cffi==23.1.0
Expand Down Expand Up @@ -125,7 +126,7 @@ greenlet==3.1.1
grpc-google-iam-v1==0.13.1
grpc-interceptor==0.15.4
grpcio==1.66.2
grpcio-status==1.48.2
grpcio-status==1.62.3
gunicorn==23.0.0
h11==0.14.0
h5py==3.12.1
Expand Down Expand Up @@ -246,9 +247,11 @@ promise==2.3
prompt_toolkit==3.0.48
propcache==0.2.0
proto-plus==1.24.0
protobuf==4.21.12
protobuf==4.21.12; python_version < "3.11"
protobuf==4.25.5; python_version >= "3.11"
psutil==6.0.0
ptyprocess==0.7.0
pyarrow==10.0.1; python_version >= "3.11"
pyarrow-hotfix==0.6
pyasn1==0.6.1
pyasn1_modules==0.4.1
Expand Down Expand Up @@ -315,7 +318,8 @@ tensorflow-decision-forests==1.10.1
tensorflow-estimator==2.15.0
tensorflow-hub==0.15.0
tensorflow-io==0.24.0
tensorflow-io-gcs-filesystem==0.24.0
tensorflow-io-gcs-filesystem==0.24.0; python_version < "3.11"
tensorflow-io-gcs-filesystem==0.37.1; python_version >= "3.11"
tensorflow-metadata>=1.17.1
# tensorflow-ranking==0.5.5
tensorflow-serving-api==2.17.1
Expand Down
3 changes: 2 additions & 1 deletion package_build/ml-pipelines-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
Expand All @@ -31,7 +32,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
keywords = ["tensorflow", "tfx"]
requires-python = ">=3.9,<3.11"
requires-python = ">=3.9,<3.12"
[project.urls]
Homepage = "https://www.tensorflow.org/tfx"
Repository = "https://github.com/tensorflow/tfx"
3 changes: 2 additions & 1 deletion package_build/tfx/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
Expand All @@ -31,7 +32,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
keywords = ["tensorflow", "tfx"]
requires-python = ">=3.9,<3.11"
requires-python = ">=3.9,<3.12"
[project.urls]
Homepage = "https://www.tensorflow.org/tfx"
Repository = "https://github.com/tensorflow/tfx"
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
Expand All @@ -31,7 +32,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
keywords = ["tensorflow", "tfx"]
requires-python = ">=3.9,<3.11"
requires-python = ">=3.9,<3.12"
[project.urls]
Homepage = "https://www.tensorflow.org/tfx"
Repository = "https://github.com/tensorflow/tfx"
Expand Down
12 changes: 8 additions & 4 deletions test_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ alembic==1.13.3
annotated-types==0.7.0
anyio==4.6.0
apache-airflow==2.10.3
apache-beam==2.50.0
apache-beam==2.50.0; python_version < "3.11"
apache-beam==2.53.0; python_version >= "3.11"
apispec==6.6.1
argcomplete==3.5.1
argon2-cffi==23.1.0
Expand Down Expand Up @@ -125,7 +126,7 @@ greenlet==3.1.1
grpc-google-iam-v1==0.13.1
grpc-interceptor==0.15.4
grpcio==1.66.2
grpcio-status==1.48.2
grpcio-status==1.62.3
gunicorn==23.0.0
h11==0.14.0
h5py==3.12.1
Expand Down Expand Up @@ -246,9 +247,11 @@ promise==2.3
prompt_toolkit==3.0.48
propcache==0.2.0
proto-plus==1.24.0
protobuf==4.21.12
protobuf==4.21.12; python_version < "3.11"
protobuf==4.25.5; python_version >= "3.11"
psutil==6.0.0
ptyprocess==0.7.0
pyarrow==10.0.1; python_version >= "3.11"
pyarrow-hotfix==0.6
pyasn1==0.6.1
pyasn1_modules==0.4.1
Expand Down Expand Up @@ -315,7 +318,8 @@ tensorflow-decision-forests==1.10.1
tensorflow-estimator==2.15.0
tensorflow-hub==0.15.0
tensorflow-io==0.24.0
tensorflow-io-gcs-filesystem==0.24.0
tensorflow-io-gcs-filesystem==0.24.0; python_version < "3.11"
tensorflow-io-gcs-filesystem==0.37.1; python_version >= "3.11"
tensorflow-metadata>=1.16.1
# tensorflow-ranking==0.5.5
tensorflow-serving-api==2.17.1
Expand Down
6 changes: 3 additions & 3 deletions tfx/components/infra_validator/request_builder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def setUp(self):
def _PrepareTFServingRequestBuilder(self):
patcher = mock.patch.object(
request_builder, '_TFServingRpcRequestBuilder',
wraps=request_builder._TFServingRpcRequestBuilder)
autospec=True)
builder_cls = patcher.start()
self.addCleanup(patcher.stop)
return builder_cls
Expand All @@ -466,7 +466,7 @@ def testBuildRequests_TFServing(self):
model_name='foo',
signatures={'serving_default': mock.ANY})
builder.ReadExamplesArtifact.assert_called_with(
self._examples,
examples=self._examples,
split_name='eval',
num_examples=1)
builder.BuildRequests.assert_called()
Expand Down Expand Up @@ -512,6 +512,6 @@ def testBuildRequests_DefaultArgument(self):
)

builder.ReadExamplesArtifact.assert_called_with(
self._examples,
examples=self._examples,
split_name=None, # Without split_name (will choose any split).
num_examples=1) # Default num_examples = 1.
4 changes: 2 additions & 2 deletions tfx/components/trainer/rewriting/tflite_rewriter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def testInvokeTFLiteRewriterQuantizationFloat16Succeeds(self, converter):

@mock.patch('tfx.components.trainer.rewriting.'
'tflite_rewriter._create_tflite_compatible_saved_model')
@mock.patch('tensorflow.lite.TFLiteConverter.from_saved_model')
@mock.patch.object(tf.lite.TFLiteConverter, 'from_saved_model')
def testInvokeTFLiteRewriterQuantizationFullIntegerFailsNoData(
self, converter, model):

Expand Down Expand Up @@ -231,7 +231,7 @@ def representative_dataset():
with fileio.open(expected_model, 'rb') as f:
self.assertEqual(f.read(), b'model')

@mock.patch('tensorflow.lite.TFLiteConverter.from_saved_model')
@mock.patch.object(tf.lite.TFLiteConverter, 'from_saved_model')
def testInvokeTFLiteRewriterWithSignatureKey(self, converter):
m = self.ConverterMock()
converter.return_value = m
Expand Down
Loading