black: update to 22.6.0.

Adopt.
This commit is contained in:
icp 2022-06-29 17:48:57 +05:30 committed by Duncan Overbruck
parent fa773fef06
commit 660343d385
1 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'black' # Template file for 'black'
pkgname=black pkgname=black
version=22.3.0 version=22.6.0
revision=1 revision=1
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools python3-setuptools_scm" hostmakedepends="python3-setuptools python3-setuptools_scm"
@ -8,21 +8,22 @@ depends="python3-click python3-platformdirs python3-tomli python3-pathspec pytho
checkdepends="${depends} python3-pytest-xdist python3-aiohttp python3-colorama python3-uvloop checkdepends="${depends} python3-pytest-xdist python3-aiohttp python3-colorama python3-uvloop
python3-ipython python3-tokenize-rt" python3-ipython python3-tokenize-rt"
short_desc="Uncompromising Python code formatter" short_desc="Uncompromising Python code formatter"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="icp <pangolin@vivaldi.net>"
license="MIT" license="MIT"
homepage="https://github.com/psf/black" homepage="https://github.com/psf/black"
changelog="https://raw.githubusercontent.com/psf/black/main/CHANGES.md" changelog="https://raw.githubusercontent.com/psf/black/main/CHANGES.md"
distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz" distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
checksum=35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79 checksum=6c6d39e28aed379aec40da1c65434c77d75e65bb59a1e1c283de545fb4e7c6c9
do_check() { do_check() {
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional jupyter \ PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional jupyter -m jupyter
-m jupyter --deselect=tests/test_ipynb.py::test_set_input
pyver=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') pyver=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
mv ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython ${XBPS_MASTERDIR}/tmp/IPython.bak mv ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython ${XBPS_MASTERDIR}/tmp/IPython.bak
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional no_jupyter PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional no_jupyter
mv ${XBPS_MASTERDIR}/tmp/IPython.bak ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython mv ${XBPS_MASTERDIR}/tmp/IPython.bak ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m black --check src tests setup.py
} }
post_install() { post_install() {