[arch-commits] Commit in python-userpath/repos/community-any (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at gemini.archlinux.org
Sat Sep 3 19:41:36 UTC 2022


    Date: Saturday, September 3, 2022 @ 19:41:36
  Author: ffy00
Revision: 1292728

archrelease: copy trunk to community-any

Added:
  python-userpath/repos/community-any/PKGBUILD
    (from rev 1292727, python-userpath/trunk/PKGBUILD)
Deleted:
  python-userpath/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-03 19:41:32 UTC (rev 1292727)
+++ PKGBUILD	2022-09-03 19:41:36 UTC (rev 1292728)
@@ -1,38 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=userpath
-pkgname=python-$_pkgname
-pkgver=1.7.0
-pkgrel=3
-pkgdesc='Cross-platform tool for adding locations to the user PATH, no elevated privileges required!'
-arch=('any')
-url='https://github.com/ofek/userpath'
-license=('MIT' 'Apache')
-depends=('python' 'python-click' 'python-distro')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('faabda97ae4be23350ecf9e3be9b21b3b66b6873f31e094f5bd839b5ddd28d0968799217678b91fdf80a3b829aa1f7f6b451c55b0fc94f770e62f17dd6192b5e')
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  python setup.py pytest
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
-  install -Dm 644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-userpath/repos/community-any/PKGBUILD (from rev 1292727, python-userpath/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-03 19:41:36 UTC (rev 1292728)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=userpath
+pkgname=python-$_pkgname
+pkgver=1.8.0
+pkgrel=1
+pkgdesc='Cross-platform tool for adding locations to the user PATH, no elevated privileges required!'
+arch=('any')
+url='https://github.com/ofek/userpath'
+license=('MIT')
+depends=('python' 'python-click' 'python-distro')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('d2f082909fad22cf5b33f175afdeebe14a44ebd245c84506395f01a288eccf9c376ac28dcc4b618cc2464e1a23e740b41f4f4ad0e780a42e1185c5283ccc7330')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python -m build -nw
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python -m installer -d "$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list