import ports/devel/py-autocommand, ok bket

Autocommand turns a function into a command-line program. It converts
the function's parameter signature into command-line arguments, and
automatically runs the function if the module was called as __main__.
In effect, it lets you create a smart main function.
This commit is contained in:
sthen 2022-11-27 10:55:06 +00:00
parent 350b6bf55b
commit 7f0dc691d5
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,23 @@
COMMENT= autogenerate argparse parsers from function signatures
MODPY_EGG_VERSION= 2.2.1
DISTNAME= autocommand-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
HOMEPAGE= https://github.com/Lucretiel/autocommand
# MIT
PERMIT_PACKAGE= Yes
MODULES= lang/python
MODPY_PI= Yes
MODPY_PYBUILD= setuptools
NO_TEST= broken
FLAVORS= python3
FLAVOR= python3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (autocommand-2.2.1.tar.gz) = /tQg6dAnRYIaeClxtYPGlwJZ7gsim+KgpAHhRnpPFw8=
SIZE (autocommand-2.2.1.tar.gz) = 23151

View File

@ -0,0 +1,4 @@
Autocommand turns a function into a command-line program. It converts
the function's parameter signature into command-line arguments, and
automatically runs the function if the module was called as __main__.
In effect, it lets you create a smart main function.

View File

@ -0,0 +1,26 @@
lib/python${MODPY_VERSION}/site-packages/autocommand/
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/LICENSE
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/METADATA
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/autocommand-${MODPY_EGG_VERSION}.dist-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/autocommand/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autoasync.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autoasync.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autocommand.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autocommand.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}automain.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}automain.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autoparse.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}autoparse.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}errors.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/autocommand/${MODPY_PYCACHE}errors.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/autocommand/autoasync.py
lib/python${MODPY_VERSION}/site-packages/autocommand/autocommand.py
lib/python${MODPY_VERSION}/site-packages/autocommand/automain.py
lib/python${MODPY_VERSION}/site-packages/autocommand/autoparse.py
lib/python${MODPY_VERSION}/site-packages/autocommand/errors.py