From eb5d11a836703da5d7ad819cc2dfc9b622837fab Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:22:58 -0700 Subject: [PATCH 1/2] fix(deps): move libcst to extras --- UPGRADING.md | 2 +- setup.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index d004f99e..17cefe5f 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -22,7 +22,7 @@ If you experience issues or have questions, please file an [issue](https://githu * Install the library ```py -python3 -m pip install google-cloud-datacatalog +python3 -m pip install google-cloud-datacatalog[libcst] ``` * The script `fixup_datacatalog_v1_keywords.py` is shipped with the library. It expects diff --git a/setup.py b/setup.py index 4a7e03d2..7e7420d7 100644 --- a/setup.py +++ b/setup.py @@ -33,10 +33,11 @@ # https://github.com/googleapis/google-cloud-python/issues/10566 "google-api-core[grpc] >= 1.28.0, <3.0.0dev", "grpc-google-iam-v1 >= 0.12.3, < 0.13dev", - "libcst >= 0.2.5", "proto-plus >= 1.4.0", ] +extras = {"libcst >= 0.2.5"} + package_root = os.path.abspath(os.path.dirname(__file__)) readme_filename = os.path.join(package_root, "README.rst") @@ -84,6 +85,7 @@ ], namespace_packages=namespaces, install_requires=dependencies, + extras_require=extras, include_package_data=True, zip_safe=False, ) From 4af699d6c23fc3a104ad38e166c096ef50304744 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:28:14 -0700 Subject: [PATCH 2/2] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7e7420d7..8f5ff267 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ "proto-plus >= 1.4.0", ] -extras = {"libcst >= 0.2.5"} +extras = {"libcst": "libcst >= 0.2.5"} package_root = os.path.abspath(os.path.dirname(__file__))