Date: Thursday, June 3, 2021 @ 18:01:07
  Author: bgyorgy
Revision: 955714

upgpkg: python-odfpy 1.4.1-4: Run tests

Modified:
  python-odfpy/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-06-03 17:50:20 UTC (rev 955713)
+++ PKGBUILD    2021-06-03 18:01:07 UTC (rev 955714)
@@ -3,14 +3,15 @@
 
 pkgname=python-odfpy
 pkgver=1.4.1
-pkgrel=3
-pkgdesc="Python API and tools to manipulate OpenDocument files"
+pkgrel=4
+pkgdesc='Python API and tools to manipulate OpenDocument files'
 arch=('any')
-url="https://github.com/eea/odfpy";
+url='https://github.com/eea/odfpy'
 license=('Apache' 'GPL')
 depends=('python-defusedxml')
 makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/eea/odfpy/archive/release-$pkgver.tar.gz";)
+checkdepends=('python-pytest')
+source=("https://github.com/eea/odfpy/archive/release-$pkgver/$pkgname-$pkgver.tar.gz";)
 sha256sums=('9f97e4c808f656ce22739eec43a7c1741f645b7decef37d4fb048edb33e8caad')
 
 build() {
@@ -18,7 +19,12 @@
   python setup.py build
 }
 
+check() {
+  cd odfpy-release-$pkgver
+  PYTHONPATH=. pytest
+}
+
 package() {
   cd odfpy-release-$pkgver 
-  python setup.py install --root="$pkgdir" --optimize=1
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }

Reply via email to