[arch-commits] Commit in python-cheroot/trunk (2 files)

Thore Bödecker foxxx0 at archlinux.org
Fri Apr 13 18:46:18 UTC 2018


    Date: Friday, April 13, 2018 @ 18:46:17
  Author: foxxx0
Revision: 316200

upgpkg: python-cheroot 6.2.1-3

fix python2/3 compatibility properly

Added:
  python-cheroot/trunk/cheroot-fix-setup-python3.patch
Modified:
  python-cheroot/trunk/PKGBUILD

---------------------------------+
 PKGBUILD                        |   23 ++++++++++++++++++-----
 cheroot-fix-setup-python3.patch |   20 ++++++++++++++++++++
 2 files changed, 38 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-13 17:32:03 UTC (rev 316199)
+++ PKGBUILD	2018-04-13 18:46:17 UTC (rev 316200)
@@ -6,19 +6,30 @@
 pkgname=('python-cheroot' 'python2-cheroot')
 pkgdesc="Highly-optimized, pure-python HTTP server"
 pkgver=6.2.1
-pkgrel=2
+pkgrel=3
 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-setuptools-scm' 'python2-backports.functools_lru_cache'
+  'python2-backports.unittest_mock' 'tree')
 source=("${pkgbase}-${pkgver}.tar.gz::https://pypi.python.org/packages/8b/80/d84275abc1b9cf69d707a6c16ea3fe1faa45d02f4eb59c60bb5eba8cf29e/cheroot-6.2.1.tar.gz"
-        "LICENSE")
+        "LICENSE"
+        "cheroot-fix-setup-python3.patch")
 sha512sums=('4f8e97b835b4c12d72b51ce90bba52b0c5e2cac3382b34a34997fe6c58e660200ff1e163f7811810bdd5162c01e1b29e4a24d9d9e332cd636dfc38b9f9ce585d'
-            '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
+            '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944'
+            '1a6da34ef7d4b7cad392fcf6e0251b28ad2267af36564acc673a560963bdfdadb2f80950fc33783f6fb1a9683ae10a32bedf7b4969cd9c9b916c6060979ce547')
 
+prepare(){
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+  # patch setup.py (don't require legacy stuff on python3)
+  patch -p1 -l -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
 
@@ -30,7 +41,9 @@
 }
 
 package_python2-cheroot() {
-  depends=('python2-six' 'python2-backports.functools_lru_cache')
+  depends=('python2-six' 'python2-backports.functools_lru_cache'
+           'python2-backports.unittest_mock')
+
   cd "${srcdir}/${_pkgbase}-${pkgver}"
   python2 setup.py install --root="$pkgdir/" --optimize=1
 

Added: cheroot-fix-setup-python3.patch
===================================================================
--- cheroot-fix-setup-python3.patch	                        (rev 0)
+++ cheroot-fix-setup-python3.patch	2018-04-13 18:46:17 UTC (rev 316200)
@@ -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"',
+         'six>=1.11.0',
+         'more_itertools>=2.6',
+     ],
+@@ -70,7 +70,7 @@
+             'codecov',
+ 
+             'pytest-cov',
+-            'backports.unittest_mock',
++            'backports.unittest_mock;python_version<"3"',
+         ],
+     },
+     setup_requires=[



More information about the arch-commits mailing list