Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / python-sniffio
Commits: b0f551cc by Maxime Gauduin at 2023-12-27T14:09:15+01:00 drop setup.py - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,20 @@ +pkgbase = python-sniffio + pkgdesc = Sniff out which async library your code is running under + pkgver = 1.3.0 + pkgrel = 4 + url = https://github.com/python-trio/sniffio + arch = any + license = MIT + checkdepends = python-curio + checkdepends = python-pytest + checkdepends = python-pytest-cov + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = python + source = git+https://github.com/python-trio/sniffio.git#tag=cb8a03d45371efb20156ec895003a9bd988ac89b + sha256sums = SKIP + +pkgname = python-sniffio ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ pkgname=python-sniffio pkgver=1.3.0 -pkgrel=3 +pkgrel=4 pkgdesc='Sniff out which async library your code is running under' arch=(any) url=https://github.com/python-trio/sniffio @@ -10,7 +10,10 @@ license=(MIT) depends=(python) makedepends=( git + python-build + python-installer python-setuptools + python-wheel ) checkdepends=( python-curio @@ -28,7 +31,7 @@ pkgver() { build() { cd sniffio - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -37,9 +40,8 @@ check() { } package() { - cd sniffio - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-sniffio/ + python -m installer --destdir="${pkgdir}" sniffio/dist/*.whl + install -Dm 644 sniffio/LICENSE -t "${pkgdir}"/usr/share/licenses/python-sniffio/ } # vim: ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-sniffio/-/commit/b0f551ccee129dfd31b0a1543ae0fe47a9cd1cb0 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-sniffio/-/commit/b0f551ccee129dfd31b0a1543ae0fe47a9cd1cb0 You're receiving this email because of your account on gitlab.archlinux.org.
