[arch-commits] Commit in python-cherrypy/repos/community-any (3 files)

Thore Bödecker foxxx0 at archlinux.org
Tue Sep 4 13:29:44 UTC 2018


    Date: Tuesday, September 4, 2018 @ 13:29:43
  Author: foxxx0
Revision: 376641

archrelease: copy trunk to community-any

Added:
  python-cherrypy/repos/community-any/PKGBUILD
    (from rev 376640, python-cherrypy/trunk/PKGBUILD)
  python-cherrypy/repos/community-any/fix-legacy-contextlib2-import.patch
    (from rev 376640, python-cherrypy/trunk/fix-legacy-contextlib2-import.patch)
Deleted:
  python-cherrypy/repos/community-any/PKGBUILD

-------------------------------------+
 PKGBUILD                            |  106 ++++++++++++++++++----------------
 fix-legacy-contextlib2-import.patch |   30 +++++++++
 2 files changed, 88 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-04 13:29:38 UTC (rev 376640)
+++ PKGBUILD	2018-09-04 13:29:43 UTC (rev 376641)
@@ -1,48 +0,0 @@
-# Maintainer:  Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: Laurent Soest <laurent.soest at gmail.com>
-# Contributor: 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'
-_pkgname="${pkgname#python-}"
-pkgver=18.0.0
-pkgrel=1
-pkgdesc='A pythonic, object-oriented web development framework'
-arch=('any')
-url='https://cherrypy.org'
-license=('BSD')
-depends=('python' 'python-six' 'python-cheroot' 'python-portend' 'python-jaraco'
-  'python-more-itertools' 'python-zc.lockfile')
-makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six'
-  'python-cheroot' 'python-portend' 'python-more-itertools' 'python-zc.lockfile')
-checkdepends=('python-tox')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v$pkgver.tar.gz")
-sha512sums=('4c1ace8107a436214372b029ba89417b74c82438d281be648abae9f4aa07cae5d9187c0d2ce212125a16ca8acc09b2b26812cd3319386b4be3aa27548cdfa06b')
-
-prepare() {
-  :
-}
-
-build() {
-  # setuptools wont find version from git tag
-  export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  python ./setup.py build
-}
-
-check() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  tox
-}
-
-package() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-
-  python ./setup.py install --root="${pkgdir}" --optimize=1
-
-  install -Dm644 LICENSE.md \
-    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
-}

Copied: python-cherrypy/repos/community-any/PKGBUILD (from rev 376640, python-cherrypy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-04 13:29:43 UTC (rev 376641)
@@ -0,0 +1,58 @@
+# Maintainer:  Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Laurent Soest <laurent.soest at gmail.com>
+# Contributor: 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'
+_pkgname="${pkgname#python-}"
+pkgver=18.0.0
+pkgrel=2
+pkgdesc='A pythonic, object-oriented web development framework'
+arch=('any')
+url='https://cherrypy.org'
+license=('BSD')
+depends=('python' 'python-six' 'python-cheroot' 'python-portend' 'python-jaraco'
+  'python-more-itertools' 'python-zc.lockfile')
+makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six'
+  'python-cheroot' 'python-portend' 'python-more-itertools' 'python-zc.lockfile')
+checkdepends=('python-tox')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v$pkgver.tar.gz"
+        'fix-legacy-contextlib2-import.patch')
+sha512sums=('4c1ace8107a436214372b029ba89417b74c82438d281be648abae9f4aa07cae5d9187c0d2ce212125a16ca8acc09b2b26812cd3319386b4be3aa27548cdfa06b'
+            '8cd6910177c4057252c4ad7d049265f2528f808feb81e15e45e1a0f15f8f75f177059fdd98614de8a9e15ba5616f8feb394c06f6eb10bedbd2effac3104d76c7')
+
+prepare() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  # apply patch from the source array (should be a pacman feature)
+  local filename
+  for filename in "${source[@]}"; do
+    if [[ "$filename" =~ \.patch$ ]]; then
+      msg2 "Applying patch ${filename##*/}"
+      patch -p1 -N -i "$srcdir/${filename##*/}"
+    fi
+  done
+}
+
+build() {
+  # setuptools wont find version from git tag
+  export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python ./setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  tox
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+
+  python ./setup.py install --root="${pkgdir}" --optimize=1
+
+  install -Dm644 LICENSE.md \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+}

Copied: python-cherrypy/repos/community-any/fix-legacy-contextlib2-import.patch (from rev 376640, python-cherrypy/trunk/fix-legacy-contextlib2-import.patch)
===================================================================
--- fix-legacy-contextlib2-import.patch	                        (rev 0)
+++ fix-legacy-contextlib2-import.patch	2018-09-04 13:29:43 UTC (rev 376641)
@@ -0,0 +1,30 @@
+--- a/cherrypy/lib/sessions.py	2018-09-02 01:11:12.000000000 +0200
++++ b/cherrypy/lib/sessions.py	2018-09-04 15:24:32.137916798 +0200
+@@ -109,7 +109,7 @@ import binascii
+ 
+ import six
+ from six.moves import cPickle as pickle
+-import contextlib2
++import contextlib
+ 
+ import zc.lockfile
+ 
+@@ -572,7 +572,7 @@ class FileSession(Session):
+     def release_lock(self, path=None):
+         """Release the lock on the currently-loaded session data."""
+         self.lock.close()
+-        with contextlib2.suppress(FileNotFoundError):
++        with contextlib.suppress(FileNotFoundError):
+             os.remove(self.lock._path)
+         self.locked = False
+ 
+--- a/setup.py	2018-09-02 01:11:12.000000000 +0200
++++ b/setup.py	2018-09-04 15:24:42.964449629 +0200
+@@ -63,7 +63,6 @@ params = dict(
+         'portend>=2.1.1',
+         'more_itertools',
+         'zc.lockfile',
+-        'contextlib2',
+     ],
+     extras_require={
+         'docs': [



More information about the arch-commits mailing list