You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reflex/utils/build.py
+67-53Lines changed: 67 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -26,64 +26,77 @@ def set_env_json():
26
26
27
27
28
28
def_zip(
29
+
*,
29
30
component_name: constants.ComponentName,
30
-
target: str|Path,
31
-
root_dir: str|Path,
32
-
exclude_venv_dirs: bool,
33
-
upload_db_file: bool=False,
34
-
dirs_to_exclude: set[str] |None=None,
35
-
files_to_exclude: set[str] |None=None,
36
-
top_level_dirs_to_exclude: set[str] |None=None,
31
+
target: Path,
32
+
root_directory: Path,
33
+
exclude_venv_directories: bool,
34
+
include_db_file: bool=False,
35
+
directory_names_to_exclude: set[str] |None=None,
36
+
files_to_exclude: set[Path] |None=None,
37
37
globs_to_include: list[str] |None=None,
38
38
) ->None:
39
39
"""Zip utility function.
40
40
41
41
Args:
42
42
component_name: The name of the component: backend or frontend.
43
43
target: The target zip file.
44
-
root_dir: The root directory to zip.
45
-
exclude_venv_dirs: Whether to exclude venv directories.
46
-
upload_db_file: Whether to include local sqlite db files.
47
-
dirs_to_exclude: The directories to exclude.
44
+
root_directory: The root directory to zip.
45
+
exclude_venv_directories: Whether to exclude venv directories.
46
+
include_db_file: Whether to include local sqlite db files.
47
+
directory_names_to_exclude: The directory names to exclude.
48
48
files_to_exclude: The files to exclude.
49
-
top_level_dirs_to_exclude: The top level directory names immediately under root_dir to exclude. Do not exclude folders by these names further in the sub-directories.
50
-
globs_to_include: Apply these globs from the root_dir and always include them in the zip.
49
+
globs_to_include: Apply these globs from the root_directory and always include them in the zip.
0 commit comments