[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Sep 3 15:30:32 UTC 2022


    Date: Saturday, September 3, 2022 @ 15:30:32
  Author: felixonmars
Revision: 1292578

addpkg: python-pathable 0.4.3-1

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

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

Added: python-pathable/trunk/PKGBUILD
===================================================================
--- python-pathable/trunk/PKGBUILD	                        (rev 0)
+++ python-pathable/trunk/PKGBUILD	2022-09-03 15:30:32 UTC (rev 1292578)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pathable
+pkgver=0.4.3
+pkgrel=1
+pkgdesc="Object-oriented paths"
+url="https://github.com/p1c2u/pathable"
+license=('Apache')
+arch=('any')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest')
+source=("https://github.com/p1c2u/pathable/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5481ba1e6f4ab4318b9a7bd1d1ddd152f715b001bc7edd1b1221501da1a95578ee6601ce4ce0bdb98773c7954212687d249418e69acef1b350fc5d6cb188dbfc')
+
+prepare() {
+  cd pathable-$pkgver
+  sed -i '/--cov/d' pyproject.toml
+}
+
+build() {
+  cd pathable-$pkgver
+  python -m build -wn
+}
+
+check() {
+  cd pathable-$pkgver
+  pytest
+}
+
+package() {
+  cd pathable-$pkgver
+  python -m installer -d "$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list