mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
www/py-selector: WSGI request delegation (a.k.a. routing)
This distribution provides WSGI middleware for "RESTful" dispatch of requests to WSGI applications by URL path and HTTP request method. Selector now also comes with components for environ-based dispatch and on-the-fly middleware composition. There is a very simple optional mini-language for path matching expressions. Alternately we can easily use regular expressions directly or even create our own mini-language. There is a simple "mapping file" format that can be used. There are no architecture specific features (to MVC or whatever). Neither are there any framework specific features. WWW: https://github.com/lukearno/selector/ PR: ports/181860 Submitted by: Trevor Caira <trevor bitba.se>
This commit is contained in:
parent
80d5261e88
commit
33e09467b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327012
@ -1649,6 +1649,7 @@
|
||||
SUBDIR += py-scgi
|
||||
SUBDIR += py-scrapy
|
||||
SUBDIR += py-scriptaculous
|
||||
SUBDIR += py-selector
|
||||
SUBDIR += py-selenium
|
||||
SUBDIR += py-slimmer
|
||||
SUBDIR += py-slumber
|
||||
|
25
www/py-selector/Makefile
Normal file
25
www/py-selector/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# Created by: Trevor Caira <trevor@bitba.se>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= selector
|
||||
PORTVERSION= 0.9.4
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= trevor@bitba.se
|
||||
COMMENT= WSGI request delegation (a.k.a. routing)
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}resolver>=0.2.1:${PORTSDIR}/devel/py-resolver
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= easy_install
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's/license="MIT",/license="MIT", zip_safe=False,/' \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/py-selector/distinfo
Normal file
2
www/py-selector/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (selector-0.9.4.tar.gz) = 6eb14570e638eecc8edb75b20dcec3809c55db92116f8f4bfd9fecbeb6457c3f
|
||||
SIZE (selector-0.9.4.tar.gz) = 5723
|
13
www/py-selector/pkg-descr
Normal file
13
www/py-selector/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
WSGI request delegation. (AKA routing.)
|
||||
|
||||
This distribution provides WSGI middleware for "RESTful" dispatch of
|
||||
requests to WSGI applications by URL path and HTTP request
|
||||
method. Selector now also comes with components for environ-based
|
||||
dispatch and on-the-fly middleware composition. There is a very simple
|
||||
optional mini-language for path matching expressions. Alternately we
|
||||
can easily use regular expressions directly or even create our own
|
||||
mini-language. There is a simple "mapping file" format that can be
|
||||
used. There are no architecture specific features (to MVC or
|
||||
whatever). Neither are there any framework specific features.
|
||||
|
||||
WWW: https://github.com/lukearno/selector/
|
11
www/py-selector/pkg-plist
Normal file
11
www/py-selector/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/selector.py
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/selector.pyc
|
||||
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/selector.pyo
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
Loading…
Reference in New Issue
Block a user