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

Felix Yan felixonmars at archlinux.org
Tue Aug 4 10:49:57 UTC 2020


    Date: Tuesday, August 4, 2020 @ 10:49:54
  Author: felixonmars
Revision: 393121

archrelease: copy trunk to testing-any

Added:
  python-isort/repos/testing-any/PKGBUILD
    (from rev 393120, python-isort/trunk/PKGBUILD)
Deleted:
  python-isort/repos/testing-any/PKGBUILD

----------+
 PKGBUILD |   97 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 57 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-04 10:49:28 UTC (rev 393120)
+++ PKGBUILD	2020-08-04 10:49:54 UTC (rev 393121)
@@ -1,40 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Yaron de Leeuw <me at jarondl.net>
-
-pkgname=python-isort
-pkgver=5.1.4
-pkgrel=1
-pkgdesc="A Python utility / library to sort Python imports."
-arch=('any')
-url="https://github.com/timothycrosley/isort"
-license=('MIT')
-depends=('python')
-makedepends=('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=('49c78d3731caac0c70e49d07336cc87110042dcfd3e0ba191cd0bbe65a59fe14488d6361506a2a0308402d4b09a8d1e00f7dd3c79ca889e13bbc175b4f2c3417')
-
-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/
-}

Copied: python-isort/repos/testing-any/PKGBUILD (from rev 393120, python-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-04 10:49:54 UTC (rev 393121)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgname=python-isort
+pkgver=5.2.0
+pkgrel=1
+pkgdesc="A Python utility / library to sort Python imports."
+arch=('any')
+url="https://github.com/timothycrosley/isort"
+license=('MIT')
+depends=('python-toml')
+makedepends=('python-dephell')
+checkdepends=('git' 'pylama' 'python-black' '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=('864b71b1162571d359f31568640cf1ae15fea99317954327a42d43c2521075a1d18527f437252e0f74f503db85d5a9657643199882a4171edfe031fdb208bb92')
+
+prepare() {
+  cd isort-$pkgver
+
+  # Devendor toml
+  rm -r isort/_vendored
+  sed -i 's/from ._vendored //' isort/settings.py
+
+  # poetry-generated setup.py are fatally broken, see:
+  # https://github.com/sdispater/poetry/issues/866
+  dephell deps convert --from pyproject.toml --to setup.py
+  for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do
+    pushd $_plugin
+    dephell deps convert --from pyproject.toml --to setup.py
+    popd
+  done
+}
+
+build() {
+  cd isort-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd isort-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  for _plugin in example_isort_formatting_plugin example_shared_isort_profile; do
+    pushd $_plugin
+    python setup.py install --root="$srcdir/isort-$pkgver/tmp_install" --optimize=1
+    popd
+  done
+  # This is just weird
+  PYTHONPATH="$PWD/example_isort_formatting_plugin:$PWD/example_shared_isort_profile:$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