0 purchases
setuptoolsgenerate 0.0.6
setuptools-generate
Generate shell completions and man page when building a python package.
Usage
Add this package to your build requires:
[build-system]
requires = [ "setuptools-generate",]
build-backend = "setuptools.build_meta"
[project]
name = "demo"
version = "0.0.1"
[project.scripts]
demo = "demo:main"
Build your package:
python -m build
See your sdist:
$ tree sdist
sdist
├── _demo # zsh completion script
├── demo # bash completion script
├── demo-0.0.1-py3-none-any.whl # wheel file
├── demo-0.0.1.tar.gz # source distribution file
├── demo.1 # man page
└── demo.fish # fish completion script
You got them.
Example projects:
demo for click
demo for shtab
translate-shell
See document to know more.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.