python-black: update to 22.10.0
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
036d7efbdd
commit
41acdecda4
@@ -3,7 +3,7 @@
|
||||
_realname=black
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=22.8.0
|
||||
pkgver=22.10.0
|
||||
pkgrel=1
|
||||
pkgdesc='Uncompromising Python code formatter (mingw-w64)'
|
||||
arch=('any')
|
||||
@@ -14,14 +14,16 @@ depends=("${MINGW_PACKAGE_PREFIX}-python-click"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-mypy_extensions"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-pathspec"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-platformdirs"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-tomli"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-typing_extensions")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-aiohttp-cors")
|
||||
options=('!emptydirs')
|
||||
# tomli: to be removed with python 3.11
|
||||
"${MINGW_PACKAGE_PREFIX}-python-tomli")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-hatchling"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-hatch-vcs"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-hatch-fancy-pypi-readme")
|
||||
options=('!emptydirs' '!strip')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e')
|
||||
sha256sums=('f513588da599943e0cde4e32cc9879e825d58720d6557062d1098c5ad80080e1')
|
||||
|
||||
prepare() {
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
@@ -30,18 +32,14 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
|
||||
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
|
||||
sed -e '1 { s/^#!.*$// }' -i ${_f}
|
||||
done
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user