[arch-commits] Commit in (12 files)

Daniel M. Capella polyzen at archlinux.org
Fri Nov 6 22:21:22 UTC 2020


    Date: Friday, November 6, 2020 @ 22:21:21
  Author: polyzen
Revision: 744672

Add python-flake8-{black,docstrings,isort}

Added:
  python-flake8-black/
  python-flake8-black/repos/
  python-flake8-black/trunk/
  python-flake8-black/trunk/PKGBUILD
  python-flake8-docstrings/
  python-flake8-docstrings/repos/
  python-flake8-docstrings/trunk/
  python-flake8-docstrings/trunk/PKGBUILD
  python-flake8-isort/
  python-flake8-isort/repos/
  python-flake8-isort/trunk/
  python-flake8-isort/trunk/PKGBUILD

-----------------------------------------+
 python-flake8-black/trunk/PKGBUILD      |   33 +++++++++++++++++++++++++++
 python-flake8-docstrings/trunk/PKGBUILD |   36 ++++++++++++++++++++++++++++++
 python-flake8-isort/trunk/PKGBUILD      |   33 +++++++++++++++++++++++++++
 3 files changed, 102 insertions(+)

Added: python-flake8-black/trunk/PKGBUILD
===================================================================
--- python-flake8-black/trunk/PKGBUILD	                        (rev 0)
+++ python-flake8-black/trunk/PKGBUILD	2020-11-06 22:21:21 UTC (rev 744672)
@@ -0,0 +1,33 @@
+# Maintainer: George Rawlinson <george at rawlinson.net.nz>
+
+_name=flake8-black
+pkgname=python-flake8-black
+pkgver=0.2.1
+pkgrel=2
+pkgdesc='Flake8 plugin to call black as a code style validator'
+arch=('any')
+url=https://github.com/peterjc/flake8-black
+license=('MIT')
+depends=('flake8' 'python-black' 'python-setuptools')
+source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
+b2sums=('46cf95349f683d3c4f411425c1e6e70dc0a0036036eccb736362b9888b4b0cb4c6d215fdb78bf59bbe8d9f3edca24959121c628426570dc1917f6ef9ad5ffbca')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  cd tests
+  PATH="${PWD%/tests}/temp/usr/bin:$PATH" PYTHONPATH="${PWD%/tests}/temp/$sitepackages" ./run_tests.sh
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.rst
+}

Added: python-flake8-docstrings/trunk/PKGBUILD
===================================================================
--- python-flake8-docstrings/trunk/PKGBUILD	                        (rev 0)
+++ python-flake8-docstrings/trunk/PKGBUILD	2020-11-06 22:21:21 UTC (rev 744672)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
+
+_name=flake8-docstrings
+pkgname=python-flake8-docstrings
+pkgver=1.5.0
+pkgrel=2
+pkgdesc='Plugin to Flake8 to include checks provided by pydocstyle'
+arch=('any')
+url=https://gitlab.com/pycqa/flake8-docstrings
+license=('MIT')
+depends=('flake8' 'python-pydocstyle' 'python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('3d5a31c7ec6b7367ea6506a87ec293b94a0a46c0bce2bb4975b7f1d09b6f3717')
+b2sums=('f78d3604ee842f45637e53d6420910f1cdc611607883af8888918a753faa6e4ee020d4248c896fafda1f6d0515a2a3b33ab32ea159618f8524c03cd92ab55f17')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" flake8 --exit-zero flake8_docstrings.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Added: python-flake8-isort/trunk/PKGBUILD
===================================================================
--- python-flake8-isort/trunk/PKGBUILD	                        (rev 0)
+++ python-flake8-isort/trunk/PKGBUILD	2020-11-06 22:21:21 UTC (rev 744672)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: neodarz <neodarz at neodarz dot net>
+
+_name=flake8-isort
+pkgname=python-flake8-isort
+pkgver=4.0.0
+pkgrel=2
+pkgdesc='Flake8 plugin to validate annotations complexity'
+arch=('any')
+url=https://github.com/gforcada/flake8-isort
+license=('GPL3')
+depends=('flake8' 'python-isort' 'python-setuptools' 'python-testfixtures')
+checkdepends=('python-pytest' 'python-toml')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('2b91300f4f1926b396c2c90185844eb1a3d5ec39ea6138832d119da0a208f4d9')
+b2sums=('b4acdd9729643a6c55e50afa2b44c76913285aa498aeefdfa561f090c0eb16926825aede9c24c0e35af0fc1f2f88b0f826b36c50010b588f2d678dbe78922f62')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list