makedeb


python3-readchar 4.2.1-0


Python library to read characters and key strokes

Click here to go back to the commit logs for python3-readchar.

Commit:


Hash: 985657c32dfdb6d7de4ac9d50204280e737eef61

Message: Update python build/installation method

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7c6d3e1..da3ff48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
 pkgbase = python-readchar
 	pkgdesc = Python library to read characters and key strokes
 	pkgver = 3.0.5
-	pkgrel = 3
+	pkgrel = 4
 	url = https://github.com/magmax/python-readchar
 	arch = any
 	license = MIT
 	makedepends = python-setuptools
 	depends = python
+	depends = python-build
+	depends = python-installer
 	source = python-readchar-3.0.5.tar.gz::https://github.com/magmax/python-readchar/archive/v3.0.5.tar.gz
 	source = LICENSE
 	md5sums = 827709aca051803b086f2b5d966fe61d
diff --git a/PKGBUILD b/PKGBUILD
index fe4a84f..40491fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
 # Maintainer: Kyle Laker <kyle+aur@laker.email>
 pkgname=python-readchar
 pkgver=3.0.5
-pkgrel=3
+pkgrel=4
 pkgdesc="Python library to read characters and key strokes"
 arch=("any")
 url="https://github.com/magmax/python-readchar"
 license=("MIT")
-depends=("python")
+depends=("python" "python-build" "python-installer")
 makedepends=("python-setuptools")
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/magmax/python-readchar/archive/v$pkgver.tar.gz"
         "LICENSE")
@@ -26,12 +26,12 @@ prepare() {
 build() {
     cd "${srcdir}/$pkgname-$pkgver"
 
-    python setup.py build
+    python -m build --wheel --no-isolation
 }
 
 package() {
     cd "${srcdir}/$pkgname-$pkgver"
 
-    GITHUB_REF="refs/tags/$pkgver" python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+    GITHUB_REF="refs/tags/$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl
     install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }