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

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Jun 28 01:02:50 UTC 2022


    Date: Tuesday, June 28, 2022 @ 01:02:49
  Author: polyzen
Revision: 1239797

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  106 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 53 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-28 01:02:21 UTC (rev 1239796)
+++ PKGBUILD	2022-06-28 01:02:49 UTC (rev 1239797)
@@ -1,53 +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.3.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-installer' '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=('35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79')
-b2sums=('f35a285b622ac642a5be8ea51c27e448a5a27b427f577f11d2fd384e2e182d0552d554f672d0f4f73e8272a269352b0154b4baaf2bf3de5d765a6685a3f918cd')
-
-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 installer dist/*.whl
-  PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
-}
-
-package() {
-  cd "black-$pkgver"
-  python -m installer --destdir="$pkgdir" dist/*.whl
-
-  # 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:

Copied: python-black/repos/community-any/PKGBUILD (from rev 1239796, python-black/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-28 01:02:49 UTC (rev 1239797)
@@ -0,0 +1,53 @@
+# 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.6.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-installer' '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=('6c6d39e28aed379aec40da1c65434c77d75e65bb59a1e1c283de545fb4e7c6c9')
+b2sums=('d85a4e74db0b842b00145038aac2815e13ff84207649af038421810edfb0efcae76f938d4a8ec49d81c4b017dfb0c24cc87333e879e609a123aaa86b956aebcf')
+
+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 installer dist/*.whl
+  PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
+}
+
+package() {
+  cd "black-$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # 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