[arch-commits] Commit in python-isort/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jul 19 11:33:03 UTC 2020
Date: Sunday, July 19, 2020 @ 11:33:02
Author: felixonmars
Revision: 392284
archrelease: copy trunk to testing-any
Added:
python-isort/repos/testing-any/
python-isort/repos/testing-any/PKGBUILD
(from rev 392283, python-isort/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-isort/repos/testing-any/PKGBUILD (from rev 392283, python-isort/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2020-07-19 11:33:02 UTC (rev 392284)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgname=python-isort
+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-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-$pkgver
+ python setup.py build
+}
+
+check() {
+ 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 --deselect tests/test_importable.py::test_importable
+}
+
+package() {
+ cd isort-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list