Date: Thursday, April 6, 2023 @ 03:27:50
Author: felixonmars
Revision: 1438240
archrelease: copy trunk to community-staging-any
Added:
python-invoke/repos/community-staging-any/
python-invoke/repos/community-staging-any/PKGBUILD
(from rev 1438239, python-invoke/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-invoke/repos/community-staging-any/PKGBUILD (from rev 1438239,
python-invoke/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 03:27:50 UTC (rev 1438240)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-invoke
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Pythonic task execution"
+url="https://github.com/pyinvoke/invoke"
+license=('BSD')
+arch=('any')
+depends=('python-fluidity' 'python-lexicon' 'python-yaml')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-relaxed' 'python-icecream')
+source=("https://pypi.io/packages/source/i/invoke/invoke-$pkgver.tar.gz")
+sha512sums=('40621d0ca217f51f6a4bfdea3704cfd5e5ae97305b43ecae863d0bd4a485bb44a402e342f8e613b5b67882c398518982f13470a99174fa2756b1f9c22a3f4656')
+
+prepare() {
+ rm -r invoke-$pkgver/invoke/vendor
+}
+
+build() {
+ cd invoke-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd invoke-$pkgver
+ PYTHONPATH="$PWD"/build/lib pytest -s tests -k 'not pty'
+}
+
+package() {
+ cd invoke-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}