Date: Thursday, April 6, 2023 @ 13:07:27
Author: felixonmars
Revision: 1438770
archrelease: copy trunk to community-staging-any
Added:
python-testpath/repos/community-staging-any/
python-testpath/repos/community-staging-any/PKGBUILD
(from rev 1438769, python-testpath/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-testpath/repos/community-staging-any/PKGBUILD (from rev 1438769,
python-testpath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:07:27 UTC (rev 1438770)
@@ -0,0 +1,37 @@
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: Philipp A. <[email protected]>
+_name=testpath
+pkgname=python-testpath
+pkgver=0.6.0
+pkgrel=2
+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")
+sha256sums=('2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f')
+
+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"
+}