[arch-commits] Commit in python-cheroot/repos (4 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 03:23:15 UTC 2018


    Date: Saturday, June 30, 2018 @ 03:23:14
  Author: felixonmars
Revision: 347882

archrelease: copy trunk to community-staging-any

Added:
  python-cheroot/repos/community-staging-any/
  python-cheroot/repos/community-staging-any/LICENSE
    (from rev 347881, python-cheroot/trunk/LICENSE)
  python-cheroot/repos/community-staging-any/PKGBUILD
    (from rev 347881, python-cheroot/trunk/PKGBUILD)
  python-cheroot/repos/community-staging-any/cheroot-fix-setup-python3.patch
    (from rev 347881, python-cheroot/trunk/cheroot-fix-setup-python3.patch)

---------------------------------+
 LICENSE                         |    7 ++++
 PKGBUILD                        |   57 ++++++++++++++++++++++++++++++++++++++
 cheroot-fix-setup-python3.patch |   20 +++++++++++++
 3 files changed, 84 insertions(+)

Copied: python-cheroot/repos/community-staging-any/LICENSE (from rev 347881, python-cheroot/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2018-06-30 03:23:14 UTC (rev 347882)
@@ -0,0 +1,7 @@
+Copyright Jason R. Coombs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copied: python-cheroot/repos/community-staging-any/PKGBUILD (from rev 347881, python-cheroot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 03:23:14 UTC (rev 347882)
@@ -0,0 +1,57 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: wangjiezhe <wangjiezhe AT yandex DOT com>
+
+pkgbase='python-cheroot'
+_pkgbase="${pkgbase//python-/}"
+pkgname=('python-cheroot' 'python2-cheroot')
+pkgdesc="Highly-optimized, pure-python HTTP server"
+pkgver=6.3.2
+pkgrel=2
+arch=('any')
+url="https://github.com/cherrypy/cheroot"
+license=('MIT')
+makedepends=('python-six' 'python2-six' 'python-setuptools-scm'
+  'python2-setuptools-scm' 'python2-backports.functools_lru_cache'
+  'python2-backports.unittest_mock' 'tree')
+source=("${pkgbase}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/11/d1/5be0e55bf606978c98a92f286bdf99606eaef636d2356d4947f8bf49084f/cheroot-6.3.2.tar.gz"
+        "LICENSE"
+        "cheroot-fix-setup-python3.patch")
+sha512sums=('bae65749319fbcd3f713926efbd5aefc150fec592ac6f73e83027f1e69cb5b4a6fb1051f199220568f2b704055d3dc70abfe030870c1d5e85ab7113dda7cd086'
+            '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944'
+            '5ec0001c803682f142e3eb1ebcf10614b3d4f2e64dfea874a868b7702a79b429ae86aea5c7b90711d573d5cc25e3296c3b64dc55598d926c06de59d35d8f04bc')
+
+prepare() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  patch -p1 -N -i "${srcdir}/cheroot-fix-setup-python3.patch"
+}
+
+package_python-cheroot() {
+  depends=('python-six')
+
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python setup.py install --root="$pkgdir/" --optimize=1
+
+  # the author has promised to include a LICENSE file in future releases:
+  # https://github.com/jaraco/skeleton/issues/1
+  # for now the LICENSE file has been taken from:
+  # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-cheroot() {
+  depends=('python2-six' 'python2-backports.functools_lru_cache'
+           'python2-backports.unittest_mock')
+
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+
+  # the author has promised to include a LICENSE file in future releases:
+  # https://github.com/jaraco/skeleton/issues/1
+  # for now the LICENSE file has been taken from:
+  # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  mv "${pkgdir}/usr/bin/cheroot" "${pkgdir}/usr/bin/cheroot2"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-cheroot/repos/community-staging-any/cheroot-fix-setup-python3.patch (from rev 347881, python-cheroot/trunk/cheroot-fix-setup-python3.patch)
===================================================================
--- community-staging-any/cheroot-fix-setup-python3.patch	                        (rev 0)
+++ community-staging-any/cheroot-fix-setup-python3.patch	2018-06-30 03:23:14 UTC (rev 347882)
@@ -0,0 +1,20 @@
+--- a/setup.py	2018-04-10 16:26:17.000000000 +0200
++++ b/setup.py	2018-04-13 20:41:04.896135916 +0200
+@@ -43,7 +43,7 @@
+     ),
+     python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
+     install_requires=[
+-        'backports.functools_lru_cache',
++        'backports.functools_lru_cache;python_version<"3.4"',
+         'six>=1.11.0',
+         'more_itertools>=2.6',
+     ],
+@@ -70,7 +70,7 @@
+             'codecov',
+ 
+             'pytest-cov',
+-            'backports.unittest_mock',
++            'backports.unittest_mock;python_version<"3.4"',
+         ],
+     },
+     setup_requires=[



More information about the arch-commits mailing list