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

Eli Schwartz eschwartz at archlinux.org
Sun Jun 30 23:12:05 UTC 2019


    Date: Sunday, June 30, 2019 @ 23:12:04
  Author: eschwartz
Revision: 486840

upgpkg: python-tinycss 0.4-3

clean up the PKGBUILD/remove python2 subpackage. Fix tests. Initial re-upload.

Modified:
  python-tinycss/trunk/PKGBUILD

----------+
 PKGBUILD |   55 ++++++++++++++++++++++++-------------------------------
 1 file changed, 24 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-30 22:05:54 UTC (rev 486839)
+++ PKGBUILD	2019-06-30 23:12:04 UTC (rev 486840)
@@ -1,53 +1,46 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
-pkgbase=python-tinycss
-pkgname=(python-tinycss python2-tinycss)
+pkgname=python-tinycss
 pkgver=0.4
-pkgrel=2
+pkgrel=3
 pkgdesc="A complete yet simple CSS parser for Python"
 url="https://pypi.python.org/pypi/tinycss"
 license=('BSD')
-arch=('i686' 'x86_64')
-makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2')
-checkdepends=('python-pytest-flake8' 'python2-pytest-flake8' 'python-pytest-cov'
-              'python2-pytest-cov' 'python-pytest-isort' 'python2-pytest-isort')
+arch=('x86_64')
+depends=('python')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest')
 source=("https://pypi.io/packages/source/t/tinycss/tinycss-$pkgver.tar.gz")
-md5sums=('36b7b0e48081ebff5e6d7bbd40ad21da')
+sha256sums=('12306fb50e5e9e7eaeef84b802ed877488ba80e35c672867f548c0924a76716e')
+b2sums=('9b7691f5d5fcfb5580a9f2a0f1f50caea3dba74853917e5e46ca93cab6f35f2f8c4f5babf01d25661d05ef1b26ccc35914750917fb92b394b0ca6530a19f3514')
 
 prepare() {
-  cp -a tinycss-$pkgver{,-py2}
+    cd "${srcdir}"/tinycss-${pkgver}
+
+    rm tinycss/speedups.c
+    # isort is not a sign of failing code
+    sed -i '/addopts/d' setup.cfg
 }
 
 build() {
-  cd "$srcdir"/tinycss-$pkgver
-  python setup.py build
+    cd "${srcdir}"/tinycss-${pkgver}
 
-  cd "$srcdir"/tinycss-$pkgver-py2
-  python2 setup.py build
+    python setup.py build
 }
 
 check() {
-  cd "$srcdir"/tinycss-$pkgver
-  py.test build
+    cd "${srcdir}"/tinycss-${pkgver}
 
-  cd "$srcdir"/tinycss-$pkgver-py2
-  py.test2 build
+    pytest build/
+    find build/ -type f -name \*-PYTEST.pyc -delete
 }
 
-package_python-tinycss() {
-  depends=('python')
+package() {
+    cd "${srcdir}"/tinycss-${pkgver}
 
-  cd tinycss-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    python setup.py install --root="${pkgdir}" --optimize=1
+    install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
-
-package_python2-tinycss() {
-  depends=('python2')
-
-  cd tinycss-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}


More information about the arch-commits mailing list