Skip to content

Commit ab10366

Browse files
brillstfx-copybara
authored andcommitted
Only exclude bad avro version for python3.5+MacOS.
PiperOrigin-RevId: 299367733
1 parent 2a822f2 commit ab10366

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Add JSON serialization support for StatsOptions.
1010

1111
## Bug Fixes and Other Changes
12+
* Only requires `avro-python3>=1.8.1,!=1.9.2.*,<2.0.0` on Python 3.5 + MacOS
1213

1314
## Breaking Changes
1415

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def has_ext_modules(self):
8282
# Make sure to sync the versions of common dependencies (absl-py, numpy,
8383
# six, and protobuf) with TF.
8484
install_requires=[
85-
# TODO(b/149841057): This is a workaround for broken avro-python3
86-
# release. Remove once avro has a healthy release.
87-
'avro-python3>=1.8.1,!=1.9.2.*,!=<2.0.0; python_version>="3.0"',
85+
# avro-python3 1.9.2.1 still does not work for MacOS + Py3.5.
86+
# TODO(b/149841057): remove once avro has a healthy release.
87+
'avro-python3>=1.8.1,!=1.9.2.*,<2.0.0; python_version=="3.5" and platform_system=="Darwin"',
8888
'absl-py>=0.7,<0.9',
8989
'apache-beam[gcp]>=2.17,<3',
9090
'numpy>=1.16,<2',

0 commit comments

Comments
 (0)