[arch-commits] Commit in python-watchdog/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Aug 30 10:28:22 UTC 2022
Date: Tuesday, August 30, 2022 @ 10:28:22
Author: felixonmars
Revision: 1288536
upgpkg: python-watchdog 1.0.0-1
Modified:
python-watchdog/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-30 10:20:37 UTC (rev 1288535)
+++ PKGBUILD 2022-08-30 10:28:22 UTC (rev 1288536)
@@ -2,18 +2,25 @@
# Contributor: Francois Boulogne <fboulogne at april dot org>
pkgname=python-watchdog
-pkgver=0.10.7
-pkgrel=3
+pkgver=1.0.0
+pkgrel=1
pkgdesc="Python API and shell utilities to monitor file system events"
arch=('any')
-url="https://pypi.python.org/pypi/watchdog"
+url="https://github.com/gorakhargosh/watchdog"
license=('Apache')
-depends=('python-pathtools' 'python-yaml' 'python-argh')
+depends=('python')
+optdepends=('python-yaml: for watchmedo'
+ 'python-argh: for watchmedo')
makedepends=('python-setuptools')
-checkdepends=('python-pytest-cov' 'python-pytest-timeout' 'python-pytest-runner')
+checkdepends=('python-pytest' 'python-pytest-timeout')
source=($pkgname-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz)
-sha512sums=('64b747f11691ddf976052ceb88f7978abef1789230102c418075ab2f41ede04af4df3dbd4bd5ef433b0616d80e3275853cf535da0707450e2bf908871cb70e8e')
+sha512sums=('e89f34aba7547022a48ff16e36e6a2eea340e80a4b1e1f8657d4e70d4a451ac43351aafc76978fb4241c583df11c2dd6c53cb1a03c43c2734f4a8a07d5b2604f')
+prepare() {
+ cd watchdog-$pkgver
+ sed -i '/--cov/d' setup.cfg
+}
+
build() {
cd watchdog-$pkgver
python setup.py build
@@ -21,7 +28,7 @@
check() {
cd watchdog-$pkgver
- python setup.py pytest
+ PYTHONPATH="$PWD/build/lib" pytest
}
package() {
More information about the arch-commits
mailing list