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

Thore Bödecker foxxx0 at archlinux.org
Mon Sep 10 07:46:53 UTC 2018


    Date: Monday, September 10, 2018 @ 07:46:53
  Author: foxxx0
Revision: 378986

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-10 07:46:47 UTC (rev 378985)
+++ PKGBUILD	2018-09-10 07:46:53 UTC (rev 378986)
@@ -1,58 +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=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/PKGBUILD (from rev 378985, python-cherrypy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-10 07:46:53 UTC (rev 378986)
@@ -0,0 +1,56 @@
+# 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.1
+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=('325e68193697ddcd26534998af0899333c5869071ca5454d2ca93975ebda67904ee9ebe30f325d7fc49d6e137a16dadef8371f650d5286d80b6026c953b1cfd2')
+
+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"
+}

Deleted: fix-legacy-contextlib2-import.patch
===================================================================
--- fix-legacy-contextlib2-import.patch	2018-09-10 07:46:47 UTC (rev 378985)
+++ fix-legacy-contextlib2-import.patch	2018-09-10 07:46:53 UTC (rev 378986)
@@ -1,30 +0,0 @@
---- 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