Build cli zipapp
CHKware zipapp is a self contained executable alike utility that once build can be used from anywhere. However, it have python version dependency.
Follow these steps to bundle chkware as zipapp.
Please confirm that Python 3.11.x is installed and setup on this machine
Clone the repo
git clone https://github.com/chkware/cli.git cli-zipChange to the directory
cd cli-zipMake directory for local virtualenv setup
python -m venv .venvSwitch to the virtualenv
source .venv/bin/activateor on windows
.venv/Scripts/activate.batInstall all required packages
pip install -U -r requirements.txtInstall shiv for building the zipapp
pip install -U shivUse the environment's python to build the zipapp. Refer to shiv documentation for further explanation.
python -m shiv -c chk -o chk.pyz .chk.pyzis generated in the project folder. You can move it to anywhere on your machine, and put it on your machine's environment variable or$PATH. Then, use it as follows:chk.pyz http tests/resources/storage/sample_config/xkcd-joke.chk