[arch-commits] Commit in python-black/repos/community-any (PKGBUILD PKGBUILD)

Maxim Baz maximbaz at gemini.archlinux.org
Mon Feb 7 17:02:19 UTC 2022


    Date: Monday, February 7, 2022 @ 17:02:18
  Author: maximbaz
Revision: 1128348

archrelease: copy trunk to community-any

Added:
  python-black/repos/community-any/PKGBUILD
    (from rev 1128347, python-black/trunk/PKGBUILD)
Deleted:
  python-black/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-07 17:02:16 UTC (rev 1128347)
+++ PKGBUILD	2022-02-07 17:02:18 UTC (rev 1128348)
@@ -1,59 +0,0 @@
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: James Zhu <jameszhu at berkeley.edu>
-
-pkgname=python-black
-pkgver=22.1.0
-pkgrel=1
-pkgdesc='Uncompromising Python code formatter'
-arch=('any')
-url=https://github.com/psf/black
-license=('MIT')
-depends=('python' 'python-click' 'python-mypy_extensions' 'python-pathspec'
-         'python-platformdirs' 'python-tomli' 'python-typing_extensions')
-makedepends=('python-build' 'python-install' 'python-setuptools-scm'
-             'python-wheel')
-checkdepends=('ipython' 'python-aiohttp' 'python-parameterized' 'python-pytest'
-              'python-typed-ast' 'python-tokenize-rt')
-optdepends=('ipython: for Jupyter notebook support'
-            'python-tokenize-rt: for Jupyter notebook support'
-            'python-aiohttp: for the blackd HTTP server'
-            'python-colorama: for colored diffs')
-source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
-sha256sums=('a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5')
-b2sums=('010f04e01f920f79b27d2dfcf3cda3185f6a4ef24f710af41629856dc0baff011393733c90585dc4b12494b983cf628e480adaee05d2d44736dbce26732388e3')
-
-build() {
-  cd "black-$pkgver"
-  python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
-  cd "black-$pkgver"
-  python -m venv --system-site-packages test-env
-  test-env/bin/python -m install --optimize=1 dist/*.whl
-  chmod +x test-env/bin/black # https://github.com/FFY00/python-install/pull/6
-  PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
-}
-
-package() {
-  cd "black-$pkgver"
-  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
-
-  # https://github.com/FFY00/python-install/issues/7
-  sed -i 's/patched_main \[d]/patched_main/' "$pkgdir"/usr/bin/blackd
-
-  # https://github.com/FFY00/python-install/pull/6
-  chmod +x "$pkgdir"/usr/bin/*
-
-  # Symlink license file
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  install -d "$pkgdir"/usr/share/licenses/$pkgname
-  ln -s "$site_packages"/black-$pkgver.dist-info/LICENSE \
-    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  # vim plugin
-  install -Dm644 plugin/black.vim "$pkgdir/usr/share/vim/vimfiles/plugin/black.vim"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-black/repos/community-any/PKGBUILD (from rev 1128347, python-black/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-07 17:02:18 UTC (rev 1128348)
@@ -0,0 +1,60 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: James Zhu <jameszhu at berkeley.edu>
+
+pkgname=python-black
+pkgver=22.1.0
+pkgrel=2
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/psf/black
+license=('MIT')
+depends=('python' 'python-click' 'python-mypy_extensions' 'python-pathspec'
+         'python-platformdirs' 'python-tomli' 'python-typing_extensions')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('ipython' 'python-aiohttp' 'python-parameterized' 'python-pytest'
+              'python-typed-ast' 'python-tokenize-rt')
+optdepends=('ipython: for Jupyter notebook support'
+            'python-tokenize-rt: for Jupyter notebook support'
+            'python-aiohttp: for the blackd HTTP server'
+            'python-colorama: for colored diffs')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5')
+b2sums=('010f04e01f920f79b27d2dfcf3cda3185f6a4ef24f710af41629856dc0baff011393733c90585dc4b12494b983cf628e480adaee05d2d44736dbce26732388e3')
+
+build() {
+  cd "black-$pkgver"
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd "black-$pkgver"
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m install --optimize=1 dist/*.whl
+  chmod +x test-env/bin/black # https://github.com/FFY00/python-install/pull/6
+  PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
+}
+
+package() {
+  cd "black-$pkgver"
+  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+  # https://github.com/FFY00/python-install/issues/7
+  sed -i 's/patched_main \[d]/patched_main/' "$pkgdir"/usr/bin/blackd
+
+  # https://github.com/FFY00/python-install/pull/6
+  chmod +x "$pkgdir"/usr/bin/*
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/black-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # vim plugin
+  install -Dm644 plugin/black.vim "$pkgdir/usr/share/vim/vimfiles/plugin/black.vim"
+  install -Dm644 autoload/black.vim "$pkgdir/usr/share/vim/vimfiles/autoload/black.vim"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list