[arch-commits] Commit in python-testpath/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Sunday, April 3, 2022 @ 09:04:47
  Author: arojas
Revision: 1180948

archrelease: copy trunk to community-any

Added:
  python-testpath/repos/community-any/PKGBUILD
    (from rev 1180947, python-testpath/trunk/PKGBUILD)
Deleted:
  python-testpath/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 37 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-03 09:04:30 UTC (rev 1180947)
+++ PKGBUILD	2022-04-03 09:04:47 UTC (rev 1180948)
@@ -1,27 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Philipp A. <flying-sheep at web.de>
-_name=testpath
-pkgname=python-testpath
-pkgver=0.5.0
-pkgrel=3
-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"
-source=("https://pypi.io/packages/source/t/$_name/$_name-$pkgver.tar.gz")
-md5sums=('b3a41d75aadeab905f7014a3189e852b')
-
-prepare() {
-  cd "$_name-$pkgver"
-  rm testpath/cli*.exe
-}
-
-package() {
-  cd "$_name-$pkgver"
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-testpath/repos/community-any/PKGBUILD (from rev 1180947, python-testpath/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-03 09:04:47 UTC (rev 1180948)
@@ -0,0 +1,37 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Philipp A. <flying-sheep at web.de>
+_name=testpath
+pkgname=python-testpath
+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-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/t/$_name/$_name-$pkgver.tar.gz")
+md5sums=('9fd4339f76da12d15bc718e4aa2566e9')
+
+prepare() {
+  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 -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list