Skip to content

Commit 478e4c7

Browse files
authored
fix long_description when the md file cannot be found (#35246)
* fix long_description when the md file cannot be found * yapf
1 parent 7f09169 commit 478e4c7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sdks/python/setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,16 @@ def get_portability_package_data():
316316
else:
317317
extensions = []
318318

319-
long_description = ((Path(__file__).parent / "README.md") # pragma: no cover
320-
.read_text(encoding='utf-8')) # pragma: no cover
319+
try:
320+
long_description = ((Path(__file__).parent /
321+
"README.md").read_text(encoding='utf-8'))
322+
except FileNotFoundError:
323+
long_description = (
324+
'Apache Beam is a unified programming model for both batch and '
325+
'streaming data processing, enabling efficient execution across '
326+
'diverse distributed execution engines and providing extensibility '
327+
'points for connecting to different technologies and user '
328+
'communities.')
321329

322330
# Keep all dependencies inlined in the setup call, otherwise Dependabot won't
323331
# be able to parse it.

0 commit comments

Comments
 (0)