From 3e296082a04ec553043410d974a4de464c27105a Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 12 Aug 2023 12:43:38 +0530 Subject: [PATCH] python-sphinxcontrib-serializinghtml: update to 1.1.7 --- .../PKGBUILD | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/mingw-w64-python-sphinxcontrib-serializinghtml/PKGBUILD b/mingw-w64-python-sphinxcontrib-serializinghtml/PKGBUILD index b68af0962b25e..f390ecefe0a18 100644 --- a/mingw-w64-python-sphinxcontrib-serializinghtml/PKGBUILD +++ b/mingw-w64-python-sphinxcontrib-serializinghtml/PKGBUILD @@ -1,43 +1,42 @@ # Maintainer: Peter Budai +_pyname=sphinxcontrib_serializinghtml _realname=sphinxcontrib-serializinghtml pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=1.1.5 -pkgrel=4 -pkgdesc="Sphinx extension which outputs "serialized" HTML files (json and pickle) (mingw-w64)" +pkgver=1.1.7 +pkgrel=1 +pkgdesc='Sphinx extension which outputs "serialized" HTML files (json and pickle) (mingw-w64)' arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') -license=('BSD') +license=('spdx:BSD-2-Clause') url="https://github.com/sphinx-doc/sphinxcontrib-serializinghtml" -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-flit-core" + "${MINGW_PACKAGE_PREFIX}-python-installer") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("${_realname}-${pkgver}.tar.gz"::"https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") -sha256sums=('aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952') - -prepare() { - cd ${srcdir} - cp -r ${_realname}-${pkgver} python-build-${CARCH} -} +source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +sha256sums=('ca31afee32e1508cff4034e258060ce2c81a3b1c49e77da60fdb61f0e7a73c22') build() { - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_pyname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/py.test || warning "test failed" + cd "${srcdir}/python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${CARCH}" - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py install -O1 --skip-build \ - --root="${pkgdir}" --prefix=${MINGW_PREFIX} + cd "${srcdir}/python-build-${MSYSTEM}" + + 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 + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" }