Releases: ClericPy/zipapps
Releases · ClericPy/zipapps
2022.02.27
add --unzip-exclude
2022.1.17
2021.11.1
2021.09.22
- fix --layer-mode-prefix not work for -a files
2021.09.21
- 2021.09.21
layer-mode
for serverless layers- https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
- this mode will not activate the sys.path of this zip file.
python3 -m zipapps --layer-mode --layer-mode-prefix=python -o layer.zip -r requirements.txt
- maybe add
-cc
to generate the.pyc
files
- maybe add
- 2021.05.17
lazy-install
mode will re-install packages while pip args including-U
or--upgrade
.
2021.04.29
- add arg
--ensure-pip
for embed-python(windows) or other python versions which have nopip
installed butlazy-install
mode is enabled.
2021.04.24
- remove conflict command args with
pip
- remove
--compile
arg, it will only work forpip
-c
will not be removed,pip install -c
could usepip install --constraint
instead
- remove
- Refactor for OOP(Object-oriented programming)
- Will be used as the first stable version and end experimental phase
- remove
Config
class - show version info and other logs in stderr
compiled
should not be True whileunzip
is null- a successful message has been added to the tail of logs:
Successfully built
2021.04.23
- lazy install mode:
- fix bug: python version conflict
- remove repeated installation
pip install
will execute only once for samepip_args_md5
pip_args_md5
comes from pip_args string, including bytes of related files(likerequirements.txt
)
- logs of
pip install
will be redirected, fromstdout
tostderr
2021.04.22
- 2021.04.22
- update the lazy_install mode (
-d
)- simple use case:
-
python -m zipapps -d six
-
python app.pyz -c "import six;print(six.__file__)"
-
- it will not
rmtree
the_zipapps_lazy_pip
folder for new build- if you need to upgrade those requirements, use
-U
arg of pip - lazy_install mode will install requirements with
pip install
while first running- so you can just run like this to init its installation(
-m
not set):python3 app.pyz -V
- so you can just run like this to init its installation(
- if you need to upgrade those requirements, use
- for now,
-d
is to server for the cross-platform and cross-python-version app- pip target path is separated from different python version and system platform
- python version accurity can be reset with
-pva 5
, defaults to 2, means 3.8.3 and 3.8.4 are same3.8
- python version accurity can be reset with
- pip target path is separated from different python version and system platform
- simple use case:
- update the lazy_install mode (
2021.04.11
- add
--sys-paths
to include new paths of sys.path- support TEMP/HOME/SELF prefix, separated by commas
- sometimes be used for separating pyz code from requirements
- requirements often be installed by
pip install xxx -t $SOME_PATH
- requirements often be installed by