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

Felix Yan felixonmars at archlinux.org
Mon Oct 19 11:18:09 UTC 2020


    Date: Monday, October 19, 2020 @ 11:18:09
  Author: felixonmars
Revision: 398570

archrelease: copy trunk to extra-any

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

----------+
 PKGBUILD |  118 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 59 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-19 11:17:54 UTC (rev 398569)
+++ PKGBUILD	2020-10-19 11:18:09 UTC (rev 398570)
@@ -1,59 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Yaron de Leeuw <me at jarondl.net>
-
-pkgname=python-isort
-pkgver=5.6.1
-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-hypothesmith'
-              'python-libcst' 'python-pip' 'python-pip-api' 'python-pipreqs' 'python-pytest'
-              'python-pytest-mock' 'python-requirementslib')
-source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('cc18647f985d71d35d698c259e21c4f0ee5c95607585ad63751653cb442a1111cf360cbc9db6705e7fa14ecb9236d2f385f3a18bc98dd8b06554f26a9b21bb30')
-
-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
-  # tests/test_importable.py::test_importable: This is just weird
-  # tests/integration/test_projects_using_isort.py::test_airflow: https://github.com/PyCQA/isort/pull/1567#issuecomment-710787547
-  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 --deselect tests/integration/test_projects_using_isort.py::test_airflow
-}
-
-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/extra-any/PKGBUILD (from rev 398569, python-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-19 11:18:09 UTC (rev 398570)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgname=python-isort
+pkgver=5.6.2
+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-hypothesmith'
+              'python-libcst' 'python-pip' 'python-pip-api' 'python-pipreqs' 'python-pytest'
+              'python-pytest-mock' 'python-requirementslib')
+source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('3df4637c23194f3cb3f3aebaca6dd0ad7d1bff5b52a3dff82601d0531e49460e7555e6f931a8a9e2c585582a2757ea1c8a4f68a0dde9183af7ff7f6ee5bc720b')
+
+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
+  # tests/test_importable.py::test_importable: This is just weird
+  # tests/integration/test_projects_using_isort.py::test_airflow: https://github.com/PyCQA/isort/pull/1567#issuecomment-710787547
+  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 --deselect tests/integration/test_projects_using_isort.py::test_airflow
+}
+
+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