[arch-commits] Commit in (4 files)

David Runge dvzrv at gemini.archlinux.org
Thu May 5 22:28:48 UTC 2022


    Date: Thursday, May 5, 2022 @ 22:28:48
  Author: dvzrv
Revision: 1195555

Add python-findpython as new dependency for python-pdm.

Added:
  python-findpython/
  python-findpython/repos/
  python-findpython/trunk/
  python-findpython/trunk/PKGBUILD

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

Added: python-findpython/trunk/PKGBUILD
===================================================================
--- python-findpython/trunk/PKGBUILD	                        (rev 0)
+++ python-findpython/trunk/PKGBUILD	2022-05-05 22:28:48 UTC (rev 1195555)
@@ -0,0 +1,37 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=findpython
+pkgname=python-findpython
+pkgver=0.1.6
+pkgrel=1
+pkgdesc="A utility to find python versions on your system"
+arch=(any)
+url="https://github.com/frostming/findpython"
+license=(MIT)
+depends=(python-packaging)
+makedepends=(python-build python-installer python-pdm-pep517 python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('ad073bab732fb9941ec6604afe848c162e54acdd85019734a2583a817727f383a9f495e64c485d0618d2a099c4d7c8f992b1f62270ef4dd9590751686d9ffc62')
+b2sums=('79efeedbdfd3bdbe5d03082a2f302c67e5d03ac0cf4c885b37b4aaa4c1cfb3c6258aa39b96abee24a3265a3828325be153a917dc414f474842f7cfb63dd5fdc2')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  python -m installer --destdir="test_dir" dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}



More information about the arch-commits mailing list