Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-pysaml2
Commits: 0e394c1e by Daniel M. Capella at 2024-02-08T15:59:37-05:00 prepare update / xmlsec rebuild (wip) - Added/Removed deps not in [tool.poetry.dependencies]. namcap complains about some of the removals - python-zope-interface moved to optdeps, but the optional feature it is for requires 2 more deps, one of which is not yet in the repos - Tests fail to run because pytest tries to import xml.estree, but this clobbers with src/saml2/xml - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -11,44 +11,37 @@ arch=('any') license=('Apache-2.0') depends=('python' + 'python-cryptography' 'python-dateutil' 'python-defusedxml' -# 'python-future' - 'python-importlib_resources' - 'python-mechanize' -# 'python-pycryptodomex' 'python-pyopenssl' 'python-pytz' 'python-requests' -# 'python-six' removed in 7.3.0 - 'python-zope-interface' 'python-xmlschema' - 'python-xmlsec' - 'python-lxml' 'xmlsec') -#makedepends=('python-setuptools') -makedepends=(python-build python-installer python-wheel) -checkdepends=(python-pytest python-pytest-mock python-mock) -#source=("https://pypi.org/packages/source/p/pysaml2/pysaml2-$pkgver.tar.gz") +makedepends=('python-build' 'python-installer' 'python-poetry-core') +#checkdepends=('python-pyasn1' +# 'python-pymongo' +# 'python-pytest' +# 'python-responses') +#optdepends=('python-zope-interface') source=("pysaml2-$pkgver.tar.gz::https://github.com/IdentityPython/pysaml2/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('dfeaa53854467cdcdae1b0fb2c76a3610f8b179dca8176757d245db7fa7ad806') build() { - cd "$srcdir"/pysaml2-$pkgver - #python setup.py build - python -m build --wheel #--no-isolation + cd pysaml2-$pkgver + python -m build --wheel --skip-dependency-check --no-isolation } -check() { - cd "$srcdir"/pysaml2-$pkgver -# python setup.py test -# pytest -} +# ImportError: Error importing plugin "junitxml": No module named 'xml.etree' +#check() { +# cd pysaml2-$pkgver +# PYTHONPATH="$PWD/src/saml2:$PYTHONPATH" pytest +#} package() { cd pysaml2-$pkgver -# python setup.py install --root="$pkgdir" --optimize=1 --skip-build - python -m installer --destdir="$pkgdir" dist/*.whl + python -m installer --destdir="$pkgdir" dist/*.whl } # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD : View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pysaml2/-/commit/0e394c1ec566a2cdb4d32ca940e9cf2477085234 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pysaml2/-/commit/0e394c1ec566a2cdb4d32ca940e9cf2477085234 You're receiving this email because of your account on gitlab.archlinux.org.