[Checkins] SVN: zope.app.http/trunk/ Get ready for release. There
was a ftest that was not being run.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Oct 24 15:16:25 EDT 2007
Log message for revision 81052:
Get ready for release. There was a ftest that was not being run.
Changed:
A zope.app.http/trunk/CHANGES.txt
A zope.app.http/trunk/README.txt
U zope.app.http/trunk/buildout.cfg
D zope.app.http/trunk/setup.cfg
U zope.app.http/trunk/setup.py
_U zope.app.http/trunk/src/
D zope.app.http/trunk/src/zope/app/http/ftests/
U zope.app.http/trunk/src/zope/app/http/interfaces.py
A zope.app.http/trunk/src/zope/app/http/tests/test_functional_put.py
-=-
Added: zope.app.http/trunk/CHANGES.txt
===================================================================
--- zope.app.http/trunk/CHANGES.txt (rev 0)
+++ zope.app.http/trunk/CHANGES.txt 2007-10-24 19:16:25 UTC (rev 81052)
@@ -0,0 +1,8 @@
+=======
+CHANGES
+=======
+
+3.4.0 (2007-10-24)
+------------------
+
+- Initial release independent of the main Zope tree.
Property changes on: zope.app.http/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zope.app.http/trunk/README.txt
===================================================================
--- zope.app.http/trunk/README.txt (rev 0)
+++ zope.app.http/trunk/README.txt 2007-10-24 19:16:25 UTC (rev 81052)
@@ -0,0 +1,3 @@
+This package implements the simplest HTTP behavior within the Zope
+Puyblisher. It implements all HTTP verbs as views and defines the necessary
+HTTP exceptions.
Property changes on: zope.app.http/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: zope.app.http/trunk/buildout.cfg
===================================================================
--- zope.app.http/trunk/buildout.cfg 2007-10-24 18:56:23 UTC (rev 81051)
+++ zope.app.http/trunk/buildout.cfg 2007-10-24 19:16:25 UTC (rev 81052)
@@ -1,7 +1,6 @@
[buildout]
-develop = .
+develop = .
parts = test
-find-links = http://download.zope.org/distribution/
[test]
recipe = zc.recipe.testrunner
Deleted: zope.app.http/trunk/setup.cfg
===================================================================
--- zope.app.http/trunk/setup.cfg 2007-10-24 18:56:23 UTC (rev 81051)
+++ zope.app.http/trunk/setup.cfg 2007-10-24 19:16:25 UTC (rev 81052)
@@ -1,2 +0,0 @@
-[egg_info]
-tag_svn_revision = 1
\ No newline at end of file
Modified: zope.app.http/trunk/setup.py
===================================================================
--- zope.app.http/trunk/setup.py 2007-10-24 18:56:23 UTC (rev 81051)
+++ zope.app.http/trunk/setup.py 2007-10-24 19:16:25 UTC (rev 81052)
@@ -15,21 +15,42 @@
$Id$
"""
-
import os
+from setuptools import setup, find_packages
-from setuptools import setup, find_packages, Extension
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name='zope.app.http',
- version = '3.4.0b1',
- url='http://svn.zope.org/zope.app.http',
- license='ZPL 2.1',
+ version = '3.4.0',
author='Zope Corporation and Contributors',
author_email='zope3-dev at zope.org',
- packages=find_packages('src'),
- package_dir = {'': 'src'},
+ description='HTTP Behavior for the Zope Publisher',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 http publisher view",
+ classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ url='http://cheeseshop.python.org/pypi/zope.app.http',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
+ package_dir = {'': 'src'},
namespace_packages=['zope', 'zope.app'],
- extras_require=dict(test=['zope.app.testing']),
+ extras_require=dict(
+ test=['zope.app.testing',
+ 'zope.app.securitypolicy',
+ 'zope.app.file']),
install_requires=['setuptools',
'zope.interface',
'zope.app.zapi',
@@ -39,6 +60,5 @@
'zope.filerepresentation',
],
include_package_data = True,
-
zip_safe = False,
)
Property changes on: zope.app.http/trunk/src
___________________________________________________________________
Name: svn:ignore
+ zope.app.http.egg-info
Modified: zope.app.http/trunk/src/zope/app/http/interfaces.py
===================================================================
--- zope.app.http/trunk/src/zope/app/http/interfaces.py 2007-10-24 18:56:23 UTC (rev 81051)
+++ zope.app.http/trunk/src/zope/app/http/interfaces.py 2007-10-24 19:16:25 UTC (rev 81052)
@@ -2,14 +2,14 @@
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""Zope-specific HTTP interfaces
Copied: zope.app.http/trunk/src/zope/app/http/tests/test_functional_put.py (from rev 81051, zope.app.http/trunk/src/zope/app/http/ftests/test_put.py)
===================================================================
--- zope.app.http/trunk/src/zope/app/http/tests/test_functional_put.py (rev 0)
+++ zope.app.http/trunk/src/zope/app/http/tests/test_functional_put.py 2007-10-24 19:16:25 UTC (rev 81052)
@@ -0,0 +1,60 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test HTTP PUT verb
+
+$Id$
+"""
+
+from unittest import TestSuite, makeSuite
+
+from zope.app.testing.functional import FunctionalTestCase, HTTPCaller
+from zope.app.http.testing import AppHttpLayer
+
+class TestPUT(FunctionalTestCase):
+ def test_put(self):
+ # PUT something for the first time
+ response = HTTPCaller()(r"""PUT /testfile.txt HTTP/1.1
+Authorization: Basic bWdyOm1ncnB3
+Content-Length: 20
+Content-Type: text/plain
+
+This is just a test.""")
+ self.assertEquals(response._response.getStatus(), 201)
+ self.assertEquals(response._response.getHeader("Location"),
+ "http://localhost/testfile.txt")
+
+ response = HTTPCaller()(r"""GET /testfile.txt HTTP/1.1
+Authorization: Basic bWdyOm1ncnB3""")
+ self.assertEquals(response.getBody(), "This is just a test.")
+
+ # now modify it
+ response = HTTPCaller()(r"""PUT /testfile.txt HTTP/1.1
+Authorization: Basic bWdyOm1ncnB3
+Content-Length: 22
+Content-Type: text/plain
+
+And now it is modified.""")
+ self.assertEquals(response._response.getStatus(), 200)
+ self.assertEquals(response.getBody(), "")
+
+ response = HTTPCaller()(r"""GET /testfile.txt HTTP/1.1
+Authorization: Basic bWdyOm1ncnB3""")
+ self.assertEquals(response.getBody(), "And now it is modified.")
+
+
+def test_suite():
+ TestPUT.layer = AppHttpLayer
+ return TestSuite((
+ makeSuite(TestPUT),
+ ))
More information about the Checkins
mailing list