Updating the PEX Executable
- In the - packagingrepository, set- pex-packingas working directory.
- Generate the updated version of - requirements.txt:- cd <path_to_main_repo> && \
 poetry export \
 --format requirements.txt \
 --output $OLDPWD/requirements.txt \
 --without-hashes && \
 cd -
- Copy the source files. This will avoid including irrelevant files into the executable. - cp <path_to_main_repo>/mutablesecurity sources
- Generate a new executable: - <path_to_main_repo>/.venv/bin/pex \
 --python "python3.9" \
 --python-shebang "/usr/bin/env python3" \
 --sources-directory sources \
 --requirement requirements.txt \
 --exe sources/mutablesecurity/cli/cli.py \
 --output-file mutablesecurity \
 --disable-cache --emit-warning