[arch-commits] Commit in python-awesomeversion/trunk (PKGBUILD)

Jelle van der Waa jelle at gemini.archlinux.org
Sun Feb 20 08:58:23 UTC 2022


    Date: Sunday, February 20, 2022 @ 08:58:23
  Author: jelle
Revision: 1135234

upgpkg: python-awesomeversion 22.2.0-1

Switch to PEP517 and that jazz

Modified:
  python-awesomeversion/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-20 08:54:30 UTC (rev 1135233)
+++ PKGBUILD	2022-02-20 08:58:23 UTC (rev 1135234)
@@ -3,7 +3,7 @@
 
 pkgname=python-awesomeversion
 _name=${pkgname#python-}
-pkgver=22.1.0
+pkgver=22.2.0
 pkgrel=1
 pkgdesc="One version package to rule them all."
 arch=('any')
@@ -10,16 +10,16 @@
 url="https://github.com/ludeeus/awesomeversion"
 license=('MIT')
 depends=(python)
-makedepends=('python-setuptools')
+makedepends=(python-build python-installer python-poetry)
 checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/ludeeus/$_name/archive/refs/tags/$pkgver.tar.gz")
-sha512sums=('bcd837524499e92a2259b75b52902d9a2996a53c42cd2cfe220ae319adfe8e3695494c8cf293b70373f349f249abefc5707ede69886c317e835db05599923b0c')
+sha512sums=('ea371000e9c54bd53bf809f7eb9e2b09779c689c3b8a85820caac291b97feb933e5d9fbf384df576267b66e13ec8a1af422d7abdeab4cdfe1be00b88b9474dfe')
 
 prepare() {
     cd $_name-$pkgver
-
-    # replace version "main" with correct version
-    sed -e "s|version=\"main\"|version=\"$pkgver\"|" -i setup.py
+    # version = "0"
+    sed -e "s|version = \"0\"|version = \"$pkgver\"|" -i pyproject.toml
+    cat pyproject.toml
 }
 
 check() {
@@ -30,12 +30,12 @@
 build() {
     cd $_name-$pkgver
 
-    python setup.py build
+    python -m build --wheel --no-isolation
 }
 
 package() {
     cd $_name-$pkgver
 
-    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+    python -m installer --destdir="$pkgdir" dist/*.whl
     install -Dm644 LICENCE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list