How to put PyInstaller on PyPI
It's assumed that you are running in a UNIX like environment with tools like
bashandperlavailable.It's also assumed that your Python environment is suitably de-xkcd-1987-ified. i.e
which pythonpoints to a sensible, non-EOL version of Python 3 with user-writablesite-packagesdirectory andwhich pippoints to that same environment.You need to install and be running fish. (Just entering
fishinto a terminal is enough, no need tochsh).You need
dockerwithqemu(cross architecture emulation). These are typically just calleddockerandqemuon Linux repositories. Windows and macOS can get them via docker desktop. To test your setup run:$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes ... lots of noise ... $ docker run --rm --platform=ppc64le alpine uname -m ... some more noise ... ppc64le
The steps to do a release are below. Note that only explicitly typing the
commands pyi_upload_to_pypi or pyi_github_release or a git push will
make persistent online changes. All other steps are harmless in that they apply
changes locally only and can be undone by running git reset --hard
origin/develop. It should be impossible to accidentally create a release or
other irreversible change just by monkeying around.
Ensure that you are on the
developbranch, your working directory is clean and you have pulled the latest upstream changes.cdto the root of this repo and enter fish:$ fish
Source the
release.fishscript.> source release/release.fishThat script should prompt you for everything you need to do from there on.