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

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 29 16:19:33 UTC 2021


    Date: Monday, November 29, 2021 @ 16:19:33
  Author: jelle
Revision: 1057581

Update and drop python2-cachecontrol

Modified:
  python-cachecontrol/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++--------------------------
 1 file changed, 9 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 16:15:26 UTC (rev 1057580)
+++ PKGBUILD	2021-11-29 16:19:33 UTC (rev 1057581)
@@ -1,26 +1,22 @@
 # Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 
 _pkgname=cachecontrol
-pkgbase=python-cachecontrol
-pkgname=('python-cachecontrol' 'python2-cachecontrol')
-pkgver=0.12.6
-pkgrel=5
+pkgname=python-cachecontrol
+pkgver=0.12.10
+pkgrel=1
 pkgdesc="httplib2 caching for requests"
 arch=('any')
 url="https://github.com/ionrock/${_pkgname}"
 license=('Apache')
-makedepends=('python-msgpack' 'python-requests' 'python2-msgpack' 'python2-requests'
-             'python-setuptools' 'python2-setuptools')
+depends=('python-msgpack' 'python-requests')
+makedepends=('python-msgpack' 'python-requests' 'python-setuptools')
 checkdepends=('python-mock' 'python-pytest' 'python-lockfile' 'python-cherrypy')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
-        "0001-Remove-unnecessary-console-script.patch")
-sha256sums=('2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3'
-            'a2c93d4852887152027140bdd54030d5363876b02e5eabee6a018d4e946a87b1')
+optdepends=('python-lockfile: for the FileCache')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('fc8bc1ecc67ac2946b79a6a79da57c8ad510517787afd3db997ca0d432e56e3d')
 
 prepare() {
     cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    patch -p1 -i ../0001-Remove-unnecessary-console-script.patch
 }
 
 build() {
@@ -27,7 +23,6 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py build
-    python2 setup.py build
 }
 
 check() {
@@ -34,21 +29,9 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python -m pytest
-    # Ignore python2 tests
-    #python2 -m pytest
 }
 
-package_python-cachecontrol() {
-    depends=('python-msgpack' 'python-requests')
-    optdepends=('python-lockfile: for the FileCache')
-
+package() {
     cd "${srcdir}"/${_pkgname}-${pkgver}
     python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 }
-
-package_python2-cachecontrol() {
-    depends=('python2-msgpack' 'python2-requests')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}



More information about the arch-commits mailing list