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

Felix Yan felixonmars at archlinux.org
Fri Jul 31 20:14:40 UTC 2020


    Date: Friday, July 31, 2020 @ 20:14:40
  Author: felixonmars
Revision: 666401

upgpkg: python-soupsieve 2.0.1-1

Modified:
  python-soupsieve/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++------------------------
 1 file changed, 9 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-31 20:14:32 UTC (rev 666400)
+++ PKGBUILD	2020-07-31 20:14:40 UTC (rev 666401)
@@ -1,46 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-soupsieve
-pkgname=(python-soupsieve python2-soupsieve)
-pkgver=1.9.6
+pkgname=python-soupsieve
+pkgver=2.0.1
 pkgrel=1
 pkgdesc="A CSS4 selector implementation for Beautiful Soup"
 url="https://github.com/facelessuser/soupsieve"
 license=('MIT')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python2-backports.functools_lru_cache')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-beautifulsoup4'
-              'python2-beautifulsoup4' 'python-html5lib' 'python2-html5lib' 'python-lxml'
-              'python2-lxml')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/facelessuser/soupsieve/archive/$pkgver.tar.gz")
-sha512sums=('44954cdedc16a51c794ebe6770caeb8f179167ad2f0a0478cb1efd5878d6cc49fffd6119125964b19184afa6d0d7dedadb81dee020a48c5128ccf56e36a78f61')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib' 'python-lxml')
+source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f4ef4deee81bb31952e1d3216250712f09b425e7a2253e15bd1b38cb74b680e421e7d086a8770737898f6b57867f07f2dd07b8a98108d05e338bce92b274b85f')
 
 build() {
   cd soupsieve-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd soupsieve-$pkgver
-  python setup.py pytest
-  python2 setup.py pytest
+  pytest
 }
 
-package_python-soupsieve() {
-  depends=('python')
-
+package() {
   cd soupsieve-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
 }
-
-package_python2-soupsieve() {
-  depends=('python2-backports.functools_lru_cache')
-
-  cd soupsieve-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}



More information about the arch-commits mailing list