Date: Monday, January 2, 2023 @ 08:00:41
  Author: grawlinson
Revision: 1372872

upgpkg: python-xlsxwriter 3.0.5-1; new upstream release

Modified:
  python-xlsxwriter/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++++++++++++++++++++++++-------------
 1 file changed, 30 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-02 07:59:25 UTC (rev 1372871)
+++ PKGBUILD    2023-01-02 08:00:41 UTC (rev 1372872)
@@ -2,30 +2,47 @@
 # Contributor: George Rawlinson <[email protected]>
 
 pkgname=python-xlsxwriter
-pkgver=3.0.3
+pkgver=3.0.5
 pkgrel=1
-pkgdesc="A Python module for creating Excel XLSX files"
+pkgdesc='A Python module for creating Excel XLSX files'
 arch=('any')
-url="https://github.com/jmcnamara/XlsxWriter";
+url='https://github.com/jmcnamara/XlsxWriter'
 license=('BSD')
 depends=('python')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/RELEASE_${pkgver}.tar.gz")
-sha512sums=('92a53226aa9ee9f8493fe7171ce752f3a13ef8f3107aecbef896f17022e93bd7dbccb5e619fcbbb3598102030b190d75508d4dacce20b9643eead59a4441f6aa')
-b2sums=('f4dfa6b286dda94a1a44d8168b8e17f7a37f2f59a23aa3a5ed0efa46b5d8bdcdb831e99a61924e22755c6a921c23f5c540c048152cd07363841ff09a49549c79')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+_commit='863fb9200c2857d3fa630219dc34d1211babc3f1'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
 
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^RELEASE_//'
+}
+
 build() {
-  cd "$srcdir"/XlsxWriter-RELEASE_${pkgver}
-  python setup.py build
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$srcdir"/XlsxWriter-RELEASE_${pkgver}
+  cd "$pkgname"
+
   python -m unittest discover
 }
 
 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"
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
 }

Reply via email to