From 00132ab25fd019216304ef251e34ef9e334cc6d7 Mon Sep 17 00:00:00 2001 From: liferoad Date: Wed, 11 Jun 2025 15:11:48 -0400 Subject: [PATCH 1/2] fix long_description when the md file cannot be found --- 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 d7b6e689fcbe..d51e70b4e95d 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -316,8 +316,16 @@ def get_portability_package_data(): 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. From e99b2aaf814b0f2b040f16270dda7873e7cae1a0 Mon Sep 17 00:00:00 2001 From: liferoad Date: Wed, 11 Jun 2025 15:13:03 -0400 Subject: [PATCH 2/2] yapf --- sdks/python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/python/setup.py b/sdks/python/setup.py index d51e70b4e95d..3750c087f183 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -317,8 +317,8 @@ def get_portability_package_data(): extensions = [] try: - long_description = ((Path(__file__).parent / "README.md") - .read_text(encoding='utf-8')) + 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 '