[arch-commits] Commit in python-isort/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jul 19 11:32:52 UTC 2020


    Date: Sunday, July 19, 2020 @ 11:32:52
  Author: felixonmars
Revision: 392283

upgpkg: python-isort 5.0.0-1

Modified:
  python-isort/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-19 11:14:31 UTC (rev 392282)
+++ PKGBUILD	2020-07-19 11:32:52 UTC (rev 392283)
@@ -2,32 +2,38 @@
 # Contributor: Yaron de Leeuw <me at jarondl.net>
 
 pkgname=python-isort
-pkgver=4.3.21.2
-_tag=4.3.21-2
-pkgrel=4
+pkgver=5.0.0
+pkgrel=1
 pkgdesc="A Python utility / library to sort Python imports."
 arch=('any')
 url="https://github.com/timothycrosley/isort"
 license=('MIT')
-depends=('python-setuptools')
-checkdepends=('python-pytest' 'python-mock' 'python-pip' 'python-pip-api' 'pylama' 'python-pipreqs'
-              'python-requirementslib')
-source=("$pkgname-$_tag.tar.gz::https://github.com/timothycrosley/isort/archive/$_tag.tar.gz")
-sha512sums=('fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687')
+depends=('python-dephell')
+checkdepends=('pylama' 'python-hypothesis-auto' 'python-pip' 'python-pip-api' 'python-pipreqs'
+              'python-pytest' 'python-requirementslib')
+source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b78eb3d4c633da76d88e95e2c5bd74b74565d1b1da004436c6aa8553c3b5715eaad003e67cad40e580ebac4de7d468bc27a8d1d1664d123a3896e105fe9b6f3e')
 
+prepare() {
+  cd isort-$pkgver
+  # poetry-generated setup.py are fatally broken, see:
+  # https://github.com/sdispater/poetry/issues/866
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
 build() {
-  cd isort-$_tag
+  cd isort-$pkgver
   python setup.py build
 }
 
 check() {
-  cd isort-$_tag
+  cd isort-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" pytest || warning "Tests failed"
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" pytest --deselect tests/test_importable.py::test_importable
 }
 
 package() {
-  cd isort-$_tag
+  cd isort-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list