BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-argparse-manpage4.7
NetBSDdevel/py-argparse-manpage4.7
DragonFlydevel/py-argparse-manpage4.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.74.7-4.64.7
FreeBSD:14:quarterly4.74.7n/a4.64.7
FreeBSD:15:latest4.74.7n/a4.64.6
FreeBSD:15:quarterly4.74.7n/an/an/a
FreeBSD:16:latest4.74.7n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

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
FileSizeSHA256
argparse_manpage-4.7.tar.gz588711deab76b212ac8753cbb67b9d2d2bc0949bbc338bb1cc3547f0890cb34108b32
Master sites 2
  • PYPI
  • https://github.com/praiskup/argparse-manpage/releases/download/v4.7/

Commit history 1

DateCommitCreditsLog message
8465b79a50 Po-Chuan Hsieh devel/py-argparse-manpage: Update to 4.7
- Add GitHub to MASTER_SITES Changes: https://github.com/praiskup/argparse-manpage/releases