[arch-commits] Commit in python-cairosvg/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Aug 29 22:01:49 UTC 2022
Date: Monday, August 29, 2022 @ 22:01:48
Author: felixonmars
Revision: 1286420
upgpkg: python-cairosvg 2.5.2-4: disable tests not meant for distributions and don't use pytest-runner
Modified:
python-cairosvg/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-29 22:01:40 UTC (rev 1286419)
+++ PKGBUILD 2022-08-29 22:01:48 UTC (rev 1286420)
@@ -4,7 +4,7 @@
pkgname=python-cairosvg
_pkgname=CairoSVG
pkgver=2.5.2
-pkgrel=3
+pkgrel=4
pkgdesc='SVG converter based on Cairo. It can export SVG files to PDF, PostScript and PNG files'
arch=('any')
url='https://cairosvg.org'
@@ -11,7 +11,7 @@
license=('LGPL3')
depends=('python-cairocffi' 'python-cssselect2' 'python-defusedxml' 'python-pillow' 'python-tinycss2')
makedepends=('python-setuptools' 'python-pytest-runner')
-checkdepends=('python-pytest-cov' 'python-pytest-flake8' 'python-pytest-isort')
+checkdepends=('python-pytest')
replaces=('cairosvg')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/CairoSVG/archive/$pkgver.tar.gz")
sha512sums=('a2e397bd0847baa87de76c7b3c1db56924634ba0c3510e91dafc4ab4f74850b7cd54683298d315dc1ff644f9b674ba20e03d7b3a17575a9d7e7c0c432845b05e')
@@ -18,6 +18,7 @@
prepare() {
cd $_pkgname-$pkgver
+ sed -i -e '/pytest-runner/d' -e '/--flake8/d' -e '/--isort/d' setup.cfg
cp -r cairosvg test_non_regression/cairosvg_reference/
}
@@ -31,7 +32,7 @@
check() {
cd $_pkgname-$pkgver
- python setup.py pytest
+ pytest
}
package() {
More information about the arch-commits
mailing list