Date: Monday, October 31, 2022 @ 11:17:34
Author: felixonmars
Revision: 1339793
archrelease: copy trunk to community-any
Added:
python-pytest-isort/repos/community-any/PKGBUILD
(from rev 1339792, python-pytest-isort/trunk/PKGBUILD)
Deleted:
python-pytest-isort/repos/community-any/PKGBUILD
----------+
PKGBUILD | 77 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 42 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-31 11:17:26 UTC (rev 1339792)
+++ PKGBUILD 2022-10-31 11:17:34 UTC (rev 1339793)
@@ -1,35 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-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:
Copied: python-pytest-isort/repos/community-any/PKGBUILD (from rev 1339792,
python-pytest-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-31 11:17:34 UTC (rev 1339793)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-isort
+pkgver=3.0.0
+pkgrel=2
+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-core')
+source=("https://github.com/moccu/pytest-isort/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+
$pkgname-poetry-core.patch::https://github.com/stephrdev/pytest-isort/commit/a36c16ecbf454cc25f8564aa39fe652808f56d3f.patch)
+sha512sums=('d1efae99da70c324bff078d2a9182dcfac715da2f9297c572b4d220d8b1701a7254d8042aa63b247ca38f1c4eba298b48e884f56989848d2afe419e7fdb0186a'
+
'2ff2f802a50d78376bfb80c5eac387dfd4e6a3832b26f2312bc7c6e527fa585a9c8b4400ecabcc1ee9c1b306b9e72466677fd9b1ba2cd63bbe5b648e7cc63f09')
+
+prepare() {
+ cd pytest-isort-$pkgver
+ patch -p1 -i ../$pkgname-poetry-core.patch
+}
+
+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: