Filipe Laíns pushed to branch main at Arch Linux / Packaging / Packages / python-filetype
Commits: 065fe556 by Filipe Laíns at 2024-11-29T21:07:35+00:00 upgpkg: 1.2.0-5 Signed-off-by: Filipe Laíns <la...@archlinux.org> - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,10 +1,14 @@ pkgbase = python-filetype pkgdesc = Infer file type and MIME type of any file/buffer pkgver = 1.2.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/h2non/filetype.py arch = any license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-benchmark + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools depends = python source = https://github.com/h2non/filetype.py/archive/v1.2.0/python-filetype-1.2.0.tar.gz ===================================== PKGBUILD ===================================== @@ -2,28 +2,32 @@ pkgname=python-filetype pkgver=1.2.0 -pkgrel=4 +pkgrel=5 pkgdesc="Infer file type and MIME type of any file/buffer" url="https://github.com/h2non/filetype.py" license=('MIT') arch=('any') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools') +checkdepends=('python-pytest' 'python-pytest-benchmark') source=("https://github.com/h2non/filetype.py/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('e6116dd5505c01803c29016a8e85ce3f126c998f882eb1cfa8ff67990f560fee486d06b27dc64dbd74490f5d0f0327a9af0074e9cf1e16d3d55e71eeb2575c75') build() { cd filetype.py-$pkgver - python setup.py build + + python -m build --wheel --no-isolation } check() { cd filetype.py-$pkgver - python -m unittest discover + + python -m pytest } package() { cd filetype.py-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-filetype/-/commit/065fe556f8d7341e3a7f66b14aed3f83fd9cb043 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-filetype/-/commit/065fe556f8d7341e3a7f66b14aed3f83fd9cb043 You're receiving this email because of your account on gitlab.archlinux.org.