pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-argparse-manpage



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jun  1 04:30:44 UTC 2023

Added Files:
        pkgsrc/devel/py-argparse-manpage: ALTERNATIVES DESCR Makefile PLIST
            distinfo

Log Message:
devel/py-argparse-manpage: import py-argparse-manpage-4.3

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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-argparse-manpage/ALTERNATIVES \
    pkgsrc/devel/py-argparse-manpage/DESCR \
    pkgsrc/devel/py-argparse-manpage/Makefile \
    pkgsrc/devel/py-argparse-manpage/PLIST \
    pkgsrc/devel/py-argparse-manpage/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-argparse-manpage/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-argparse-manpage/ALTERNATIVES:1.1
--- /dev/null   Thu Jun  1 04:30:44 2023
+++ pkgsrc/devel/py-argparse-manpage/ALTERNATIVES       Thu Jun  1 04:30:44 2023
@@ -0,0 +1 @@
+bin/argparse-manpage @PREFIX@/bin/argparse-manpage-@PYVERSSUFFIX@
Index: pkgsrc/devel/py-argparse-manpage/DESCR
diff -u /dev/null pkgsrc/devel/py-argparse-manpage/DESCR:1.1
--- /dev/null   Thu Jun  1 04:30:44 2023
+++ pkgsrc/devel/py-argparse-manpage/DESCR      Thu Jun  1 04:30:44 2023
@@ -0,0 +1,10 @@
+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.
Index: pkgsrc/devel/py-argparse-manpage/Makefile
diff -u /dev/null pkgsrc/devel/py-argparse-manpage/Makefile:1.1
--- /dev/null   Thu Jun  1 04:30:44 2023
+++ pkgsrc/devel/py-argparse-manpage/Makefile   Thu Jun  1 04:30:44 2023
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2023/06/01 04:30:44 wiz Exp $
+
+DISTNAME=      argparse-manpage-4.3
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_PYPI:=a/argparse-manpage/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/praiskup/argparse-manpage
+COMMENT=       Build manual page from python's ArgumentParser object
+LICENSE=       apache-2.0
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+INSTALLATION_DIRS=     ${PKGMANDIR}
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} argparse-manpage argparse-manpage-${PYVERSSUFFIX}
+       cd ${DESTDIR}${PREFIX}/share/man && ${MV} * ${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=      ${PYPKGPREFIX}-tomli-[0-9]*:../../textproc/py-tomli
+.endif
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-argparse-manpage/PLIST
diff -u /dev/null pkgsrc/devel/py-argparse-manpage/PLIST:1.1
--- /dev/null   Thu Jun  1 04:30:44 2023
+++ pkgsrc/devel/py-argparse-manpage/PLIST      Thu Jun  1 04:30:44 2023
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1 2023/06/01 04:30:44 wiz Exp $
+bin/argparse-manpage-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/argparse_manpage/__init__.py
+${PYSITELIB}/argparse_manpage/__init__.pyc
+${PYSITELIB}/argparse_manpage/cli.py
+${PYSITELIB}/argparse_manpage/cli.pyc
+${PYSITELIB}/argparse_manpage/compat.py
+${PYSITELIB}/argparse_manpage/compat.pyc
+${PYSITELIB}/argparse_manpage/manpage.py
+${PYSITELIB}/argparse_manpage/manpage.pyc
+${PYSITELIB}/argparse_manpage/tooling.py
+${PYSITELIB}/argparse_manpage/tooling.pyc
+${PYSITELIB}/build_manpages/__init__.py
+${PYSITELIB}/build_manpages/__init__.pyc
+${PYSITELIB}/build_manpages/build_manpage.py
+${PYSITELIB}/build_manpages/build_manpage.pyc
+${PYSITELIB}/build_manpages/build_manpages.py
+${PYSITELIB}/build_manpages/build_manpages.pyc
+${PYSITELIB}/build_manpages/compat.py
+${PYSITELIB}/build_manpages/compat.pyc
+${PYSITELIB}/build_manpages/manpage.py
+${PYSITELIB}/build_manpages/manpage.pyc
+man/man1/argparse-manpage.1
Index: pkgsrc/devel/py-argparse-manpage/distinfo
diff -u /dev/null pkgsrc/devel/py-argparse-manpage/distinfo:1.1
--- /dev/null   Thu Jun  1 04:30:44 2023
+++ pkgsrc/devel/py-argparse-manpage/distinfo   Thu Jun  1 04:30:44 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/06/01 04:30:44 wiz Exp $
+
+BLAKE2s (argparse-manpage-4.3.tar.gz) = fe4692929c2c9ca95571f5db698e06b02ee1eb4efdc002d9df8451038ab458d0
+SHA512 (argparse-manpage-4.3.tar.gz) = 4668fd4609b36172c374dbf4f398e62641fd742c369d0ca072018a6615cfccbe688db589ba51e91c7b67f987893fb165dae9646b95758755467870e2560f5d2f
+Size (argparse-manpage-4.3.tar.gz) = 57321 bytes



Home | Main Index | Thread Index | Old Index