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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 19:08:07 UTC 2022


    Date: Monday, August 29, 2022 @ 19:08:07
  Author: felixonmars
Revision: 1285575

upgpkg: python-w3lib 2.0.0-1

Modified:
  python-w3lib/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-29 19:04:11 UTC (rev 1285574)
+++ PKGBUILD	2022-08-29 19:08:07 UTC (rev 1285575)
@@ -2,37 +2,30 @@
 # Contributor: Bence Balint <balintbence1337 at gmail.com>
 
 pkgname=python-w3lib
-pkgver=1.22.0
-pkgrel=5
+pkgver=2.0.0
+pkgrel=1
 pkgdesc="Library of web-related functions"
 arch=('any')
 license=('BSD')
-url="https://w3lib.readthedocs.org"
-depends=('python-six')
+url="https://github.com/scrapy/w3lib"
+depends=('python')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz"
-        'mark-single-add_or_replace_parameter-test-as-xfail.patch::https://github.com/scrapy/w3lib/commit/fae6cc40e112cd13697cb0e8d79976f32c72491d.patch')
-sha512sums=('14e12726ca46a60d0a86f670f8b19415c2a6e304eeb9a152008a2d1ea81267ddc5ff36b47fdd308bb4764869ffff61e2c243c20cfe85f79a8eb7e31ba85d46dd'
-            '82dd2127690a06910a472adf0f151fe0989c7031b456be474f4c810224b32b66dfe4da21936be1230921848dd923322adb6c52521d14aff6bb75966dd7dccdc8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz")
+sha512sums=('392ec7563e3e72bb8795c67e1378d6f8eb727e82e1a9bf57f03158a43a4d8a7cf3658ddd1e4b04c25e3cdf8ca22154a1bf273a4535e13bfd3ac4a24f7fac7642')
 
-prepare() {
-  cd "$srcdir"/w3lib-$pkgver
-  patch -p1 <"$srcdir"/mark-single-add_or_replace_parameter-test-as-xfail.patch
-}
-
 build() {
-  cd "$srcdir"/w3lib-$pkgver
+  cd w3lib-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/w3lib-$pkgver
-  py.test
+  cd w3lib-$pkgver
+  pytest
 }
 
 package() {
   cd w3lib-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list