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

Daniel M. Capella polyzen at gemini.archlinux.org
Sat Sep 3 10:24:57 UTC 2022


    Date: Saturday, September 3, 2022 @ 10:24:57
  Author: polyzen
Revision: 1291469

upgpkg: borgmatic 1.7.1-2

Modified:
  borgmatic/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-03 10:02:23 UTC (rev 1291468)
+++ PKGBUILD	2022-09-03 10:24:57 UTC (rev 1291469)
@@ -7,7 +7,7 @@
 
 pkgname=borgmatic
 pkgver=1.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Simple, configuration-driven backup software for servers and workstations'
 arch=('any')
 url=https://torsion.org/borgmatic
@@ -14,6 +14,7 @@
 license=('GPL3')
 depends=('borg' 'python-colorama' 'python-jsonschema' 'python-requests'
          'python-ruamel-yaml' 'python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-flexmock' 'python-pytest')
 optdepends=('python-llfuse: for mount action')
 source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
@@ -27,13 +28,13 @@
 
 build() {
   cd $pkgname-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
   cd $pkgname-$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
   PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest -c /dev/null \
     --ignore=tests/end-to-end
 }
@@ -40,7 +41,7 @@
 
 package() {
   cd $pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 -t "$pkgdir"/usr/lib/systemd/system sample/systemd/*
   install -d "$pkgdir"/usr/share/bash-completion/completions
   ./test-env/bin/borgmatic --bash-completion > \



More information about the arch-commits mailing list