Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages /
python-klein
Commits:
893c57ee by Chih-Hsuan Yen at 2023-12-16T21:21:12+08:00
Switch to PEP517
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -13,7 +13,7 @@ depends=(python python-attrs python-hyperlink
python-incremental
python-tubes python-twisted python-werkzeug python-zope-interface
# Detected by namcap and not declared in setup.py
python-constantly)
-makedepends=(python-setuptools)
+makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-hypothesis python-treq python-pytest)
source=("https://github.com/twisted/klein/archive/$pkgver/klein-$pkgver.tar.gz"
"$pkgname-pr586.patch"::"https://github.com/twisted/klein/commit/6d8f1dbacedf0aee85be307ac0e04537f2084f38.patch")
@@ -27,7 +27,7 @@ prepare() {
build() {
cd klein-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -37,6 +37,6 @@ check() {
package() {
cd klein-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ 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-klein/-/commit/893c57ee225eb6b08afc69f5a7bd17e0fc392f0b
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-klein/-/commit/893c57ee225eb6b08afc69f5a7bd17e0fc392f0b
You're receiving this email because of your account on gitlab.archlinux.org.