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

Antonio Rojas arojas at archlinux.org
Wed Dec 11 11:58:36 UTC 2019


    Date: Wednesday, December 11, 2019 @ 11:58:36
  Author: arojas
Revision: 536879

Drop python2

Modified:
  python-requests-aws4auth/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-11 11:40:09 UTC (rev 536878)
+++ PKGBUILD	2019-12-11 11:58:36 UTC (rev 536879)
@@ -2,8 +2,7 @@
 # Contributor: Bruno Galeotti <bgaleotti at gmail dot com>
 
 _pkgname=requests-aws4auth
-pkgbase=python-requests-aws4auth
-pkgname=(python-requests-aws4auth python2-requests-aws4auth)
+pkgname=python-requests-aws4auth
 pkgver=0.9
 pkgrel=4
 pkgdesc='Amazon Web Services version 4 authentication for the Python Requests module'
@@ -10,9 +9,9 @@
 url='https://github.com/sam-washington/requests-aws4auth'
 arch=('x86_64')
 license=('MIT')
-makedepends=('python-setuptools' 'python2-requests'
-             'python2-setuptools' 'python-requests')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python' 'python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sam-washington/requests-aws4auth/archive/${pkgver}.tar.gz)
 sha512sums=('cf378f3ac97fe44000c17c15a5d75774e95dd9ddab7f4d550f676505de1641df79b0209750c376d51e9e49c7114b2b6891e292ab3e55313ee127c924217fe8a2')
 
@@ -24,17 +23,14 @@
 build() {
   cd ${_pkgname}-${pkgver}
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd ${_pkgname}-${pkgver}
   python -m pytest -k 'not test_headers_amz_example'
-  python2 -m pytest -k 'not test_headers_amz_example'
 }
 
-package_python-requests-aws4auth() {
-  depends=('python' 'python-requests')
+package() {
   cd ${_pkgname}-${pkgver}
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
   install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
@@ -41,12 +37,4 @@
   install -Dm 644 LICENSE NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
-package_python2-requests-aws4auth() {
-  depends=('python2' 'python2-requests')
-  cd ${_pkgname}-${pkgver}
-  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 LICENSE NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list