[arch-commits] Commit in (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Tue May 17 19:14:52 UTC 2022


    Date: Tuesday, May 17, 2022 @ 19:14:52
  Author: arojas
Revision: 1207698

New python-hatchling dependency

Added:
  python-editables/
  python-editables/trunk/
  python-editables/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: python-editables/trunk/PKGBUILD
===================================================================
--- python-editables/trunk/PKGBUILD	                        (rev 0)
+++ python-editables/trunk/PKGBUILD	2022-05-17 19:14:52 UTC (rev 1207698)
@@ -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=2
+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
+}



More information about the arch-commits mailing list