Date: Wednesday, April 5, 2023 @ 19:00:34
Author: felixonmars
Revision: 1437914
archrelease: copy trunk to community-staging-any
Added:
python-soupsieve/repos/community-staging-any/
python-soupsieve/repos/community-staging-any/PKGBUILD
(from rev 1437913, python-soupsieve/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-soupsieve/repos/community-staging-any/PKGBUILD (from rev
1437913, python-soupsieve/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 19:00:34 UTC (rev 1437914)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+
+pkgname=python-soupsieve
+pkgver=2.4
+pkgrel=2
+pkgdesc='A CSS4 selector implementation for Beautiful Soup'
+arch=('any')
+url='https://github.com/facelessuser/soupsieve'
+license=('MIT')
+depends=('python')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-hatchling'
+)
+checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib'
'python-lxml')
+_commit='8305a0fc6417458bc72b00a58b55c25b226cc763'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ # https://gitlab.gnome.org/GNOME/libxml2/-/issues/312
+ pytest \
+ --deselect
tests/test_extra/test_soup_contains.py::TestSoupContains::test_contains_cdata_html
\
+ --deselect
tests/test_extra/test_soup_contains_own.py::TestSoupContainsOwn::test_contains_own_cdata_html
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}