Skip to content

Commit cd358db

Browse files
HemangChothanitseavercrwilcox
authored
fix: remove unnecessary dependency on libcst (#220)
Co-authored-by: Tres Seaver <[email protected]> Co-authored-by: Christopher Wilcox <[email protected]>
1 parent 30bb3fb commit cd358db

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

scripts/fixup_admin_v1_keywords.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
import argparse
1919
import os
20-
import libcst as cst
20+
21+
try:
22+
import libcst as cst
23+
except ImportError as exception:
24+
raise ImportError('Run python -m pip install "libcst >= 0.2.5" command to install libcst.')
25+
2126
import pathlib
2227
import sys
2328
from typing import (Any, Callable, Dict, List, Sequence, Tuple)

scripts/fixup_firestore_admin_v1_keywords.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
import argparse
1919
import os
20-
import libcst as cst
20+
21+
try:
22+
import libcst as cst
23+
except ImportError as exception:
24+
raise ImportError('Run `python -m pip install "libcst >= 0.2.5"` to install libcst.')
25+
2126
import pathlib
2227
import sys
2328
from typing import (Any, Callable, Dict, List, Sequence, Tuple)

scripts/fixup_firestore_v1_keywords.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
import argparse
1919
import os
20-
import libcst as cst
20+
21+
try:
22+
import libcst as cst
23+
except ImportError as exception:
24+
raise ImportError('Run `python -m pip install "libcst >= 0.2.5"` to install libcst.')
25+
2126
import pathlib
2227
import sys
2328
from typing import (Any, Callable, Dict, List, Sequence, Tuple)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"google-api-core[grpc] >= 1.22.1, < 2.0.0dev",
2929
"google-cloud-core >= 1.4.1, < 2.0dev",
3030
"pytz",
31-
"libcst >= 0.2.5",
3231
"proto-plus >= 1.3.0",
3332
]
3433
extras = {}

0 commit comments

Comments
 (0)