Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / 
magic-wormhole


Commits:
0918958e by Caleb Maclennan at 2024-04-22T12:15:48+03:00
upgpkg: 0.14.0-6: Fix completions install directory, closes #2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = magic-wormhole
        pkgdesc = Securely transfer data between computers
        pkgver = 0.14.0
-       pkgrel = 5
+       pkgrel = 6
        url = https://github.com/magic-wormhole/magic-wormhole
        arch = any
        license = MIT


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=magic-wormhole
 pkgver=0.14.0
-pkgrel=5
+pkgrel=6
 pkgdesc="Securely transfer data between computers"
 arch=(any)
 url="https://github.com/magic-wormhole/magic-wormhole";
@@ -42,8 +42,11 @@ build() {
 check() {
        cd "$_archive"
        export PYTHONPATH=src
-       # some tests use unittest.mock wrong and new stricter Python errors
-       pytest --deselect src/wormhole/test/test_tor_manager.py
+       local deselected=(
+               # uses unittest.mock wrong and triggers new Python's errors
+               src/wormhole/test/test_tor_manager.py
+       )
+       pytest ${deselected[@]/#/--deselect }
 }
 
 package() {
@@ -51,4 +54,8 @@ package() {
        python -m installer -d "$pkgdir" dist/*.whl
        install -vDm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
        install -vDm 644 -t "$pkgdir/usr/share/man/man1/" docs/wormhole.1
+       mkdir -p 
"$pkgdir/usr/share/"{bash_completion/completions,fish/vendor_completions.d,zsh/site-functions}/
+       mv 
"$pkgdir/usr/"{wormhole_complete.bash,share/bash_completion/completions/wormhole}
+       mv 
"$pkgdir/usr/"{wormhole_complete.fish,share/fish/vendor_completions.d/wormhole.fish}
+       mv 
"$pkgdir/usr/"{wormhole_complete.zsh,share/zsh/site-functions/_wormhole}
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/magic-wormhole/-/commit/0918958e9215a01800c770108021228a36ed130c

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/magic-wormhole/-/commit/0918958e9215a01800c770108021228a36ed130c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to