Date: Wednesday, April 5, 2023 @ 18:57:52
Author: felixonmars
Revision: 1437908
archrelease: copy trunk to community-staging-any
Added:
python-editables/repos/community-staging-any/
python-editables/repos/community-staging-any/PKGBUILD
(from rev 1437907, python-editables/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-editables/repos/community-staging-any/PKGBUILD (from rev
1437907, python-editables/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:57:52 UTC (rev 1437908)
@@ -0,0 +1,34 @@
+# Maintainer:
+# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
+
+pkgname=python-editables
+_name=${pkgname#python-}
+pkgver=0.3
+pkgrel=3
+pkgdesc='A Python library for creating editable wheels'
+arch=(any)
+url='https://github.com/pfmoore/editables'
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/pfmoore/editables/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('42f7240164af1e028ccb7b60e72f54bbd8b639e9409595fbeffac5d3fb610643')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ PYTHONPATH="$PWD"/src \
+ pytest -v
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}