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

Felix Yan felixonmars at archlinux.org
Sun Mar 17 10:28:30 UTC 2019


    Date: Sunday, March 17, 2019 @ 10:28:30
  Author: felixonmars
Revision: 442338

upgpkg: python-cssselect2 0.2.1-3

remove python2 sibling

Modified:
  python-cssselect2/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++------------------------------
 1 file changed, 9 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-17 10:26:53 UTC (rev 442337)
+++ PKGBUILD	2019-03-17 10:28:30 UTC (rev 442338)
@@ -2,53 +2,32 @@
 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
-pkgbase=python-cssselect2
-pkgname=(python-cssselect2 python2-cssselect2)
+pkgname=python-cssselect2
 pkgver=0.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="CSS selectors for Python ElementTree"
 url="https://pypi.org/project/cssselect2/"
 license=('BSD')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-tinycss2' 'python2-tinycss2')
-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-tinycss2')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-flake8' 'python-pytest-cov' 'python-pytest-isort'
+              'python-pytest-runner')
 source=("https://pypi.io/packages/source/c/cssselect2/cssselect2-$pkgver.tar.gz")
 md5sums=('bfa61b1e917d1e93ebccf0f27903087d')
 
-prepare() {
-  cp -a cssselect2-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/cssselect2-$pkgver
+  cd cssselect2-$pkgver
   python setup.py build
-
-  cd "$srcdir"/cssselect2-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/cssselect2-$pkgver
+  cd cssselect2-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/cssselect2-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-cssselect2() {
-  depends=('python-tinycss2')
-
+package() {
   cd cssselect2-$pkgver
   python3 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-cssselect2() {
-  depends=('python2-tinycss2')
-
-  cd cssselect2-$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