[arch-commits] Commit in python-cssselect2/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 10:20:54 UTC 2020


    Date: Thursday, November 12, 2020 @ 10:20:54
  Author: foutrelis
Revision: 751537

Bump to 0.4.1; avoid flake8 checks

Modified:
  python-cssselect2/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 10:20:37 UTC (rev 751536)
+++ PKGBUILD	2020-11-12 10:20:54 UTC (rev 751537)
@@ -3,8 +3,8 @@
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
 pkgname=python-cssselect2
-pkgver=0.3.0
-pkgrel=2
+pkgver=0.4.1
+pkgrel=0
 pkgdesc="CSS selectors for Python ElementTree"
 url="https://pypi.org/project/cssselect2/"
 license=('BSD')
@@ -11,11 +11,15 @@
 arch=('any')
 depends=('python-tinycss2')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-flake8' 'python-pytest-cov' 'python-pytest-isort'
-              'python-pytest-runner')
+checkdepends=('python-pytest-cov' 'python-pytest-isort' 'python-pytest-runner')
 source=("https://pypi.io/packages/source/c/cssselect2/cssselect2-$pkgver.tar.gz")
-sha512sums=('ae59314654d1c1ddf982b77521de7743d1496145a1367f51e02b6067d6757940e7ccb50b67959630f472972473a1e87cec8dfbc8eeb68ad5f16465a36b1447be')
+sha512sums=('feafeec3dbe3157ee452d94cd391a09cfcb48ca8bd1563c117c77c9ceb01102c4989611ede39e433ec25d3ddda98a94c4589ccb290b79c729683e673763b42ac')
 
+prepare() {
+  cd cssselect2-$pkgver
+  sed -i 's/--flake8//' pyproject.toml
+}
+
 build() {
   cd cssselect2-$pkgver
   python setup.py build
@@ -23,7 +27,7 @@
 
 check() {
   cd cssselect2-$pkgver
-  python setup.py pytest
+  pytest
 }
 
 package() {



More information about the arch-commits mailing list