Skip to content
Snippets Groups Projects
Verified Commit 0cbd1bcf authored by Daniel M. Capella's avatar Daniel M. Capella
Browse files

upgpkg: 5.2.0-1

parent b55266af
No related branches found
Tags 5.2.0-1
No related merge requests found
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
_name=tokenize-rt
pkgname=python-tokenize-rt
pkgver=5.1.0
_name=${pkgname#python-}
pkgver=5.2.0
pkgrel=1
pkgdesc='Wrapper around the stdlib `tokenize` which roundtrips'
arch=('any')
......@@ -13,27 +13,27 @@ makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
checkdepends=('python-pytest')
source=("$url/archive/v$pkgver/$_name-$pkgver.tar.gz")
b2sums=('4ba6ad24c9cae7f077ae84cc43a5836e282fa2eae5cc1b93c717cf79d5d2afdd2801be0724c08710d88429b4f289086764e0b98533e9d120d66deb8499a8f022')
b2sums=('a81251b6b8b336a6b1b1095e0b31456e834196fc2174958299ac293e5fc979dcdd2b4fc9c7e2e231e73fd09e116d0538dadf9436b4efdcf1390b2db9a025a4b8')
build() {
cd $_name-$pkgver
cd "$_name"-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
cd "$_name"-$pkgver
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest
}
package() {
cd $_name-$pkgver
cd "$_name"-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/tokenize_rt-$pkgver.dist-info/LICENSE \
ln -s "$site_packages"/"${_name//-/_}"-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment