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

Eli Schwartz eschwartz at archlinux.org
Thu Jan 2 17:10:10 UTC 2020


    Date: Thursday, January 2, 2020 @ 17:10:09
  Author: eschwartz
Revision: 546386

upgpkg: python-shellingham 1.3.1-4: drop python2 since it's not needed

Modified:
  python-shellingham/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++-------------------
 1 file changed, 7 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-02 17:09:44 UTC (rev 546385)
+++ PKGBUILD	2020-01-02 17:10:09 UTC (rev 546386)
@@ -2,17 +2,16 @@
 # Contributor: Clint Valentine <valentine.clint at gmail.com>
 
 _pkgname=shellingham
-pkgbase=python-shellingham
-pkgname=('python-shellingham' 'python2-shellingham')
+pkgname=python-shellingham
 pkgver=1.3.1
-pkgrel=3
+pkgrel=4
 pkgdesc="Detect what shell the current Python executable is running in."
 arch=('any')
 url="https://github.com/sarugaku/${_pkgname}"
 license=('ISC')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-mock'
-              'python2-pytest-runner' 'python2-pytest-mock')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock')
 source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
 sha256sums=('b1d83d3004c4126a86a42ca42c1e5095695c585a18e814bff13aa91ee8398c1e')
 b2sums=('eab42fe8ccf203c4107f3a89046efbf8bd45b5731a1117a431af4932950cb56665582346916d55ada00cbec4800c47aeb3d6673dc0c7ce09db09f48fa7da08f9')
@@ -21,7 +20,6 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py build
-    python2 setup.py build
 }
 
 check() {
@@ -28,21 +26,11 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py pytest
-    python2 setup.py pytest
 }
 
-package_python-shellingham() {
-    depends=('python')
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
 
-    cd "${srcdir}"/${_pkgname}-${pkgver}
     python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
     install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
-
-package_python2-shellingham() {
-    depends=('python2')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}



More information about the arch-commits mailing list