Skip to content

Commit 213c53f

Browse files
Merge remote-tracking branch 'upstream/master' into ci/docs/use-mkdocs
2 parents 6fb6fbc + dd7a252 commit 213c53f

File tree

15 files changed

+97
-68
lines changed

15 files changed

+97
-68
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.0
1+
6.5.0

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![PyPI](https://badge.fury.io/py/struct2tensor.svg)](https://badge.fury.io/py/struct2tensor)
55

66
<!--*
7-
freshness: { owner: 'iindyk' reviewed: '2024-04-22' }
7+
freshness: { owner: 'iindyk' reviewed: '2025-04-02' }
88
*-->
99

1010
## Introduction
@@ -116,6 +116,8 @@ is an integer.
116116

117117
struct2tensor | tensorflow
118118
---------------------------------------------------------------------- | ----------
119+
[0.48.0](https://github.com/google/struct2tensor/releases/tag/v0.48.0) | 2.17.0
120+
[0.47.0](https://github.com/google/struct2tensor/releases/tag/v0.47.0) | 2.16.2
119121
[0.46.0](https://github.com/google/struct2tensor/releases/tag/v0.46.0) | 2.15.0
120122
[0.45.0](https://github.com/google/struct2tensor/releases/tag/v0.45.0) | 2.13.0
121123
[0.44.0](https://github.com/google/struct2tensor/releases/tag/v0.44.0) | 2.12.0

RELEASE.md

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `struct2tensor` release notes
22

3-
# Current Version (not yet released; still in development)
3+
## Current Version (not yet released; still in development)
44

55
## Major Features and Improvements
66

@@ -10,7 +10,47 @@
1010

1111
## Deprecations
1212

13-
# Version 0.46.0
13+
## Version 0.48.0
14+
15+
## Major Features and Improvements
16+
17+
* N/A
18+
19+
## Bug Fixes and Other Changes
20+
21+
* Depends on `protobuf>=4.25.2,<6.0.0` for Python 3.11 and on `protobuf>=4.21.6,<6.0.0` for 3.9 and 3.10.
22+
* Depends on `tensorflow 2.17.1`.
23+
* macOS wheel publishing is temporarily paused due to missing ARM64 support.
24+
25+
## Breaking Changes
26+
27+
* N/A
28+
29+
## Deprecations
30+
31+
* N/A
32+
33+
## Version 0.47.0
34+
35+
## Major Features and Improvements
36+
37+
* N/A
38+
39+
## Bug Fixes and Other Changes
40+
41+
* Bumped the minimum bazel version required to build `struct2tensor` to 6.5.0.
42+
* Depends on `tensorflow 2.16.2`.
43+
* Relax dependency on Protobuf to include version 5.x
44+
45+
## Breaking Changes
46+
47+
* N/A
48+
49+
## Deprecations
50+
51+
* N/A
52+
53+
## Version 0.46.0
1454

1555
## Major Features and Improvements
1656

@@ -33,7 +73,7 @@
3373

3474
* Deprecated python 3.8 support.
3575

36-
# Version 0.45.0
76+
## Version 0.45.0
3777

3878
## Major Features and Improvements
3979

@@ -53,7 +93,7 @@
5393

5494
* N/A
5595

56-
# Version 0.44.0
96+
## Version 0.44.0
5797

5898
## Major Features and Improvements
5999

@@ -73,7 +113,7 @@
73113

74114
* Deprecated python 3.7 support.
75115

76-
# Version 0.43.0
116+
## Version 0.43.0
77117

78118
## Major Features and Improvements
79119

@@ -91,7 +131,7 @@
91131

92132
* N/A
93133

94-
# Version 0.42.0
134+
## Version 0.42.0
95135

96136
## Major Features and Improvements
97137

@@ -110,7 +150,7 @@
110150

111151
* N/A
112152

113-
# Version 0.41.0
153+
## Version 0.41.0
114154

115155
## Major Features and Improvements
116156

@@ -129,7 +169,7 @@
129169

130170
* N/A
131171

132-
# Version 0.40.0
172+
## Version 0.40.0
133173

134174
## Major Features and Improvements
135175

@@ -150,7 +190,7 @@
150190

151191
* N/A
152192

153-
# Version 0.39.0
193+
## Version 0.39.0
154194

155195
## Major Features and Improvements
156196

@@ -168,7 +208,7 @@
168208

169209
* N/A
170210

171-
# Version 0.38.0
211+
## Version 0.38.0
172212

173213
## Major Features and Improvements
174214

@@ -188,7 +228,7 @@
188228

189229
* N/A
190230

191-
# Version 0.37.0
231+
## Version 0.37.0
192232

193233
## Major Features and Improvements
194234

@@ -206,7 +246,7 @@
206246

207247
* N/A
208248

209-
# Version 0.36.0
249+
## Version 0.36.0
210250

211251
## Major Features and Improvements
212252

@@ -225,7 +265,7 @@
225265

226266
* N/A
227267

228-
# Version 0.35.0
268+
## Version 0.35.0
229269

230270
## Major Features and Improvements
231271

@@ -243,7 +283,7 @@
243283

244284
* Deprecated python 3.6 support.
245285

246-
# Version 0.34.0
286+
## Version 0.34.0
247287

248288
## Major Features and Improvements
249289

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ rules_pkg_dependencies()
8888

8989
# Specify the minimum required bazel version.
9090
load("@bazel_skylib//lib:versions.bzl", "versions")
91-
versions.check("6.1.0")
91+
versions.check("6.5.0")

setup.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def select_constraint(default, nightly=None, git_master=None):
7272
setup(
7373
name='struct2tensor',
7474
version=__version__,
75-
description=('Struct2Tensor is a package for parsing and manipulating'
76-
' structured data for TensorFlow'),
75+
description=(
76+
'Struct2Tensor is a package for parsing and manipulating'
77+
' structured data for TensorFlow'
78+
),
7779
author='Google LLC',
7880
author_email='[email protected]',
7981
# Contained modules and scripts.
@@ -82,16 +84,15 @@ def select_constraint(default, nightly=None, git_master=None):
8284
# TODO(b/263060885): Remove the explicit numpy dependency once TF works
8385
# with numpy>=1.24.
8486
'numpy>=1.22',
85-
'protobuf>=4.25.2,<5;python_version>="3.11"',
86-
'protobuf>=3.20.3,<5;python_version<"3.11"',
87-
'tensorflow' + select_constraint(
88-
default='>=2.15,<2.16',
89-
nightly='>=2.16.0.dev',
90-
git_master='@git+https://github.com/tensorflow/tensorflow@master'),
91-
'tensorflow-metadata' + select_constraint(
92-
default='>=1.15.0,<1.16.0',
93-
nightly='>=1.16.0.dev',
94-
git_master='@git+https://github.com/tensorflow/metadata@master'),
87+
'protobuf>=4.25.2,<6.0.0;python_version>="3.11"',
88+
'protobuf>=4.21.6,<6.0.0;python_version<"3.11"',
89+
'tensorflow>=2.17,<2.18',
90+
'tensorflow-metadata'
91+
+ select_constraint(
92+
default='>=1.17.0,<1.18.0',
93+
nightly='>=1.18.0.dev',
94+
git_master='@git+https://github.com/tensorflow/metadata@master',
95+
),
9596
'pyarrow>=10,<11',
9697
],
9798
extras_require={"docs": docs_reqs},
@@ -125,4 +126,5 @@ def select_constraint(default, nightly=None, git_master=None):
125126
keywords='tensorflow protobuf machine learning',
126127
long_description=_LONG_DESCRIPTION,
127128
long_description_content_type='text/markdown',
128-
cmdclass={'install': _InstallPlatlib})
129+
cmdclass={'install': _InstallPlatlib},
130+
)

struct2tensor/BUILD

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ s2t_pytype_library(
3737
srcs = [
3838
"__init__.py",
3939
],
40-
srcs_version = "PY3ONLY",
4140
deps = [
4241
":calculate_options",
4342
":expression",
@@ -55,7 +54,6 @@ s2t_pytype_library(
5554
srcs = [
5655
"expression_impl/__init__.py",
5756
],
58-
srcs_version = "PY2AND3",
5957
deps = [
6058
":calculate_options",
6159
":expression",
@@ -84,7 +82,6 @@ s2t_pytype_library(
8482
srcs = [
8583
"path.py",
8684
],
87-
srcs_version = "PY3ONLY",
8885
deps = [
8986
"@com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:py_metadata_v0_proto_py",
9087
"@com_google_protobuf//:protobuf_python",
@@ -100,7 +97,6 @@ s2t_pytype_library(
10097
"prensor_util.py",
10198
"prensor_value.py",
10299
],
103-
srcs_version = "PY3ONLY",
104100
deps = [
105101
":calculate_options",
106102
":path",
@@ -117,7 +113,6 @@ s2t_pytype_library(
117113
srcs = [
118114
"calculate_options.py",
119115
],
120-
srcs_version = "PY3ONLY",
121116
)
122117

123118
# Note: do not separate these, as eventually we want to make sure that they
@@ -146,7 +141,6 @@ s2t_pytype_library(
146141
"expression_impl/size.py",
147142
"expression_impl/slice_expression.py",
148143
],
149-
srcs_version = "PY3ONLY",
150144
deps = [
151145
":calculate_options",
152146
":path",
@@ -163,7 +157,6 @@ s2t_pytype_library(
163157
srcs = [
164158
"expression_impl/map_prensor_to_prensor.py",
165159
],
166-
srcs_version = "PY3ONLY",
167160
deps = [
168161
":expression",
169162
":path",
@@ -176,7 +169,6 @@ s2t_pytype_library(
176169
srcs = [
177170
"expression_impl/placeholder.py",
178171
],
179-
srcs_version = "PY3ONLY",
180172
deps = [
181173
":expression",
182174
":map_prensor_to_prensor",
@@ -190,7 +182,6 @@ s2t_pytype_library(
190182
srcs = [
191183
"expression_impl/parquet.py",
192184
],
193-
srcs_version = "PY3ONLY",
194185
deps = [
195186
":expression",
196187
":map_prensor_to_prensor",
@@ -207,7 +198,6 @@ s2t_pytype_library(
207198
srcs = [
208199
"expression_impl/proto_test_util.py",
209200
],
210-
srcs_version = "PY3ONLY",
211201
deps = [
212202
":expression",
213203
"//struct2tensor/test:test_py_pb2",
@@ -220,7 +210,6 @@ s2t_pytype_library(
220210
srcs = [
221211
"prensor_to_structured_tensor.py",
222212
],
223-
srcs_version = "PY3ONLY",
224213
deps = [
225214
":path",
226215
":prensor",
@@ -232,7 +221,6 @@ s2t_pytype_library(
232221
srcs = [
233222
"structured_tensor_to_prensor.py",
234223
],
235-
srcs_version = "PY3ONLY",
236224
deps = [
237225
":path",
238226
":prensor",

struct2tensor/benchmarks/BUILD

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Placeholder: load py_binary
1717
# Placeholder: load py_library
1818
# Placeholder: load py_test
19+
load("//third_party/protobuf/bazel:proto_library.bzl", "proto_library")
1920
load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", "cc_proto_library")
2021

2122
licenses(["notice"])
@@ -29,7 +30,6 @@ proto_library(
2930

3031
py_proto_library(
3132
name = "benchmark_proto_py_pb2",
32-
api_version = 2,
3333
deps = [":benchmark_proto"],
3434
)
3535

@@ -75,15 +75,13 @@ py_test(
7575
# Follow the instructions in the file to properly run the benchmark.
7676
args = ["--test_mode"],
7777
main = "struct2tensor_benchmark.py",
78-
python_version = "PY3",
7978
shard_count = 4,
8079
deps = [":struct2tensor_benchmark_lib"],
8180
)
8281

8382
py_binary(
8483
name = "struct2tensor_benchmark",
8584
srcs = ["struct2tensor_benchmark.py"],
86-
python_version = "PY3",
8785
deps = [
8886
":struct2tensor_benchmark_lib",
8987
],
@@ -96,15 +94,13 @@ py_test(
9694
# Follow the instructions in the file to properly run the benchmark.
9795
args = ["--test_mode"],
9896
main = "ops_benchmark.py",
99-
python_version = "PY3",
10097
# shard_count = 4,
10198
deps = [":struct2tensor_benchmark_lib"],
10299
)
103100

104101
py_binary(
105102
name = "ops_benchmark",
106103
srcs = ["ops_benchmark.py"],
107-
python_version = "PY3",
108104
deps = [
109105
":struct2tensor_benchmark_lib",
110106
],
@@ -113,7 +109,6 @@ py_binary(
113109
py_library(
114110
name = "struct2tensor_benchmark_util",
115111
srcs = ["struct2tensor_benchmark_util.py"],
116-
srcs_version = "PY3ONLY",
117112
deps = [
118113
"//file/colossus/public:cns",
119114
"//third_party/py/cpuinfo",

0 commit comments

Comments
 (0)