[arch-commits] Commit in python-click-didyoumean/repos/community-any (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Mar 11 22:54:24 UTC 2022
Date: Friday, March 11, 2022 @ 22:54:23
Author: felixonmars
Revision: 1148868
archrelease: copy trunk to community-any
Added:
python-click-didyoumean/repos/community-any/PKGBUILD
(from rev 1148867, python-click-didyoumean/trunk/PKGBUILD)
Deleted:
python-click-didyoumean/repos/community-any/PKGBUILD
----------+
PKGBUILD | 61 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 30 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-11 22:54:19 UTC (rev 1148867)
+++ PKGBUILD 2022-03-11 22:54:23 UTC (rev 1148868)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-click-didyoumean
-pkgver=0.0.3
-pkgrel=5
-pkgdesc="Enable git-like did-you-mean feature in click"
-url="https://github.com/click-contrib/click-didyoumean"
-license=('MIT')
-arch=('any')
-depends=('python-click')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://github.com/click-contrib/click-didyoumean/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('6e832881817645eb8fa3a40acaab74a7f0dcc798aa984781a011b2ef78da2a4ae71ff2d58907bcbb35adbfc659727223c28c3622788eef05ecbdf758d6ac889d')
-
-build() {
- cd click-didyoumean-$pkgver
- python setup.py build
-}
-
-check() {
- cd click-didyoumean-$pkgver
- python -m pytest || :
-}
-
-package() {
- cd click-didyoumean-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-click-didyoumean/repos/community-any/PKGBUILD (from rev 1148867, python-click-didyoumean/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-11 22:54:23 UTC (rev 1148868)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-click-didyoumean
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="Enable git-like did-you-mean feature in click"
+url="https://github.com/click-contrib/click-didyoumean"
+license=('MIT')
+arch=('any')
+depends=('python-click')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest')
+source=("https://github.com/click-contrib/click-didyoumean/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('690438809d103d2f2b54fc1dabb912b359f5355ba242bb37ef420cd8fcc3ed226911d7216acdcb3574bb0e93231c3a3ca7b00e9e99365955387cfeddeed449ae')
+
+build() {
+ cd click-didyoumean-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd click-didyoumean-$pkgver
+ PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+ cd click-didyoumean-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list