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

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 04:52:45 UTC 2022


    Date: Tuesday, September 6, 2022 @ 04:52:44
  Author: polyzen
Revision: 1294168

upgpkg: python-minidb 2.0.6-2: Use PEP 517

Modified:
  python-minidb/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 04:46:50 UTC (rev 1294167)
+++ PKGBUILD	2022-09-06 04:52:44 UTC (rev 1294168)
@@ -4,12 +4,14 @@
 _name=minidb
 pkgname=python-minidb
 pkgver=2.0.6
-pkgrel=1
+pkgrel=2
 pkgdesc='Simple SQLite3 store for Python objects'
 arch=('any')
 url=https://thp.io/2010/minidb/
 license=('ISC')
 depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
 checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
 sha256sums=('8bf0aca9b89cb1e8b7bfd8ad8b5a7208bd2fb046e343b3d656ea00f8bcfd6f5e')
@@ -17,19 +19,19 @@
 
 build() {
   cd $_name-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
   cd $_name-$pkgver
   python -m venv --system-site-packages test-env
-  test-env/bin/python setup.py install --optimize=1 --skip-build
+  test-env/bin/python -m installer dist/*.whl
   test-env/bin/python -m pytest
 }
 
 package() {
   cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -d "$pkgdir"/usr/share/licenses/$pkgname
   sed -n '/# Copyright/,/OF THIS SOFTWARE./p' minidb.py > "$pkgdir"/usr/share/licenses/$pkgname/COPYING



More information about the arch-commits mailing list