mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 00:34:41 +02:00
45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-elementpath
|
|
pkgver=5.0.1
|
|
pkgrel=0
|
|
pkgdesc="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"
|
|
url="https://github.com/sissaschool/elementpath"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-lxml"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/elementpath-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
# first: AssertionError: ElementPathError not raised
|
|
# rest: AssertionError: First sequence is not a list: -1
|
|
.testenv/bin/python3 -m pytest \
|
|
--deselect tests/test_collations.py::CollationsTest::test_context_activation \
|
|
--deselect tests/test_xpath2_functions.py::XPath2FunctionsTest::test_compare_function \
|
|
--deselect tests/test_xpath2_functions.py::LxmlXPath2FunctionsTest::test_compare_function \
|
|
--deselect tests/test_xpath30.py::XPath30FunctionsTest::test_compare_function \
|
|
--deselect tests/test_xpath30.py::LxmlXPath30FunctionsTest::test_compare_function \
|
|
--deselect tests/test_xpath31.py::XPath31FunctionsTest::test_compare_function \
|
|
--deselect tests/test_xpath31.py::LxmlXPath31FunctionsTest::test_compare_function
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
6a33a878ae633b44235f87ba95fff4035b8b0194147310178a7412917ea87ed8d59323ee40bf04027c4fe6c6e744e4895e9d60385d69c5ff8220b3c8268a1cfc py3-elementpath-5.0.1.tar.gz
|
|
"
|