Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / python-uvloop
Commits: ee772349 by Maxime Gauduin at 2023-12-27T14:58:19+01:00 drop setup.py - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,14 +1,18 @@ pkgbase = python-uvloop pkgdesc = Ultra fast asyncio event loop pkgver = 0.19.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/MagicStack/uvloop arch = x86_64 - license = Apache + license = APACHE license = MIT - makedepends = python-setuptools makedepends = cython0 makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = glibc depends = python depends = libuv source = git+https://github.com/MagicStack/uvloop.git#tag=6c770dc3fbdd281d15c2ad46588c139696f9269c ===================================== PKGBUILD ===================================== @@ -1,39 +1,51 @@ # Maintainer: Filipe LaĆns (FFY00) <la...@archlinux.org> # Maintainer: Maxime Gauduin <aluc...@archlinux.org> -_pkgname=uvloop -pkgname=python-$_pkgname +pkgname=python-uvloop pkgver=0.19.0 -pkgrel=1 +pkgrel=2 pkgdesc='Ultra fast asyncio event loop' -arch=('x86_64') -url='https://github.com/MagicStack/uvloop' -license=('Apache' 'MIT') -depends=('python' 'libuv') -makedepends=('python-setuptools' 'cython0' 'git') +arch=(x86_64) +url=https://github.com/MagicStack/uvloop +license=( + APACHE + MIT +) +depends=( + glibc + python + libuv +) +makedepends=( + cython0 + git + python-build + python-installer + python-setuptools + python-wheel +) _tag=6c770dc3fbdd281d15c2ad46588c139696f9269c source=(git+https://github.com/MagicStack/uvloop.git#tag=${_tag}) b2sums=(SKIP) -pkgver() { - cd $_pkgname +prepare() { + sed 's/self.use_system_libuv = False/self.use_system_libuv = True/' -i uvloop/setup.py +} +pkgver() { + cd uvloop git describe --tags | sed 's/^v//' } build() { - cd $_pkgname - - python setup.py build build_ext --use-system-libuv + cd uvloop + python -m build --wheel --no-isolation } package() { - cd $_pkgname - - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - - install -Dm 644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE - install -Dm 644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT + python -m installer --destdir="${pkgdir}" uvloop/dist/*.whl + install -Dm 644 uvloop/LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE + install -Dm 644 uvloop/LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT } # vim:set ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-uvloop/-/commit/ee772349bdc0370ad8ea4dffb2dfb6c614f68273 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-uvloop/-/commit/ee772349bdc0370ad8ea4dffb2dfb6c614f68273 You're receiving this email because of your account on gitlab.archlinux.org.