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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 09:36:32 UTC 2020


    Date: Thursday, November 12, 2020 @ 09:36:32
  Author: foutrelis
Revision: 751339

Bump to 1.1.0; avoid flake8 checks

Modified:
  python-tinycss2/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 09:17:08 UTC (rev 751338)
+++ PKGBUILD	2020-11-12 09:36:32 UTC (rev 751339)
@@ -3,8 +3,8 @@
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
 pkgname=python-tinycss2
-pkgver=1.0.2
-pkgrel=4
+pkgver=1.1.0
+pkgrel=0
 pkgdesc="Low-level CSS parser for Python"
 url="https://pypi.python.org/pypi/tinycss2"
 license=('BSD')
@@ -11,11 +11,19 @@
 arch=('any')
 depends=('python-webencodings')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-flake8' 'python-pytest-cov' 'python-pytest-isort'
-              'python-pytest-runner')
-source=("https://pypi.io/packages/source/t/tinycss2/tinycss2-$pkgver.tar.gz")
-sha512sums=('69bdf52898f9e704c01fe5fd11170e0efc9a6aca14646f5331fc06ebbdf941f9b6c798ded7d93636c7b810b35c659750c3ece3917c5c9cef4092e3e17b382dd1')
+checkdepends=('python-pytest-cov' 'python-pytest-isort' 'python-pytest-runner')
+_css_tests_commit=c5749e51dda3868b3e8062e65a36584c2fec8059
+source=("https://pypi.io/packages/source/t/tinycss2/tinycss2-$pkgver.tar.gz"
+        css-parsing-tests-$_css_tests_commit.tar.gz::https://github.com/SimonSapin/css-parsing-tests/archive/$_css_tests_commit.tar.gz)
+sha512sums=('218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e'
+            'ef44eb1144a6484f308fabe4187310b2ef0067f328bf5213969d87c475fccae3d716dc66640a0a554ab2a3d7da0efb3a168a288ac6eef7722f3ae46959943b49')
 
+prepare() {
+  cd tinycss2-$pkgver
+  sed -i 's/--flake8//' pyproject.toml
+  cp ../css-parsing-tests-$_css_tests_commit/* tests/css-parsing-tests/
+}
+
 build() {
   cd tinycss2-$pkgver
   python setup.py build
@@ -23,7 +31,7 @@
 
 check() {
   cd tinycss2-$pkgver
-  python setup.py pytest
+  PYTHONPATH=build/lib pytest
 }
 
 package() {



More information about the arch-commits mailing list