[arch-commits] Commit in python-editables (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Tue May 17 19:15:01 UTC 2022


    Date: Tuesday, May 17, 2022 @ 19:15:01
  Author: arojas
Revision: 1207699

archrelease: copy trunk to community-any

Added:
  python-editables/repos/
  python-editables/repos/community-any/
  python-editables/repos/community-any/PKGBUILD
    (from rev 1207698, python-editables/trunk/PKGBUILD)

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

Copied: python-editables/repos/community-any/PKGBUILD (from rev 1207698, python-editables/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2022-05-17 19:15:01 UTC (rev 1207699)
@@ -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