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

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 1 08:07:12 UTC 2022


    Date: Monday, August 1, 2022 @ 08:07:12
  Author: arojas
Revision: 1259605

upgpkg: python-typer 0.6.1-1: Update to 0.6.1, drop dephell usage

Modified:
  python-typer/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 08:02:17 UTC (rev 1259604)
+++ PKGBUILD	2022-08-01 08:07:12 UTC (rev 1259605)
@@ -3,7 +3,7 @@
 
 _pkgname=typer
 pkgname=python-typer
-pkgver=0.4.1
+pkgver=0.6.1
 pkgrel=1
 pkgdesc="Build great CLIs. Easy to code. Based on Python type hints"
 arch=('any')
@@ -10,22 +10,22 @@
 url="https://typer.tiangolo.com/"
 license=('MIT')
 depends=('python-click')
-makedepends=('python-setuptools' 'python-dephell')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-flit-core')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/tiangolo/typer/archive/${pkgver}.tar.gz")
-sha512sums=('1bf3b4ffaa9d92cc955e3e5480f34732da1c13778b6047f38e98f5460c7d85a8ebbfefe3ac0b0fefa46e4c37f0dbac50ce5e6670b70c7c2f94818c6bd815b210')
+sha512sums=('bb43c0d8a3e1ae8e723f60d1309590c1c55b7c491e9f7437d73219b8cc704d11b124282c444799f74717b15b56e0ccdb7fed748c43ce7a6203412e44c45ac583')
 
 prepare() {
-  cd "typer-$pkgver"
-  dephell deps convert --from pyproject.toml --to setup.py
+  cd typer-$pkgver
+  sed -e 's|flit_core >=2,<3|flit_core >=2|' -i pyproject.toml # Relax version constraint
 }
 
 build() {
   cd "typer-$pkgver"
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd "typer-$pkgver"
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list