[arch-commits] Commit in python-black/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Thu Aug 27 01:59:29 UTC 2020


    Date: Thursday, August 27, 2020 @ 01:59:26
  Author: polyzen
Revision: 689220

upgpkg: python-black 20.8b1-1

Modified:
  python-black/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-27 00:39:23 UTC (rev 689219)
+++ PKGBUILD	2020-08-27 01:59:26 UTC (rev 689220)
@@ -3,20 +3,21 @@
 # Contributor: James Zhu <jameszhu at berkeley.edu>
 
 pkgname=python-black
-pkgver=19.10b0
+pkgver=20.8b1
 pkgrel=1
 pkgdesc='Uncompromising Python code formatter'
 arch=('any')
 url=https://github.com/psf/black
 license=('MIT')
-depends=('python' 'python-appdirs' 'python-attrs' 'python-click'
+depends=('python' 'python-appdirs' 'python-click' 'python-mypy_extensions'
          'python-pathspec' 'python-regex' 'python-setuptools' 'python-toml'
-         'python-typed-ast')
+         'python-typed-ast' 'python-typing_extensions')
 checkdepends=('python-aiohttp' 'python-aiohttp-cors')
-optdepends=('python-aiohttp: for the blackd HTTP server'
+optdepends=('colorama: for colored diffs'
+            'python-aiohttp: for the blackd HTTP server'
             'python-aiohttp-cors: for the blackd HTTP server')
 source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
-sha256sums=('c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539')
+sha256sums=('1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea')
 
 build() {
   cd "black-$pkgver"
@@ -25,7 +26,10 @@
 
 check() {
   cd "black-$pkgver"
-  python -m unittest tests/test_black.py
+  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" python -m unittest tests/test_black.py
 }
 
 package() {



More information about the arch-commits mailing list