devel/py-argparse-manpage 4.7 FreeBSD
Build manual page from python's ArgumentParser object
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
8465b79a50- License
- APACHE20
- Categories
- devel, python
- Package size
- 45.2 KiB, 187.7 KiB installed
Description
Avoid documenting your Python script arguments on two places! This is typically done in an argparse.ArgumentParser help configuration (help=, description=, etc.), and also in a manually crafted manual page.
The good thing about an ArgumentParser objects is that it actually provides a traversable "tree-like" structure, with all the necessary info needed to automatically generate documentation, for example in a groff typesetting system (manual pages). And this is where this project can help.
There are two supported ways to generate the manual, either script it using the installed command argparse-manpage, or via setup.py build automation (with a slight bonus of automatic manual page installation with setup.py install).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-argparse-manpage | 4.7 |
| NetBSD | devel/py-argparse-manpage | 4.7 |
| DragonFly | devel/py-argparse-manpage | 4.6 |
Install
Binary package:
pkg install py312-argparse-manpage
From the ports tree:
cd /usr/ports/devel/py-argparse-manpage/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-argparse-manpage>0:devel/py-argparse-manpage
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 4.7 | 4.7 | - | 4.6 | 4.7 |
| FreeBSD:14:quarterly | 4.7 | 4.7 | n/a | 4.6 | 4.7 |
| FreeBSD:15:latest | 4.7 | 4.7 | n/a | 4.6 | 4.6 |
| FreeBSD:15:quarterly | 4.7 | 4.7 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.7 | 4.7 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}packaging>=0: devel/py-packaging${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 7
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| argparse_manpage-4.7.tar.gz | 58871 | 1deab76b212ac8753cbb67b9d2d2bc0949bbc338bb1cc3547f0890cb34108b32 |
Master sites 2
- PYPI
- https://github.com/praiskup/argparse-manpage/releases/download/v4.7/