Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-wheezy-template
Commits: 8651f03c by Carl Smedstad at 2024-10-26T13:55:40+02:00 upgpkg: 3.2.2-2: Adopt & refactor - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-wheezy-template - pkgdesc = lightweight template library + pkgdesc = A lightweight template library pkgver = 3.2.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/akornatskyy/wheezy.template arch = x86_64 license = MIT @@ -11,9 +11,9 @@ pkgbase = python-wheezy-template makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel + depends = glibc depends = python source = python-wheezy-template-3.2.2.tar.gz::https://github.com/akornatskyy/wheezy.template/archive/3.2.2.tar.gz sha256sums = fea0cfd58f737c40dfc4d7916b08db88cb7b6a8896345f7f07739cbd8909d3f6 - b2sums = fb25ed4e88a6e1e94311df9a94b326eb1a08ddc2497a3fc9f6567af8eb2c965b1673c5d4f4e14ec852c485fe023aa361f45d868e837611e4dca3f88f3d0b6488 pkgname = python-wheezy-template ===================================== PKGBUILD ===================================== @@ -1,15 +1,18 @@ -# Maintainer: +# Maintainer: Carl Smedstad <car...@archlinux.org> # Contributor: Eli Schwartz <eschwa...@archlinux.org> -_name=wheezy.template pkgname=python-wheezy-template +_pkgname=wheezy.template pkgver=3.2.2 -pkgrel=1 -pkgdesc="lightweight template library" +pkgrel=2 +pkgdesc="A lightweight template library" arch=(x86_64) url="https://github.com/akornatskyy/wheezy.template" license=(MIT) -depends=(python) +depends=( + glibc + python +) makedepends=( cython python-build @@ -18,27 +21,23 @@ makedepends=( python-wheel ) checkdepends=(python-pytest) -# NOTE: no tests in pypi sdist tarball -# source=(https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz) -source=( - $pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz -) +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('fea0cfd58f737c40dfc4d7916b08db88cb7b6a8896345f7f07739cbd8909d3f6') -b2sums=('fb25ed4e88a6e1e94311df9a94b326eb1a08ddc2497a3fc9f6567af8eb2c965b1673c5d4f4e14ec852c485fe023aa361f45d868e837611e4dca3f88f3d0b6488') build() { - cd $_name-$pkgver + cd "$_pkgname-$pkgver" python -m build --wheel --no-isolation } check() { - cd $_name-$pkgver - export PYTHONPATH="$PWD/src:$PYTHONPATH" - pytest --import-mode=importlib + cd "$_pkgname-$pkgver" + python -m installer -d tmp_install dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + PYTHONPATH="$PWD/tmp_install/$site_packages" pytest } package() { - cd $_name-$pkgver + cd "$_pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl - install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-wheezy-template/-/commit/8651f03cef54e5d7b0c33866e27e2c2cd61e9117 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-wheezy-template/-/commit/8651f03cef54e5d7b0c33866e27e2c2cd61e9117 You're receiving this email because of your account on gitlab.archlinux.org.