Setup Python Package to use with Pipx

Setup Python Package to use with Pipx

May 26, 2023

Found the information at https://flit.pypa.io/en/latest/pyproject_toml.html#pyproject-project-scripts.

pyproject.toml

Add the following entry:

[project.scripts]
ms_access_check = "ms_access_check.cli:main"

This should work with programs like flit. This will do the following:

> pipx install ms_access_check
  installed package ms-access-check 0.6.0, installed using Python 3.11.1
  These apps are now globally available
    - ms_access_check.exe
done! ✨ 🌟 ✨
> ms_access_check --version
ms_access_check, version 0.5.0

Note that in Windows, pipx puts the files in C:\Users\<Your User Name>\.local\bin.