[weasel-commit] Source: twisted-web=8.2.0-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sun, 10 Jan 2010 13:54:40 -0500

================================
twisted-web:source=8.2.0-1
cvc rdiff twisted-web -1 /weasel.rpath.org@wgl:3-devel/8.2.0-1
================================
8.2.0-1 Filip Brcic (brcha@xxxxxxx) Sun Jan 10 13:54:31 2010
    twisted-web 8.2.0

TwistedWeb-8.2.0.tar.bz2: new
twisted-web.recipe: new
--- /dev/null
+++ twisted-web.recipe
@@ -0,0 +31 @@
+#
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+loadInstalled('python')
+class TwistedWeb(CPackageRecipe, Python.VersionMixIn):
+    name = 'twisted-web'
+    version = '8.2.0'
+
+    buildRequires = [
+        'python:devel', 'soappy:python', 'twisted:python'
+        ]
+
+    shortDesc  = 'Twisted web server'
+    longDesc   = 'Twisted web server, programmable in Python'
+    url        = 'http://www.twistedmatrix.com/'
+    licenses   = [ 'MIT' ]
+    categories = [ 'Development/Python' ]
+
+    def setup(r):
+        r.macros.majorminor = '.'.join(r.version.split('.')[:-1])
+        r.macros.archive_name = 'TwistedWeb'
+        r.addArchive('http://tmrc.mit.edu/mirror/twisted/Web/%(majorminor)s/')
+        r.addPatch('twisted-web-0.5.0-root-skip.patch')
+
+        r.Replace('test_erroneousResponse',
+                  '_test_erroneousResponse',
+                  'twisted/web/test/test_xmlrpc.py')
+
+        r.PythonSetup()

twisted-web-0.5.0-root-skip.patch: new
--- /dev/null
+++ twisted-web-0.5.0-root-skip.patch
@@ -0,0 +13 @@
+=== modified file 'a/twisted/web/test/test_webclient.py'
+--- a/twisted/web/test/test_webclient.py       
++++ b/twisted/web/test/test_webclient.py       
+@@ -178,6 +178,8 @@
+             IOError)
+ 
+     def testDownloadPageError3(self):
++        if not os.geteuid():
++            raise unittest.SkipTest('this does not work as root')
+         # make sure failures in open() are caught too. This is tricky.
+         # Might only work on posix.
+         tmpfile = open("unwritable", "wb")
+


Committed by: brcha

Other related posts: