Skip to content

Commit 8f81df6

Browse files
committed
fixup! Add the generate_snowball script
1 parent 3580fd1 commit 8f81df6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/generate_snowball.py

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# /// script
66
# requires-python = ">=3.11"
77
# dependencies = [
8-
# "urllib3>=2",
8+
# "requests>=2.30",
99
# ]
1010
# ///
1111

@@ -88,7 +88,7 @@ def parse_stop_word(source: str) -> frozenset[str]:
8888

8989

9090
def regenerate_javascript() -> None:
91-
tmp_root = Path(tempfile.mkdtemp())
91+
tmp_root = Path('tmp')
9292

9393
# Download and extract the snowball release
9494
snowball_archive = BytesIO(requests.get(SNOWBALL_URL, timeout=60).content)
@@ -111,7 +111,7 @@ def regenerate_javascript() -> None:
111111
shutil.copytree(js_dir, NON_MINIFIED_JS_DIR, dirs_exist_ok=True)
112112

113113
# Clean up
114-
shutil.rmtree(snowball_root)
114+
# shutil.rmtree(snowball_root)
115115

116116

117117
if __name__ == '__main__':

0 commit comments

Comments
 (0)