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

Felix Yan felixonmars at archlinux.org
Sat Jun 1 07:36:31 UTC 2019


    Date: Saturday, June 1, 2019 @ 07:36:30
  Author: felixonmars
Revision: 476256

upgpkg: python-tinycss2 1.0.2-1

Modified:
  python-tinycss2/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++---------------------------------
 1 file changed, 12 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-01 07:33:45 UTC (rev 476255)
+++ PKGBUILD	2019-06-01 07:36:30 UTC (rev 476256)
@@ -2,53 +2,32 @@
 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
-pkgbase=python-tinycss2
-pkgname=(python-tinycss2 python2-tinycss2)
-pkgver=0.6.1
-pkgrel=2
+pkgname=python-tinycss2
+pkgver=1.0.2
+pkgrel=1
 pkgdesc="Low-level CSS parser for Python"
 url="https://pypi.python.org/pypi/tinycss2"
 license=('BSD')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-webencodings' 'python2-webencodings')
-checkdepends=('python-pytest-flake8' 'python2-pytest-flake8' 'python-pytest-cov'
-              'python2-pytest-cov' 'python-pytest-isort' 'python2-pytest-isort'
-              'python-pytest-runner' 'python2-pytest-runner')
+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")
-md5sums=('8dea5867b810e30a029c54e29a4dce4d')
+sha512sums=('69bdf52898f9e704c01fe5fd11170e0efc9a6aca14646f5331fc06ebbdf941f9b6c798ded7d93636c7b810b35c659750c3ece3917c5c9cef4092e3e17b382dd1')
 
-prepare() {
-  cp -a tinycss2-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/tinycss2-$pkgver
+  cd tinycss2-$pkgver
   python setup.py build
-
-  cd "$srcdir"/tinycss2-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/tinycss2-$pkgver
+  cd tinycss2-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/tinycss2-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-tinycss2() {
-  depends=('python-webencodings')
-
+package() {
   cd tinycss2-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-tinycss2() {
-  depends=('python2-webencodings')
-
-  cd tinycss2-$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