|
15 | 15 | from pkgutil import get_data
|
16 | 16 | from zipfile import ZIP_DEFLATED, ZIP_STORED, BadZipFile, ZipFile
|
17 | 17 |
|
18 |
| -__version__ = '2023.06.04' |
| 18 | +__version__ = '2023.09.12' |
19 | 19 |
|
20 | 20 |
|
21 | 21 | def get_pip_main(ensurepip_root=None):
|
@@ -137,19 +137,19 @@ def __init__(
|
137 | 137 | :param python_version_slice: Only work for lazy-install mode, then `pip` target folders differ according to sys.version_info[:_slice], defaults to 2, which means 3.8.3 equals to 3.8.4 for same version accuracy 3.8, defaults to 2
|
138 | 138 | :type python_version_slice: int, optional
|
139 | 139 | :param ensure_pip: Add the ensurepip package to your pyz file, works for embed-python(windows) or other python versions without `pip` installed but `lazy-install` mode is enabled.
|
140 |
| - :type includes: bool, optional |
| 140 | + :type ensure_pip: bool, optional |
141 | 141 | :param layer_mode: Layer mode for the serverless use case, __main__.py / ensure_zipapps.py / activate_zipapps.py files will not be set in this mode, which means it will skip the activative process.
|
142 |
| - :type includes: bool, optional |
| 142 | + :type layer_mode: bool, optional |
143 | 143 | :param layer_mode_prefix: Only work while --layer-mode is set, will move the files in the given prefix folder.
|
144 |
| - :type includes: str, optional |
| 144 | + :type layer_mode_prefix: str, optional |
145 | 145 | :param clear_zipapps_cache: Clear the zipapps cache folder after running, but maybe failed for .pyd/.so files.
|
146 |
| - :type includes: bool, optional |
| 146 | + :type clear_zipapps_cache: bool, optional |
147 | 147 | :param unzip_exclude: names not to be unzip, defaults to '', should be used with unzip. Can be overwrite with environment variable `ZIPAPPS_UNZIP_EXCLUDE`
|
148 | 148 | :type unzip_exclude: str, optional
|
149 | 149 | :param chmod: os.chmod(int(chmod, 8)) for unzip files with `--chmod=777`, unix-like system only
|
150 | 150 | :type chmod: str, optional
|
151 | 151 | :param clear_zipapps_self: Clear the zipapps pyz file after running.
|
152 |
| - :type includes: bool, optional |
| 152 | + :type clear_zipapps_self: bool, optional |
153 | 153 | """
|
154 | 154 | self.includes = includes
|
155 | 155 | self.cache_path = cache_path
|
|
0 commit comments