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

Felix Yan felixonmars at gemini.archlinux.org
Fri Mar 11 22:26:54 UTC 2022


    Date: Friday, March 11, 2022 @ 22:26:53
  Author: felixonmars
Revision: 1148831

archrelease: copy trunk to community-any

Added:
  python-pytest-isort/repos/community-any/PKGBUILD
    (from rev 1148830, python-pytest-isort/trunk/PKGBUILD)
Deleted:
  python-pytest-isort/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-11 22:26:43 UTC (rev 1148830)
+++ PKGBUILD	2022-03-11 22:26:53 UTC (rev 1148831)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-isort
-pkgver=2.0.0
-pkgrel=5
-pkgdesc='pytest plugin to perform isort checks (import ordering)'
-arch=('any')
-license=('BSD')
-url='https://github.com/moccu/pytest-isort'
-depends=('python-pytest' 'python-isort')
-makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz")
-sha512sums=('b338bf0de7e98be330c1ee391e0b1aaae363efbcfd89f14138704ad6d0c29a4d7a0b27e17251148dc26d04aae39184e0c5a465f3091769cf1b4043f6faf3c653')
-
-build() {
-  cd pytest-isort-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-isort-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test
-}
-
-package() {
-  cd pytest-isort-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-isort/repos/community-any/PKGBUILD (from rev 1148830, python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-11 22:26:53 UTC (rev 1148831)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-isort
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='pytest plugin to perform isort checks (import ordering)'
+arch=('any')
+license=('BSD')
+url='https://github.com/moccu/pytest-isort'
+depends=('python-pytest' 'python-isort')
+makedepends=('python-build' 'python-installer' 'python-poetry')
+source=("https://github.com/moccu/pytest-isort/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('d1efae99da70c324bff078d2a9182dcfac715da2f9297c572b4d220d8b1701a7254d8042aa63b247ca38f1c4eba298b48e884f56989848d2afe419e7fdb0186a')
+
+build() {
+  cd pytest-isort-$pkgver
+  python -m build -nw
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-isort-$pkgver
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-isort-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm "$pkgdir"/usr/lib/python3.10/site-packages/LICENSE.rst
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list