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

Antonio Rojas arojas at gemini.archlinux.org
Sun Apr 3 09:04:31 UTC 2022


    Date: Sunday, April 3, 2022 @ 09:04:30
  Author: arojas
Revision: 1180947

Update to 0.6.0

Modified:
  python-testpath/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-03 01:44:09 UTC (rev 1180946)
+++ PKGBUILD	2022-04-03 09:04:30 UTC (rev 1180947)
@@ -2,26 +2,36 @@
 # Contributor: Philipp A. <flying-sheep at web.de>
 _name=testpath
 pkgname=python-testpath
-pkgver=0.5.0
-pkgrel=3
+pkgver=0.6.0
+pkgrel=1
 pkgdesc='Test utilities for code working with files and commands'
 arch=('any')
 url="https://pypi.python.org/pypi/testpath"
 license=('MIT')
 depends=('python')
-#makedepends=('python-pip')
-_wheel="$_name-$pkgver-py2.py3-none-any.whl"
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest')
 source=("https://pypi.io/packages/source/t/$_name/$_name-$pkgver.tar.gz")
-md5sums=('b3a41d75aadeab905f7014a3189e852b')
+md5sums=('9fd4339f76da12d15bc718e4aa2566e9')
 
 prepare() {
-  cd "$_name-$pkgver"
+  cd $_name-$pkgver
   rm testpath/cli*.exe
 }
 
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -v
+}
+
 package() {
-  cd "$_name-$pkgver"
-  python setup.py install --root="$pkgdir" --optimize=1
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 }



More information about the arch-commits mailing list