You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by xq...@apache.org on 2025/06/11 21:34:22 UTC

(beam) branch master updated: fix long_description when the md file cannot be found (#35246)

This is an automated email from the ASF dual-hosted git repository.

xqhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 478e4c7816e fix long_description when the md file cannot be found (#35246)
478e4c7816e is described below

commit 478e4c7816e0463ff2a2756535626a1c1601a3a8
Author: liferoad <hu...@gmail.com>
AuthorDate: Wed Jun 11 17:34:13 2025 -0400

    fix long_description when the md file cannot be found (#35246)
    
    * fix long_description when the md file cannot be found
    
    * yapf
---
 sdks/python/setup.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index d7b6e689fcb..3750c087f18 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -316,8 +316,16 @@ if __name__ == '__main__':
   else:
     extensions = []
 
-  long_description = ((Path(__file__).parent / "README.md")  # pragma: no cover
-                      .read_text(encoding='utf-8'))  # pragma: no cover
+  try:
+    long_description = ((Path(__file__).parent /
+                         "README.md").read_text(encoding='utf-8'))
+  except FileNotFoundError:
+    long_description = (
+        'Apache Beam is a unified programming model for both batch and '
+        'streaming data processing, enabling efficient execution across '
+        'diverse distributed execution engines and providing extensibility '
+        'points for connecting to different technologies and user '
+        'communities.')
 
   # Keep all dependencies inlined in the setup call, otherwise Dependabot won't
   # be able to parse it.