Skip to content

Commit d3194a3

Browse files
authored
Upgrade TFMD to align with TF 2.21.0 and Added Python 3.12/3.13 support (#63)
* Align TFMD with TF 2.21 and Python 3.12 * Update RELEASE.md for TF 2.21 and Python 3.12 * Added python 3.13 updated to RELEASE.md
1 parent 5dbf9bd commit d3194a3

8 files changed

Lines changed: 35 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ on:
99
workflow_dispatch:
1010

1111
env:
12-
USE_BAZEL_VERSION: "6.5.0"
12+
USE_BAZEL_VERSION: "7.7.0"
1313

1414
jobs:
1515
tests:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest]
20-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
20+
python-version: ['3.10', '3.11', '3.12', '3.13']
2121

2222
steps:
2323
- uses: actions/checkout@v4

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [published]
88

99
env:
10-
USE_BAZEL_VERSION: "6.5.0"
10+
USE_BAZEL_VERSION: "7.7.0"
1111

1212

1313
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
# fail-fast: true
2020
matrix:
2121
os: [ubuntu, macos]
22-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
22+
python-version: ['3.10', '3.11', '3.12', '3.13']
2323

2424

2525
runs-on: ${{ format('{0}-latest', matrix.os) }}

RELEASE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66

77
## Bug Fixes and Other Changes
88

9+
* Align with TensorFlow 2.21 dependencies.
10+
* Upgrade Protobuf to `6.31.1`.
11+
* Upgrade `bazel_skylib` to `1.9.0`.
12+
* Add support for Python 3.12 and 3.13.
13+
914
## Breaking Changes
1015

16+
* Drop support for Python 3.9.
17+
1118
## Deprecations
1219

1320
# Version 1.17.3

WORKSPACE

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
http_archive(
66
name = "bazel_skylib",
7-
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
87
urls = [
9-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
10-
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
8+
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.9.0/bazel-skylib-1.9.0.tar.gz",
119
],
1210
)
1311

14-
_PROTOBUF_VERSION = "4.25.6"
12+
_PROTOBUF_VERSION = "6.31.1"
1513

1614
http_archive(
1715
name = "com_google_protobuf",
18-
sha256 = "ff6e9c3db65f985461d200c96c771328b6186ee0b10bc7cb2bbc87cf02ebd864",
16+
sha256 = "6e09bbc950ba60c3a7b30280210cd285af8d7d8ed5e0a6ed101c72aff22e8d88",
1917
strip_prefix = "protobuf-%s" % _PROTOBUF_VERSION,
2018
urls = [
21-
"https://github.com/protocolbuffers/protobuf/archive/v%s.zip" % _PROTOBUF_VERSION,
19+
"https://github.com/protocolbuffers/protobuf/archive/refs/tags/v%s.zip" % _PROTOBUF_VERSION,
2220
],
2321
)
2422

@@ -45,8 +43,22 @@ bind(
4543
actual = "@six_archive//:six",
4644
)
4745

46+
http_archive(
47+
name = "rules_python",
48+
urls = ["https://github.com/bazelbuild/rules_python/archive/refs/tags/0.31.0.tar.gz"],
49+
strip_prefix = "rules_python-0.31.0",
50+
)
51+
52+
load("@rules_python//python:repositories.bzl", "py_repositories")
53+
py_repositories()
54+
55+
local_repository(
56+
name = "compatibility_proxy",
57+
path = "third_party/dummy_compatibility_proxy",
58+
)
59+
4860
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
4961
protobuf_deps()
5062

5163
load("@bazel_skylib//lib:versions.bzl", "versions")
52-
versions.check("6.5.0")
64+
versions.check("7.4.1")

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def run(self):
121121
"Operating System :: OS Independent",
122122
"Programming Language :: Python",
123123
"Programming Language :: Python :: 3",
124-
"Programming Language :: Python :: 3.9",
125124
"Programming Language :: Python :: 3.10",
126125
"Programming Language :: Python :: 3.11",
127126
"Programming Language :: Python :: 3.12",
@@ -140,7 +139,7 @@ def run(self):
140139
'protobuf>=4.25.2;python_version>="3.11"',
141140
'protobuf>=4.21.6,<=6.32;python_version<"3.11"',
142141
],
143-
python_requires=">=3.9,<4",
142+
python_requires=">=3.10,<4",
144143
packages=find_packages(),
145144
extras_require={
146145
"dev": ["precommit"],

third_party/dummy_compatibility_proxy/BUILD

Whitespace-only changes.

third_party/dummy_compatibility_proxy/WORKSPACE

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
JavaInfo = provider()
2+
java_common = struct()
3+
java_common_internal_compile = struct()
4+
java_info_internal_merge = struct()

0 commit comments

Comments
 (0)