Date: Thursday, February 16, 2023 @ 06:35:02 Author: grawlinson Revision: 1400757
upgpkg: python-soupsieve 2.4-1; new upstream release Modified: python-soupsieve/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-16 00:51:52 UTC (rev 1400756) +++ PKGBUILD 2023-02-16 06:35:02 UTC (rev 1400757) @@ -1,25 +1,40 @@ -# Maintainer: Felix Yan <[email protected]> +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Felix Yan <[email protected]> pkgname=python-soupsieve -pkgver=2.3.2.post1 +pkgver=2.4 pkgrel=1 -pkgdesc="A CSS4 selector implementation for Beautiful Soup" -url="https://github.com/facelessuser/soupsieve" +pkgdesc='A CSS4 selector implementation for Beautiful Soup' +arch=('any') +url='https://github.com/facelessuser/soupsieve' license=('MIT') -arch=('any') depends=('python') -makedepends=('python-build' 'python-installer' 'python-hatchling') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-hatchling' +) checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib' 'python-lxml') -source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('80eae1e7256cbcf2f2b8520779a5bdb68798e9813ed738ee933204ff1c23ad52553e21f3aa89ad61b900b906dcaa7a1eebd819300417304df782cda9e2d79c4a') +_commit='8305a0fc6417458bc72b00a58b55c25b226cc763' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + build() { - cd soupsieve-$pkgver + cd "$pkgname" + python -m build --wheel --no-isolation } check() { - cd soupsieve-$pkgver + cd "$pkgname" + # https://gitlab.gnome.org/GNOME/libxml2/-/issues/312 pytest \ --deselect tests/test_extra/test_soup_contains.py::TestSoupContains::test_contains_cdata_html \ @@ -27,8 +42,10 @@ } package() { - cd soupsieve-$pkgver + cd "$pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md }
