[arch-commits] Commit in python-cherrypy/repos/community-any (4 files)
Jelle van der Waa
jelle at nymeria.archlinux.org
Fri Jul 5 16:15:01 UTC 2013
Date: Friday, July 5, 2013 @ 18:15:01
Author: jelle
Revision: 93555
archrelease: copy trunk to community-any
Added:
python-cherrypy/repos/community-any/PKGBUILD
(from rev 93554, python-cherrypy/trunk/PKGBUILD)
python-cherrypy/repos/community-any/cherrypy-python33.patch
(from rev 93554, python-cherrypy/trunk/cherrypy-python33.patch)
Deleted:
python-cherrypy/repos/community-any/PKGBUILD
python-cherrypy/repos/community-any/cherrypy-python33.patch
-------------------------+
PKGBUILD | 115 ++++++++++++++++++++++------------------------
cherrypy-python33.patch | 100 ++++++++++++++++++++--------------------
2 files changed, 107 insertions(+), 108 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-07-05 16:13:33 UTC (rev 93554)
+++ PKGBUILD 2013-07-05 16:15:01 UTC (rev 93555)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Contributor: Kaiting Chen <kaitocracy at gmail.com>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-# Contributor: Armando M. Baratti <amblistas at ajato.com.br>
-# Contributor: Florian Richter <Florian_Richter at gmx.de>
-pkgname=('python-cherrypy' 'python2-cherrypy')
-pkgver=3.2.2
-pkgrel=2
-pkgdesc="A pythonic, object-oriented web development framework"
-arch=('any')
-url="http://www.cherrypy.org"
-license=('BSD')
-makedepends=('python' 'python2')
-source=("http://download.cherrypy.org/cherrypy/${pkgver}/CherryPy-${pkgver}.tar.gz" cherrypy-python33.patch)
-md5sums=('c1b1e9577f65f9bb88bfd1b15b93b911'
- '2fbec41d41c721beaf386ccd5f64c962')
-
-build() {
- (cd "${srcdir}/CherryPy-${pkgver}"; patch -p1 -i "${srcdir}/cherrypy-python33.patch")
- cp -r CherryPy-${pkgver} CherryPy2-${pkgver}
-
- cd CherryPy-${pkgver}
- python ./setup.py build
-
- cd "${srcdir}/CherryPy2-${pkgver}"
- sed \
- -e 's_#! /usr/bin/env python_&2_' \
- -i cherrypy/cherryd
- sed \
- -e 's_#!/usr/bin/python_&2_' \
- -i cherrypy/test/sessiondemo.py
- python2 ./setup.py build
-
-}
-
-package_python-cherrypy() {
- depends=('python')
-
- cd CherryPy-${pkgver}
-
- python ./setup.py install --root="${pkgdir}" --optimize=1
-
- install -Dm644 cherrypy/LICENSE.txt \
- "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.txt"
-}
-
-package_python2-cherrypy() {
- depends=('python2')
-
- cd CherryPy2-${pkgver}
-
- python2 ./setup.py install --root="${pkgdir}" --optimize=1
- mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
-
- install -Dm644 cherrypy/LICENSE.txt \
- "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.txt"
-}
Copied: python-cherrypy/repos/community-any/PKGBUILD (from rev 93554, python-cherrypy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-07-05 16:15:01 UTC (rev 93555)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Armando M. Baratti <amblistas at ajato.com.br>
+# Contributor: Florian Richter <Florian_Richter at gmx.de>
+pkgname=('python-cherrypy' 'python2-cherrypy')
+pkgver=3.2.3
+pkgrel=1
+pkgdesc="A pythonic, object-oriented web development framework"
+arch=('any')
+url="http://www.cherrypy.org"
+license=('BSD')
+makedepends=('python' 'python2')
+source=("https://bitbucket.org/cherrypy/cherrypy/downloads/CherryPy-${pkgver}.tar.gz")
+md5sums=('cf64caa265d08f391da7539196fb36d0')
+
+build() {
+ cp -r CherryPy-${pkgver} CherryPy2-${pkgver}
+
+ cd CherryPy-${pkgver}
+ python ./setup.py build
+
+ cd "${srcdir}/CherryPy2-${pkgver}"
+ sed \
+ -e 's_#! /usr/bin/env python_&2_' \
+ -i cherrypy/cherryd
+ sed \
+ -e 's_#!/usr/bin/python_&2_' \
+ -i cherrypy/test/sessiondemo.py
+ python2 ./setup.py build
+
+}
+
+package_python-cherrypy() {
+ depends=('python')
+
+ cd CherryPy-${pkgver}
+
+ python ./setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 cherrypy/LICENSE.txt \
+ "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.txt"
+}
+
+package_python2-cherrypy() {
+ depends=('python2')
+
+ cd CherryPy2-${pkgver}
+
+ python2 ./setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
+
+ install -Dm644 cherrypy/LICENSE.txt \
+ "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.txt"
+}
+md5sums=('cf64caa265d08f391da7539196fb36d0')
Deleted: cherrypy-python33.patch
===================================================================
--- cherrypy-python33.patch 2013-07-05 16:13:33 UTC (rev 93554)
+++ cherrypy-python33.patch 2013-07-05 16:15:01 UTC (rev 93555)
@@ -1,50 +0,0 @@
-# HG changeset patch
-# User Jason R. Coombs <jaraco at jaraco.com>
-# Date 1349660887 14400
-# Branch cherrypy-3.2.x
-# Node ID 01b6adcb3849b2ff4fa31e3298b494f6b136369e
-# Parent 9820107d4ffb8058fd507888f90e28c695f6b4c0
-Timer class was renamed from _Timer to Timer in Python 3.3. This change adds a compatibility shim to detect this change and reference the base class accordingly. Fixes #1163.
-
-diff -r 9820107d4ffb8058fd507888f90e28c695f6b4c0 -r 01b6adcb3849b2ff4fa31e3298b494f6b136369e cherrypy/_cpcompat.py
---- a/cherrypy/_cpcompat.py Wed Oct 03 08:02:12 2012 -0400
-+++ b/cherrypy/_cpcompat.py Sun Oct 07 21:48:07 2012 -0400
-@@ -18,6 +18,7 @@
- import os
- import re
- import sys
-+import threading
-
- if sys.version_info >= (3, 0):
- py3k = True
-@@ -325,3 +326,9 @@
- # Python 2
- def next(i):
- return i.next()
-+
-+if sys.version_info >= (3,3):
-+ Timer = threading.Timer
-+else:
-+ # Python 3.2 and earlier
-+ Timer = threading._Timer
-diff -r 9820107d4ffb8058fd507888f90e28c695f6b4c0 -r 01b6adcb3849b2ff4fa31e3298b494f6b136369e cherrypy/process/plugins.py
---- a/cherrypy/process/plugins.py Wed Oct 03 08:02:12 2012 -0400
-+++ b/cherrypy/process/plugins.py Sun Oct 07 21:48:07 2012 -0400
-@@ -7,7 +7,7 @@
- import time
- import threading
-
--from cherrypy._cpcompat import basestring, get_daemon, get_thread_ident, ntob, set
-+from cherrypy._cpcompat import basestring, get_daemon, get_thread_ident, ntob, set, Timer
-
- # _module__file__base is used by Autoreload to make
- # absolute any filenames retrieved from sys.modules which are not
-@@ -421,7 +421,7 @@
- pass
-
-
--class PerpetualTimer(threading._Timer):
-+class PerpetualTimer(Timer):
- """A responsive subclass of threading._Timer whose run() method repeats.
-
- Use this timer only when you really need a very interruptible timer;
Copied: python-cherrypy/repos/community-any/cherrypy-python33.patch (from rev 93554, python-cherrypy/trunk/cherrypy-python33.patch)
===================================================================
--- cherrypy-python33.patch (rev 0)
+++ cherrypy-python33.patch 2013-07-05 16:15:01 UTC (rev 93555)
@@ -0,0 +1,50 @@
+# HG changeset patch
+# User Jason R. Coombs <jaraco at jaraco.com>
+# Date 1349660887 14400
+# Branch cherrypy-3.2.x
+# Node ID 01b6adcb3849b2ff4fa31e3298b494f6b136369e
+# Parent 9820107d4ffb8058fd507888f90e28c695f6b4c0
+Timer class was renamed from _Timer to Timer in Python 3.3. This change adds a compatibility shim to detect this change and reference the base class accordingly. Fixes #1163.
+
+diff -r 9820107d4ffb8058fd507888f90e28c695f6b4c0 -r 01b6adcb3849b2ff4fa31e3298b494f6b136369e cherrypy/_cpcompat.py
+--- a/cherrypy/_cpcompat.py Wed Oct 03 08:02:12 2012 -0400
++++ b/cherrypy/_cpcompat.py Sun Oct 07 21:48:07 2012 -0400
+@@ -18,6 +18,7 @@
+ import os
+ import re
+ import sys
++import threading
+
+ if sys.version_info >= (3, 0):
+ py3k = True
+@@ -325,3 +326,9 @@
+ # Python 2
+ def next(i):
+ return i.next()
++
++if sys.version_info >= (3,3):
++ Timer = threading.Timer
++else:
++ # Python 3.2 and earlier
++ Timer = threading._Timer
+diff -r 9820107d4ffb8058fd507888f90e28c695f6b4c0 -r 01b6adcb3849b2ff4fa31e3298b494f6b136369e cherrypy/process/plugins.py
+--- a/cherrypy/process/plugins.py Wed Oct 03 08:02:12 2012 -0400
++++ b/cherrypy/process/plugins.py Sun Oct 07 21:48:07 2012 -0400
+@@ -7,7 +7,7 @@
+ import time
+ import threading
+
+-from cherrypy._cpcompat import basestring, get_daemon, get_thread_ident, ntob, set
++from cherrypy._cpcompat import basestring, get_daemon, get_thread_ident, ntob, set, Timer
+
+ # _module__file__base is used by Autoreload to make
+ # absolute any filenames retrieved from sys.modules which are not
+@@ -421,7 +421,7 @@
+ pass
+
+
+-class PerpetualTimer(threading._Timer):
++class PerpetualTimer(Timer):
+ """A responsive subclass of threading._Timer whose run() method repeats.
+
+ Use this timer only when you really need a very interruptible timer;
More information about the arch-commits
mailing list