[arch-commits] Commit in python-xlsxwriter/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Oct 3 20:43:15 UTC 2019
Date: Thursday, October 3, 2019 @ 20:43:14
Author: aginiewicz
Revision: 512566
upgpkg: python-xlsxwriter 1.2.1-2
python-xlsxwriter: drop python2 support
Modified:
python-xlsxwriter/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++--------------------------------
1 file changed, 5 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 20:41:22 UTC (rev 512565)
+++ PKGBUILD 2019-10-03 20:43:14 UTC (rev 512566)
@@ -1,51 +1,24 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-pkgbase=python-xlsxwriter
-pkgname=('python2-xlsxwriter' 'python-xlsxwriter')
+pkgname='python-xlsxwriter'
pkgver=1.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="A Python module for creating Excel XLSX files"
arch=('any')
url="https://github.com/jmcnamara/XlsxWriter"
license=('BSD')
-makedepends=('python2-setuptools' 'python-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${pkgver}.tar.gz")
sha256sums=('e23140f787c40786281efb9feb2033636014befa7df2bf80cb4af535460c4484')
-prepare() {
- cd "$srcdir"
- cp -a XlsxWriter-RELEASE_${pkgver} XlsxWriter-py2-RELEASE_${pkgver}
-}
-
build() {
- # "Building Python2"
- cd "$srcdir"/XlsxWriter-py2-RELEASE_${pkgver}
- python2 setup.py build
-
- # "Building Python3"
cd "$srcdir"/XlsxWriter-RELEASE_${pkgver}
python setup.py build
}
-package_python2-xlsxwriter() {
- depends=('python2')
-
- cd "$srcdir"/XlsxWriter-py2-RELEASE_${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -D -m644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- mv "$pkgdir"/usr/bin/vba_extract{,2}.py
-}
-
-package_python-xlsxwriter() {
- depends=('python')
-
+package() {
cd "$srcdir"/XlsxWriter-RELEASE_${pkgver}
-
python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
install -D -m644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
More information about the arch-commits
mailing list