Christopher Tyler

Setup Python Package to use with Pipx

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

pyproject.toml

Add the following entry:

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

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

1
2
3
4
5
6
7
> 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.

<< Previous Post

|

Next Post >>

#Til #Python #Pipx #Pyproject #Flit