Jakub Klinkovský pushed to branch main at Arch Linux / Packaging / Packages / python-scikit-hep-testdata
Commits: 5b0f495d by Jakub Klinkovský at 2024-12-08T21:13:22+01:00 upgpkg: 0.5.0-1: upstream release + major PKGBUILD refactoring - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,10 +1,10 @@ pkgbase = python-scikit-hep-testdata pkgdesc = A common package to provide example files (e.g. ROOT) for testing and developing packages against - pkgver = 0.4.43 - pkgrel = 2 + pkgver = 0.5.0 + pkgrel = 1 url = https://github.com/scikit-hep/scikit-hep-testdata arch = any - license = BSD + license = BSD-3-Clause checkdepends = python-pytest makedepends = git makedepends = python-build @@ -12,10 +12,10 @@ pkgbase = python-scikit-hep-testdata makedepends = python-wheel makedepends = python-setuptools-scm makedepends = python-toml - depends = python-pyaml + depends = python + depends = python-yaml depends = python-requests - depends = python-importlib_resources - source = scikit-hep-testdata-0.4.43::git+https://github.com/scikit-hep/scikit-hep-testdata#tag=v0.4.43 - sha256sums = 13f208d241d59723f001d9721b75b07bcd103478849cd6e7eee139a12074279d + source = scikit-hep-testdata::git+https://github.com/scikit-hep/scikit-hep-testdata#tag=v0.5.0 + b2sums = fd70d8431b2642ed796644ffa1009a834b76e3f8053b779b2dcf04ce7bad51b7518e1ed9336d97184e7c1ce2315d0c76e24b3cf93cea036693d0c6ec4dcc8199 pkgname = python-scikit-hep-testdata ===================================== PKGBUILD ===================================== @@ -1,35 +1,47 @@ +# Maintainer: Jakub Klinkovský <lahwaacz at archlinux dot org> # Maintainer: Konstantin Gizdov <arch at kge dot pw> _pkgname=scikit-hep-testdata -pkgbase="python-${_pkgname}" -pkgname=("${pkgbase}") -pkgver=0.4.43 -pkgrel=2 +pkgname="python-${_pkgname}" +pkgver=0.5.0 +pkgrel=1 pkgdesc='A common package to provide example files (e.g. ROOT) for testing and developing packages against' -arch=('any') -makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm' 'python-toml') -checkdepends=('python-pytest') -depends=('python-pyaml' 'python-requests' 'python-importlib_resources') +arch=(any) +license=(BSD-3-Clause) url="https://github.com/scikit-hep/${_pkgname}" -license=('BSD') - -source=("${_pkgname}-${pkgver}::git+${url}#tag=v${pkgver}") -sha256sums=('13f208d241d59723f001d9721b75b07bcd103478849cd6e7eee139a12074279d') +makedepends=( + git + python-build + python-installer + python-wheel + python-setuptools-scm + python-toml +) +checkdepends=( + python-pytest +) +depends=( + python + python-yaml + python-requests +) +source=("$_pkgname::git+$url#tag=v$pkgver") +b2sums=('fd70d8431b2642ed796644ffa1009a834b76e3f8053b779b2dcf04ce7bad51b7518e1ed9336d97184e7c1ce2315d0c76e24b3cf93cea036693d0c6ec4dcc8199') build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python -m build --wheel --no-isolation + cd $_pkgname + python -m build --wheel --no-isolation } check() { - cd "${srcdir}/${_pkgname}-${pkgver}" - PYTHONPATH=build/lib pytest tests + cd $_pkgname + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest tests } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - python -m installer --destdir="$pkgdir" dist/*.whl - - install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd $_pkgname + python -m installer --destdir="$pkgdir" dist/*.whl + install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-scikit-hep-testdata/-/commit/5b0f495d1d75a2666f1e5d14ba94cd7f6188f6f5 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-scikit-hep-testdata/-/commit/5b0f495d1d75a2666f1e5d14ba94cd7f6188f6f5 You're receiving this email because of your account on gitlab.archlinux.org.