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

Jelle van der Waa jelle at gemini.archlinux.org
Sun Oct 31 17:13:32 UTC 2021


    Date: Sunday, October 31, 2021 @ 17:13:32
  Author: jelle
Revision: 1035102

upgpkg: python-cheroot 8.5.2-4

Modified:
  python-cheroot/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++-----------------------------
 1 file changed, 6 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-31 17:12:38 UTC (rev 1035101)
+++ PKGBUILD	2021-10-31 17:13:32 UTC (rev 1035102)
@@ -3,17 +3,16 @@
 
 pkgbase='python-cheroot'
 _pkgbase="${pkgbase//python-/}"
-pkgname=('python-cheroot' 'python2-cheroot')
+pkgname=('python-cheroot')
 pkgdesc="Highly-optimized, pure-python HTTP server"
 pkgver=8.5.2
-pkgrel=3
+pkgrel=4
 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' 'python-tox' 'python2-tox'
-  'python-jaraco' 'python2-jaraco' 'git')
+depends=('python-six' 'python-jaraco')
+makedepends=('python-six' 'python-setuptools-scm'
+             'tree' 'python-tox' 'python-jaraco' 'git')
 checkdepends=('python-pytest' 'python-pytest-xdist'
               'python-requests' 'python-pyopenssl' 'python-trustme')
 source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz"
@@ -41,9 +40,6 @@
 
   cd "${srcdir}/${_pkgbase}-${pkgver}"
   python setup.py build
-
-  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
-  python2 setup.py build
 }
 
 check() {
@@ -56,9 +52,7 @@
   # TODO: properly run the tests with distro packages
 }
 
-package_python-cheroot() {
-  depends=('python-six' 'python-jaraco')
-
+package() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
   python setup.py install --root="$pkgdir/" --optimize=1
 
@@ -69,21 +63,4 @@
   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' 'python2-selectors2'
-           'python2-jaraco')
-
-  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
-  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:



More information about the arch-commits mailing list