Date: Thursday, February 16, 2023 @ 06:36:37
  Author: grawlinson
Revision: 1400758

upgpkg: python-beautifulsoup4 4.11.2-1; new upstream release

Modified:
  python-beautifulsoup4/trunk/PKGBUILD

----------+
 PKGBUILD |   50 +++++++++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-16 06:35:02 UTC (rev 1400757)
+++ PKGBUILD    2023-02-16 06:36:37 UTC (rev 1400758)
@@ -1,34 +1,50 @@
-# Maintainer: Felix Yan <[email protected]>
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Giovanni Scafora <[email protected]>
 
 pkgname=python-beautifulsoup4
-pkgver=4.11.1
+_pkgname="${pkgname#python-}"
+pkgver=4.11.2
 pkgrel=1
-pkgdesc="A Python HTML/XML parser designed for quick turnaround projects like 
screen-scraping"
+pkgdesc='A Python HTML/XML parser designed for quick turnaround projects like 
screen-scraping'
 arch=('any')
-url="https://www.crummy.com/software/BeautifulSoup/index.html";
-license=('PSF')
+url='https://www.crummy.com/software/BeautifulSoup/'
+license=('MIT')
 depends=('python-soupsieve')
-optdepends=('python-chardet: to autodetect character encodings'
-            'python-lxml: alternative HTML parser'
-            'python-html5lib: alternative HTML parser')
-makedepends=('python-setuptools')
+optdepends=(
+  'python-chardet: to autodetect character encodings'
+  'python-lxml: alternative HTML parser'
+  'python-html5lib: alternative HTML parser'
+)
+makedepends=(
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
 checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/b/beautifulsoup4/beautifulsoup4-$pkgver.tar.gz";)
-sha512sums=('7446be07cd55f23def929e6491f0d74a940cf50206ed520b8ae7b9d57bd19ecf6aa821f446ca4f26f1e08b43fcc71fb397886f51a3f0ec691f9e53dfdc7a0cf8')
+source=("$pkgname-$pkgver.tar.gz::https://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver%.*}/$_pkgname-$pkgver.tar.gz";)
+sha512sums=('68f5328f881946e80ed1af36b26da184f0af58aaf124f5f623f89c40130e1578f6dbe874b11c802e52c0ec02cfbf6b681e10eb235279631f479d14c2243e7dd3')
+b2sums=('19fc88dff84c398461ecce3b66b1a92c3541114e3595aa1bae7182914e174d9c36b6de37ba120200695f6dca489c6afcd361244ae9577bc469d20a0864989d48')
 
 build() {
-  cd beautifulsoup4-$pkgver
-  python setup.py build
+  cd "$_pkgname-$pkgver"
+
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd beautifulsoup4-$pkgver
-  pytest
+  cd "$_pkgname-$pkgver"
+
+  pytest -v
 }
 
 package() {
-  cd beautifulsoup4-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  cd "$_pkgname-$pkgver"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
 }

Reply via email to