Morten Linderud pushed to branch main at Arch Linux / Packaging / Packages / python-formencode
Commits: 92bf2866 by Morten Linderud at 2024-03-13T17:53:03+01:00 upgpkg: 2.1.0-1 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,21 @@ +pkgbase = python-formencode + pkgdesc = A validation library for Python. + pkgver = 2.1.0 + pkgrel = 1 + url = http://www.formencode.org/en/latest/ + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-dnspython + checkdepends = python-pycountry + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + makedepends = python-setuptools-scm + depends = python + depends = python-six + source = https://files.pythonhosted.org/packages/source/f/formencode/FormEncode-2.1.0.tar.gz + sha256sums = eb74d223078a28cf015fa88966c6e34f2d18d75127318d65c144bed9afc4263f + +pkgname = python-formencode ===================================== PKGBUILD ===================================== @@ -3,8 +3,8 @@ pkgname=python-formencode _pkgname=formencode _pypi=FormEncode -pkgver=2.0.1 -pkgrel=4 +pkgver=2.1.0 +pkgrel=1 pkgdesc="A validation library for Python." arch=("any") url="http://www.formencode.org/en/latest/" @@ -14,7 +14,7 @@ checkdepends=("python-pytest" "python-dnspython" "python-pycountry") makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-setuptools-scm') source=("$pkgname-$pkgver.tar.gz::https://github.com/formencode/formencode/archive/$pkgver.tar.gz") source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pypi}-${pkgver}.tar.gz") -sha256sums=('8f2974112c2557839d5bae8b76490104c03830785d923abbdef148bf3f710035') +sha256sums=('eb74d223078a28cf015fa88966c6e34f2d18d75127318d65c144bed9afc4263f') prepare() { cd "${_pypi}-${pkgver}" @@ -23,12 +23,16 @@ prepare() { build() { cd "${_pypi}-${pkgver}" + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation } check(){ cd "${_pypi}-${pkgver}" - python -m unittest + python -m installer --destdir="$PWD/tmp_install" dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + export PYTHONPATH="$PWD/tmp_install/$site_packages" + PYTHONDONTWRITEBYTECODE=1 python -m unittest } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-formencode/-/commit/92bf286667fe4dffe593756b9ca96e353bc8af33 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-formencode/-/commit/92bf286667fe4dffe593756b9ca96e353bc8af33 You're receiving this email because of your account on gitlab.archlinux.org.