From 88bd0c416d48ce963318d3507ae7b7e767962cb5 Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Fri, 8 Jan 2016 04:26:45 +0000 Subject: [NEW] www/py-cookies: Friendlier RFC 6265-compliant cookie parser/renderer cookies.py is a Python module for working with HTTP cookies: parsing and rendering 'Cookie:' request headers and 'Set-Cookie:' response headers, and exposing a convenient API for creating and modifying cookies. It can be used as a replacement of Python's Cookie.py (aka http.cookies). WWW: https://github.com/sashahart/cookies PR: 205914 Submitted by: Brendan Molloy --- www/Makefile | 1 + www/py-cookies/Makefile | 25 +++++++++++++++++++++++++ www/py-cookies/distinfo | 2 ++ www/py-cookies/pkg-descr | 6 ++++++ 4 files changed, 34 insertions(+) create mode 100644 www/py-cookies/Makefile create mode 100644 www/py-cookies/distinfo create mode 100644 www/py-cookies/pkg-descr diff --git a/www/Makefile b/www/Makefile index cc56645f11f4..90600014760d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1516,6 +1516,7 @@ SUBDIR += py-clientform SUBDIR += py-collective.easytemplate SUBDIR += py-collective.templateengines + SUBDIR += py-cookies SUBDIR += py-cssmin SUBDIR += py-cssselect SUBDIR += py-cssutils diff --git a/www/py-cookies/Makefile b/www/py-cookies/Makefile new file mode 100644 index 000000000000..6eda55257a3a --- /dev/null +++ b/www/py-cookies/Makefile @@ -0,0 +1,25 @@ +# Created by: Brendan Molloy +# $FreeBSD$ + +PORTNAME= cookies +PORTVERSION= 2.2.1 +CATEGORIES= www devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= brendan+freebsd@bbqsrc.net +COMMENT= Friendlier RFC 6265-compliant cookie parser/renderer + +LICENSE= MIT + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +do-test: + @(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) + +.include diff --git a/www/py-cookies/distinfo b/www/py-cookies/distinfo new file mode 100644 index 000000000000..9020000a17b9 --- /dev/null +++ b/www/py-cookies/distinfo @@ -0,0 +1,2 @@ +SHA256 (cookies-2.2.1.tar.gz) = d6b698788cae4cfa4e62ef8643a9ca332b79bd96cb314294b864ae8d7eb3ee8e +SIZE (cookies-2.2.1.tar.gz) = 40704 diff --git a/www/py-cookies/pkg-descr b/www/py-cookies/pkg-descr new file mode 100644 index 000000000000..edb435198310 --- /dev/null +++ b/www/py-cookies/pkg-descr @@ -0,0 +1,6 @@ +cookies.py is a Python module for working with HTTP cookies: parsing and +rendering 'Cookie:' request headers and 'Set-Cookie:' response headers, and +exposing a convenient API for creating and modifying cookies. It can be used +as a replacement of Python's Cookie.py (aka http.cookies). + +WWW: https://github.com/sashahart/cookies -- cgit v1.2.3