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

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Oct 3 18:27:04 UTC 2019


    Date: Thursday, October 3, 2019 @ 18:27:04
  Author: aginiewicz
Revision: 512532

upgpkg: python-openpyxl 3.0.0-1

python-openpyxl: new upstream release, python2 dropped

Modified:
  python-openpyxl/trunk/PKGBUILD

----------+
 PKGBUILD |   58 ++++++++++++----------------------------------------------
 1 file changed, 12 insertions(+), 46 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-03 18:25:57 UTC (rev 512531)
+++ PKGBUILD	2019-10-03 18:27:04 UTC (rev 512532)
@@ -2,66 +2,32 @@
 # Contributor: Nishit Joseph (reachjlight at gmail dot com)
 # Contributor: Martin Corley <Martin.Corley at ed.ac.uk>
 
-pkgbase=python-openpyxl
-pkgname=('python2-openpyxl' 'python-openpyxl')
-pkgver=2.6.2
-_pkgtag='3640394bff97'
-pkgrel=2
+pkgname='python-openpyxl'
+pkgver=3.0.0
+_pkgtag='5eaaf27880d0'
+pkgrel=1
 pkgdesc="A Python library to read/write Excel 2007 xlsx/xlsm files"
 arch=('any')
 url="https://openpyxl.readthedocs.org/"
 license=('MIT')
-makedepends=('python2-setuptools' 'python-setuptools' 'python-jdcal' 'python2-jdcal' 'python-et-xmlfile' 'python2-et-xmlfile')
+depends=('python-jdcal' 'python-et-xmlfile')
+makedepends=('python-setuptools')
+optdepends=('python-pillow: needed to include images'
+            'python-lxml: alternative XML backend'
+            'python-defusedxml: guard against various XML vulnerabilities'
+            'python-pandas: for iteration over Pandas DataFrames')
 source=("https://bitbucket.org/openpyxl/openpyxl/get/${pkgver}.tar.bz2"
         "LICENCE")
-sha256sums=('7935ee3b99f9e6c5c105e38cae710f5872241d3c0c63a937f7097b4a2c05e83a'
+sha256sums=('f0dc42db9ac0b780b9b9aa642774a7918d116db98e1418b488430d4b94fd2280'
             '0c84bb42f5d367e5ebf9fc2dde35b16141df5ee0fdc189250858bc6c5560f69e')
 
-prepare() {
-  cd "$srcdir"
-  cp -a openpyxl-openpyxl-${_pkgtag} openpyxl-openpyxl-py2-${_pkgtag}
-  cd openpyxl-openpyxl-py2-${_pkgtag}
-
-  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
-      -i $(find . -name '*.py')
-}
-
 build() {
-  # "Building Python2"
-  cd "$srcdir"/openpyxl-openpyxl-py2-${_pkgtag}
-  python2 setup.py build
-
-  # "Building Python3"
   cd "$srcdir"/openpyxl-openpyxl-${_pkgtag}
   python setup.py build
 }
 
-package_python2-openpyxl() {
-  depends=('python2-jdcal' 'python2-et-xmlfile')
-  optdepends=('python2-pillow: needed to include images'
-              'python2-lxml: alternative XML backend'
-	      'python2-defusedxml: guard against various XML vulnerabilities')
-
-  cd "$srcdir"/openpyxl-openpyxl-py2-${_pkgtag}
-
-  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
-  install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
-}
-
-package_python-openpyxl() {
-  depends=('python-jdcal' 'python-et-xmlfile')
-  optdepends=('python-pillow: needed to include images'
-              'python-lxml: alternative XML backend'
-              'python-defusedxml: guard against various XML vulnerabilities'
-              'python-pandas: for iteration over Pandas DataFrames')
-
+package() {
   cd "$srcdir"/openpyxl-openpyxl-${_pkgtag}
-
   python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
   install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
 }
-



More information about the arch-commits mailing list