George Hu pushed to branch main at Arch Linux / Packaging / Packages / 
python-send2trash


Commits:
181d2120 by George Hu at 2026-11-20T16:01:02+08:00
Add check() function

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -5,6 +5,7 @@ pkgbase = python-send2trash
        url = https://github.com/hsoft/send2trash
        arch = any
        license = BSD-3-Clause
+       checkdepends = python-pytest
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools


=====================================
PKGBUILD
=====================================
@@ -12,6 +12,7 @@ url="https://github.com/hsoft/send2trash";
 license=('BSD-3-Clause')
 depends=('python')
 makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+checkdepends=('python-pytest')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/hsoft/$_pkgbase/archive/$pkgver.tar.gz";)
 sha256sums=('44b4fc1faa481e0ecd2d01fb35b5f43e3c48ff13fe1d039874822abb61a77bd7')
 
@@ -20,6 +21,11 @@ build() {
        python -m build --wheel --no-isolation
 }
 
+check() {
+       cd $_pkgbase-$pkgver
+       pytest
+}
+
 package() {
        cd $_pkgbase-$pkgver
        python -m installer --destdir="$pkgdir" dist/*.whl



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-send2trash/-/commit/181d2120407a548ff0ced02cae3a6b5a84728e59

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-send2trash/-/commit/181d2120407a548ff0ced02cae3a6b5a84728e59
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to