diff options
author | prspkt <prspkt@protonmail.com> | 2019-07-24 02:13:12 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-07-24 02:19:41 +0300 |
commit | 09e16ee666f6d00cb12ca3619d329f5278f724ab (patch) | |
tree | e6b4a810f545dd12fbee1a37e3ae29972a69ae18 /community | |
parent | 294ade2330222c731c22db8a02c8d3384a0b412c (diff) | |
download | aports-09e16ee666f6d00cb12ca3619d329f5278f724ab.tar.bz2 aports-09e16ee666f6d00cb12ca3619d329f5278f724ab.tar.xz |
community/py-xlsxwriter: drop python2
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-xlsxwriter/APKBUILD (renamed from community/py-xlsxwriter/APKBUILD) | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/community/py-xlsxwriter/APKBUILD b/community/py3-xlsxwriter/APKBUILD index fe457faf60..9a7cdbc0ab 100644 --- a/community/py-xlsxwriter/APKBUILD +++ b/community/py3-xlsxwriter/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-xlsxwriter +pkgname=py3-xlsxwriter _pkgname=XlsxWriter pkgver=1.1.8 pkgrel=1 @@ -8,43 +8,25 @@ pkgdesc="A Python module for creating Excel XLSX files" url="https://github.com/jmcnamara/XlsxWriter" arch="noarch" license="BSD-2-Clause" -makedepends="py-setuptools py3-setuptools" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +depends="python3" +makedepends="py3-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${pkgver}.tar.gz" builddir="$srcdir"/$_pkgname-RELEASE_$pkgver +replaces=py-xlsxwriter # Backwards compatibility +provides=py-xlsxwriter=$pkgver-r$pkgrel # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } -package() { - mkdir -p "$pkgdir" -} - check() { - python2 -m unittest discover python3 -m unittest discover } -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - _py python2 - replaces="$pkgname" -} - -_py3() { - _py python3 +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } - -sha512sums="760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py-xlsxwriter-1.1.8.tar.gz" +sha512sums="760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py3-xlsxwriter-1.1.8.tar.gz" |