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

Felix Yan felixonmars at archlinux.org
Fri Sep 4 23:09:47 UTC 2020


    Date: Friday, September 4, 2020 @ 23:09:46
  Author: felixonmars
Revision: 395446

archrelease: copy trunk to extra-any

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

----------+
 PKGBUILD |  116 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 58 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-04 23:09:35 UTC (rev 395445)
+++ PKGBUILD	2020-09-04 23:09:46 UTC (rev 395446)
@@ -1,58 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Yaron de Leeuw <me at jarondl.net>
-
-pkgname=python-isort
-pkgver=5.5.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-hypothesmith'
-              'python-libcst' 'python-pip' 'python-pip-api' 'python-pipreqs' 'python-pytest'
-              'python-requirementslib')
-source=("https://github.com/timothycrosley/isort/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('8c48c833bf72d94eb3295db140e2cb5dda3b3b87356f9705b9804d83593d83136f0baa4ad720b985b1e391eae260fa4a7f560af50bc9814720b79889acdc5d99')
-
-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/
-}

Copied: python-isort/repos/extra-any/PKGBUILD (from rev 395445, python-isort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-04 23:09:46 UTC (rev 395446)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgname=python-isort
+pkgver=5.5.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=('12a051e061fe139bc78528d5aba1bd7bc55bd079811902fc8bf78157fd1f4a8278d42169b416a6ffd0b3a13a095daa09b9fdaf2716e07d1a288835e99b004822')
+
+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