[arch-commits] Commit in python-flake8-isort/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sun Sep 4 19:28:50 UTC 2022
Date: Sunday, September 4, 2022 @ 19:28:50
Author: polyzen
Revision: 1292884
archrelease: copy trunk to community-any
Added:
python-flake8-isort/repos/community-any/PKGBUILD
(from rev 1292883, python-flake8-isort/trunk/PKGBUILD)
Deleted:
python-flake8-isort/repos/community-any/PKGBUILD
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 33 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-04 19:28:30 UTC (rev 1292883)
+++ PKGBUILD 2022-09-04 19:28:50 UTC (rev 1292884)
@@ -1,31 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: neodarz <neodarz at neodarz dot net>
-
-_name=flake8-isort
-pkgname=python-flake8-isort
-pkgver=4.2.0
-pkgrel=1
-pkgdesc='Flake8 plugin to validate annotations complexity'
-arch=('any')
-url=https://github.com/gforcada/flake8-isort
-license=('GPL3')
-depends=('flake8' 'python-isort')
-checkdepends=('python-pytest' 'python-setuptools' 'python-toml')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('26571500cd54976bbc0cf1006ffbcd1a68dd102f816b7a1051b219616ba9fee0')
-b2sums=('0c291293a640f90d46f76e7f20c3a0bcaa886260d9582dce8261c079584ddb4704d0c825001eaf0424fa36a7467ea322d06ef8c72ebd01632562a4edda62ab53')
-
-build() {
- cd $_name-$pkgver
- python setup.py build
-}
-
-check() {
- cd $_name-$pkgver
- pytest
-}
-
-package() {
- cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-flake8-isort/repos/community-any/PKGBUILD (from rev 1292883, python-flake8-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-04 19:28:50 UTC (rev 1292884)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: neodarz <neodarz at neodarz dot net>
+
+_name=flake8-isort
+pkgname=python-flake8-isort
+pkgver=4.2.0
+pkgrel=2
+pkgdesc='Flake8 plugin to validate annotations complexity'
+arch=('any')
+url=https://github.com/gforcada/flake8-isort
+license=('GPL3')
+depends=('flake8' 'python-isort')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+checkdepends=('python-pytest' 'python-toml')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('26571500cd54976bbc0cf1006ffbcd1a68dd102f816b7a1051b219616ba9fee0')
+b2sums=('0c291293a640f90d46f76e7f20c3a0bcaa886260d9582dce8261c079584ddb4704d0c825001eaf0424fa36a7467ea322d06ef8c72ebd01632562a4edda62ab53')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
More information about the arch-commits
mailing list