Import py-CherryPy 2.2.1

CherryPy is a pythonic, object-oriented web development framework.

CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program. This
usually results in smaller source code developed in less time.

From Joerg Zinke <umaxx@oleco.net>
This commit is contained in:
alek 2006-05-18 08:44:51 +00:00
parent bcd273fe2d
commit 4842273a41
6 changed files with 246 additions and 0 deletions

26
www/py-CherryPy/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/05/18 08:44:51 alek Exp $
COMMENT= "pythonic, object-oriented web development framework"
DISTNAME= CherryPy-2.2.1
PKGNAME= py-${DISTNAME}
CATEGORIES= www
HOMEPAGE= http://www.cherrypy.org/
MAINTAINER= Joerg Zinke <umaxx@oleco.net>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cherrypy/}
MODULES= lang/python
do-regress:
@cd ${WRKSRC} && ${MODPY_BIN} ./cherrypy/test/test.py
.include <bsd.port.mk>

4
www/py-CherryPy/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (CherryPy-2.2.1.tar.gz) = 14bf17b0706bc480342cb8fcfaed74cd
RMD160 (CherryPy-2.2.1.tar.gz) = c8f406c5eaedb6f710dc746528b8474df48cb3c8
SHA1 (CherryPy-2.2.1.tar.gz) = cda044ceed78059a56c54ce157bca564f4907a51
SIZE (CherryPy-2.2.1.tar.gz) = 219932

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-cherrypy_test_test_py,v 1.1.1.1 2006/05/18 08:44:51 alek Exp $
--- cherrypy/test/test.py.orig Tue May 16 09:59:36 2006
+++ cherrypy/test/test.py Tue May 16 09:59:51 2006
@@ -311,7 +311,7 @@ def run():
CommandLineParser(testList).run()
print
- raw_input('hit enter')
+ #raw_input('hit enter')
if __name__ == '__main__':

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-cherrypy_test_webtest_py,v 1.1.1.1 2006/05/18 08:44:51 alek Exp $
--- cherrypy/test/webtest.py.orig Tue May 16 09:55:50 2006
+++ cherrypy/test/webtest.py Tue May 16 09:57:15 2006
@@ -368,9 +368,14 @@ def openURL(url, headers=None, method="G
conn = http_conn(host, port)
conn._http_vsn_str = protocol
conn._http_vsn = int("".join([x for x in protocol if x.isdigit()]))
- conn.putrequest(method.upper(), url,
- skip_host=True, skip_accept_encoding=True)
-
+ # skip_accept_encoding argument added in python version 2.4
+ if sys.version_info < (2, 4):
+ conn.putrequest(method.upper(), url,
+ skip_host=True)
+ else:
+ conn.putrequest(method.upper(), url,
+ skip_host=True, skip_accept_encoding=True)
+
for key, value in headers:
conn.putheader(key, value)
conn.endheaders()

View File

@ -0,0 +1,8 @@
CherryPy is a pythonic, object-oriented web development framework.
CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program. This
usually results in smaller source code developed in less time.
CherryPy is now more than three years old and it is has proven very fast
and stable. It is being used in production by many sites, from the
simplest ones to the most demanding ones.

175
www/py-CherryPy/pkg/PLIST Normal file
View File

@ -0,0 +1,175 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/18 08:44:51 alek Exp $
lib/python${MODPY_VERSION}/site-packages/cherrypy/
lib/python${MODPY_VERSION}/site-packages/cherrypy/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpcgifs.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpcgifs.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpengine.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpengine.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cperror.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cperror.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cphttptools.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cphttptools.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpserver.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpserver.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpthreadinglocal.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpthreadinglocal.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cptree.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cptree.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cputil.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cputil.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpwsgi.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpwsgi.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpwsgiserver.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/_cpwsgiserver.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/config.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/config.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/favicon.ico
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/basefilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/basefilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/baseurlfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/baseurlfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/cachefilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/cachefilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/decodingfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/decodingfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/encodingfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/encodingfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/gzipfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/gzipfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/logdebuginfofilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/logdebuginfofilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/nsgmlsfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/nsgmlsfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/responseheadersfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/responseheadersfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/sessionauthenticatefilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/sessionauthenticatefilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/sessionfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/sessionfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/staticfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/staticfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/tidyfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/tidyfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/virtualhostfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/virtualhostfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/wsgiappfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/wsgiappfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/xmlrpcfilter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/filters/xmlrpcfilter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/autoreload.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/autoreload.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/covercp.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/covercp.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/cptools.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/cptools.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/defaultformmask.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/defaultformmask.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/filter/
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/filter/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/filter/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/form.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/form.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/httptools.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/httptools.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/profiler.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/lib/profiler.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/benchmark.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/benchmark.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/helper.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/helper.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/modpy.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/modpy.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/standalone_test_alt_script_name.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/standalone_test_alt_script_name.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/static/
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/static/dirback.jpg
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/static/has space.html
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/static/index.html
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/style.css
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_baseurl_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_baseurl_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_cache_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_cache_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_combinedfilters.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_combinedfilters.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_config.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_config.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_core.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_core.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_custom_filters.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_custom_filters.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_decodingencoding_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_decodingencoding_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_gzip_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_gzip_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_http.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_http.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_logdebuginfo_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_logdebuginfo_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_noserver.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_noserver.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_objectmapping.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_objectmapping.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_response_headers_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_response_headers_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_session_concurrency.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_session_concurrency.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_session_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_session_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_sessionauthenticate_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_sessionauthenticate_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_states.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_states.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_static_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_static_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_tutorials.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_tutorials.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_virtualhost_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_virtualhost_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_wsgiapp_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_wsgiapp_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_xmlrpc_filter.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/test_xmlrpc_filter.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/webtest.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/test/webtest.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/README.txt
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/__init__.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/bonus-sqlobject.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/bonus-sqlobject.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/custom_error.html
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/pdf_file.pdf
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut01_helloworld.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut01_helloworld.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut02_expose_methods.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut02_expose_methods.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut03_get_and_post.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut03_get_and_post.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut04_complex_site.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut04_complex_site.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut05_derived_objects.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut05_derived_objects.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut06_default_method.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut06_default_method.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut07_sessions.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut07_sessions.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut08_generators_and_yield.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut08_generators_and_yield.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut09_files.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut09_files.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut10_http_errors.py
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tut10_http_errors.pyc
lib/python${MODPY_VERSION}/site-packages/cherrypy/tutorial/tutorial.conf