1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

New port: devel/py-positional

positional provides a decorator which enforces only some args may be passed
positionally. The idea and some of the code was taken from the oauth2 client
of the google-api client.

The decorator makes it easy to support Python 3 style key-word only
parameters.

WWW: https://github.com/morganfainberg/positional

Reviewed by:		koobs, mat
Differential Revision:	D5540
This commit is contained in:
Roman Bogorodskiy 2016-03-04 16:34:48 +00:00
parent 855c0025dc
commit 1b1f48b9fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410134
4 changed files with 33 additions and 0 deletions

View File

@ -4222,6 +4222,7 @@
SUBDIR += py-pluggy
SUBDIR += py-ply
SUBDIR += py-polib
SUBDIR += py-positional
SUBDIR += py-posix_ipc
SUBDIR += py-pp
SUBDIR += py-pqueue

View File

@ -0,0 +1,22 @@
# $FreeBSD$
PORTNAME= positional
PORTVERSION= 1.0.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= novel@FreeBSD.org
COMMENT= Library to enforce positional or key-word arguments
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.6:${PORTSDIR}/devel/py-pbr
NO_ARCH= yes
USES= python
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (positional-1.0.1.tar.gz) = 54a73f3593c6e30e9cdd0a727503b7c5dddbb75fb78bb681614b08dfde2bc444
SIZE (positional-1.0.1.tar.gz) = 16398

View File

@ -0,0 +1,8 @@
positional provides a decorator which enforces only some args may be passed
positionally. The idea and some of the code was taken from the oauth2 client
of the google-api client.
The decorator makes it easy to support Python 3 style key-word only
parameters.
WWW: https://github.com/morganfainberg/positional