[arch-commits] Commit in python-black/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at archlinux.org
Mon Dec 14 05:06:38 UTC 2020
Date: Monday, December 14, 2020 @ 05:06:38
Author: polyzen
Revision: 774828
archrelease: copy trunk to community-any
Added:
python-black/repos/community-any/PKGBUILD
(from rev 774827, python-black/trunk/PKGBUILD)
Deleted:
python-black/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 42 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-14 05:06:03 UTC (rev 774827)
+++ PKGBUILD 2020-12-14 05:06:38 UTC (rev 774828)
@@ -1,41 +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=20.8b1
-pkgrel=4
-pkgdesc='Uncompromising Python code formatter'
-arch=('any')
-url=https://github.com/psf/black
-license=('MIT')
-depends=('python' 'python-appdirs' 'python-click' 'python-mypy_extensions'
- 'python-pathspec' 'python-regex' 'python-setuptools' 'python-toml'
- 'python-typed-ast' 'python-typing_extensions')
-checkdepends=('python-aiohttp' 'python-aiohttp-cors')
-optdepends=('python-aiohttp: for the blackd HTTP server'
- 'python-aiohttp-cors: for the blackd HTTP server'
- 'python-colorama: for colored diffs')
-source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
-sha256sums=('1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea')
-
-build() {
- cd "black-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "black-$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" python -m unittest tests/test_black.py
-}
-
-package() {
- cd "black-$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:
Copied: python-black/repos/community-any/PKGBUILD (from rev 774827, python-black/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-14 05:06:38 UTC (rev 774828)
@@ -0,0 +1,42 @@
+# 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=20.8b1
+pkgrel=5
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/psf/black
+license=('MIT')
+depends=('python' 'python-appdirs' 'python-click' 'python-mypy_extensions'
+ 'python-pathspec' 'python-regex' 'python-setuptools' 'python-toml'
+ 'python-typed-ast' 'python-typing_extensions')
+checkdepends=('python-aiohttp' 'python-aiohttp-cors')
+optdepends=('python-aiohttp: for the blackd HTTP server'
+ 'python-aiohttp-cors: for the blackd HTTP server'
+ 'python-colorama: for colored diffs')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha256sums=('1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea')
+
+build() {
+ cd "black-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "black-$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" python -m unittest tests/test_black.py
+}
+
+package() {
+ cd "black-$pkgver"
+ export PYTHONHASHSEED=0
+ 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:
More information about the arch-commits
mailing list