From 5323cea0d05d51d103a77f257732a14df921ebf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Mon, 20 Jan 2025 15:41:55 +0100 Subject: [PATCH] Use PEP 517 for building if supported (8/10) --- mingw-w64-mypy/PKGBUILD | 7 ++- mingw-w64-python-flake8/PKGBUILD | 9 +-- mingw-w64-python-jupyter-nbviewer/PKGBUILD | 35 +++++------- mingw-w64-python-kiwisolver/PKGBUILD | 27 ++++----- mingw-w64-python-language-server/PKGBUILD | 40 ++++++-------- mingw-w64-python-ldap3/PKGBUILD | 60 ++++++-------------- mingw-w64-python-lhafile/PKGBUILD | 34 +++++------- mingw-w64-python-log_symbols/PKGBUILD | 27 ++++----- mingw-w64-python-mallard-ducktype/PKGBUILD | 64 ++++++---------------- mingw-w64-python-manhole/PKGBUILD | 39 ++++++------- mingw-w64-python-markdown-include/PKGBUILD | 31 +++++------ mingw-w64-python-markdown-math/PKGBUILD | 40 ++++++-------- mingw-w64-python-mccabe/PKGBUILD | 51 +++++------------ mingw-w64-python-milc/PKGBUILD | 21 ++++--- mingw-w64-python-mingw-ldd/PKGBUILD | 42 ++++++-------- mingw-w64-python-mock/PKGBUILD | 34 +++++------- mingw-w64-python-monotonic/PKGBUILD | 39 +++++-------- mingw-w64-python-mypy_extensions/PKGBUILD | 32 +++++------ mingw-w64-python-natsort/PKGBUILD | 24 ++++---- mingw-w64-python-ndg-httpsclient/PKGBUILD | 28 ++++------ mingw-w64-python-pytest-flake8/PKGBUILD | 2 +- mingw-w64-yelp-tools/PKGBUILD | 4 +- mingw-w64-yelp-xsl/PKGBUILD | 4 +- 23 files changed, 269 insertions(+), 425 deletions(-) diff --git a/mingw-w64-mypy/PKGBUILD b/mingw-w64-mypy/PKGBUILD index a4f7b344e5026..c0b3178a9a8fe 100644 --- a/mingw-w64-mypy/PKGBUILD +++ b/mingw-w64-mypy/PKGBUILD @@ -7,14 +7,15 @@ pkgver=1.14.1 pkgrel=1 pkgdesc="Optional static typing for Python 3 (PEP484) (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="https://www.mypy-lang.org/" +msys2_repository_url="/~https://github.com/python/mypy" msys2_references=( 'pypi: mypy' ) -url="https://www.mypy-lang.org/" -msys2_repository_url="/~https://github.com/python/mypy" license=('spdx:MIT') depends=( + "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-mypy_extensions" "${MINGW_PACKAGE_PREFIX}-python-typing_extensions" ) diff --git a/mingw-w64-python-flake8/PKGBUILD b/mingw-w64-python-flake8/PKGBUILD index bf9845416f4b2..881e23b8329a7 100644 --- a/mingw-w64-python-flake8/PKGBUILD +++ b/mingw-w64-python-flake8/PKGBUILD @@ -7,15 +7,16 @@ pkgver=7.1.1 pkgrel=1 pkgdesc="The modular source code checker: pep8, pyflakes and co (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="https://flake8.pycqa.org/" +msys2_repository_url='/~https://github.com/PyCQA/flake8' msys2_references=( 'archlinux: flake8' 'pypi: flake8' ) -msys2_repository_url='/~https://github.com/PyCQA/flake8' -url="https://flake8.pycqa.org/" license=('spdx:MIT') -depends=("${MINGW_PACKAGE_PREFIX}-python-pyflakes" +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-pyflakes" "${MINGW_PACKAGE_PREFIX}-python-mccabe" "${MINGW_PACKAGE_PREFIX}-python-pycodestyle") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-jupyter-nbviewer/PKGBUILD b/mingw-w64-python-jupyter-nbviewer/PKGBUILD index a79de5b4544b6..a421d84910132 100644 --- a/mingw-w64-python-jupyter-nbviewer/PKGBUILD +++ b/mingw-w64-python-jupyter-nbviewer/PKGBUILD @@ -4,15 +4,16 @@ _realname=nbviewer pkgbase=mingw-w64-python-jupyter-${_realname} pkgname=${MINGW_PACKAGE_PREFIX}-python-jupyter-${_realname} pkgver=1.0.1 -pkgrel=6 +pkgrel=7 pkgdesc='Render Jupyter Notebooks as static web pages (mingw-w64)' arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://jupyter.org' +msys2_repository_url="/~https://github.com/jupyter/nbviewer" msys2_references=( 'pypi: nbviewer' ) -url='https://jupyter.org' -license=('BSD') +license=('spdx:BSD-4-Clause') depends=( ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-elasticsearch @@ -25,36 +26,28 @@ depends=( ${MINGW_PACKAGE_PREFIX}-python-statsd ) makedepends=( + ${MINGW_PACKAGE_PREFIX}-python-build + ${MINGW_PACKAGE_PREFIX}-python-installer ${MINGW_PACKAGE_PREFIX}-python-setuptools ${MINGW_PACKAGE_PREFIX}-python-invoke ${MINGW_PACKAGE_PREFIX}-python-versioneer ) -source=("${_realname}-${pkgver}.tar.gz::/~https://github.com/jupyter/${_realname}/archive/${pkgver}.tar.gz") -sha256sums=('2fe0b0ee8ec5c8e2e173b8f15a22e42ba583fc6d4fa60ddb7aa40e9ee972f268') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('85233e53bc78ff216a99a2676a7e5f9557f0d4973797c36fdb81c9cc48821a73') prepare() { rm -f "${srcdir}"/${_realname}-${pkgver}/versioneer.py | true - - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" } build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - - # Disable check for non-windows modules - sed -i "s|newrelic!=2.80.0.60||g" requirements.txt - sed -i "s|pylibmc||g" requirements.txt - - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${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 + cd "${srcdir}"/python-build-${MSYSTEM} - install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl } diff --git a/mingw-w64-python-kiwisolver/PKGBUILD b/mingw-w64-python-kiwisolver/PKGBUILD index ecbced8ecb53e..5c4844f1316cd 100644 --- a/mingw-w64-python-kiwisolver/PKGBUILD +++ b/mingw-w64-python-kiwisolver/PKGBUILD @@ -4,7 +4,7 @@ _realname=kiwisolver pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=1.4.8 -pkgrel=1 +pkgrel=2 pkgdesc="A fast implementation of the Cassowary constraint solver (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -14,26 +14,26 @@ msys2_references=( ) license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm" "${MINGW_PACKAGE_PREFIX}-python-cppy" "${MINGW_PACKAGE_PREFIX}-cc") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("/~https://github.com/nucleic/kiwi/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('e8848589c1548a292e99eadc712f14d8924e77f390b7de0a4a5359ee8e4a480f') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('23d5f023bdc8c7e54eb65f03ca5d5bb25b601eac4d7f1a042888a1f45237987e') prepare() { - cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "kiwi-${pkgver}" "python-build-${MSYSTEM}" + cd "${srcdir}"/"${_realname}-${pkgver}" # Set version for setuptools_scm export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { @@ -42,10 +42,11 @@ check() { } 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 + 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" } diff --git a/mingw-w64-python-language-server/PKGBUILD b/mingw-w64-python-language-server/PKGBUILD index c631b407e1c61..1145e267d9c12 100644 --- a/mingw-w64-python-language-server/PKGBUILD +++ b/mingw-w64-python-language-server/PKGBUILD @@ -1,17 +1,18 @@ # Maintainer: Konstantin Podsvirov _realname=language-server +_pyname=python-language-server pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.36.2 -pkgrel=5 +pkgrel=6 pkgdesc="An implementation of the Language Server Protocol for Python (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="/~https://github.com/palantir/python-language-server" msys2_references=( 'pypi: python-language-server' ) -url="/~https://github.com/palantir/python-language-server" license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-future" @@ -19,7 +20,9 @@ depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-jsonrpc-server" "${MINGW_PACKAGE_PREFIX}-python-pluggy" "${MINGW_PACKAGE_PREFIX}-python-ujson") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-versioneer") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-coverage" "${MINGW_PACKAGE_PREFIX}-python-pytest" @@ -33,15 +36,16 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-coverage" "${MINGW_PACKAGE_PREFIX}-python-yapf" "${MINGW_PACKAGE_PREFIX}-python-pylint" "${MINGW_PACKAGE_PREFIX}-python-mock") -source=("python-${_realname}-${pkgver}.tar.gz"::"${url}/archive/${pkgver}.tar.gz" +options=(!strip) +source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz" "001-python-language-server-0.36.2-fix-versioneer.patch" "002-python-language-server-0.36.2-fix-setup.patch") -sha256sums=('fb573f780467c1cae0de47065eecbaaf9b457bd5cbe9f5cf8409224e1cd21cf6' +sha256sums=('9984c84a67ee2c5102c8e703215f407fcfa5e62b0ae86c9572d0ada8c4b417b0' 'fb52b245c4f59a50ecb5f689eea9fd9a86a8577a5f91a677f1fcb2b4cc262e90' 'd45d3b1dec94a9033dd13b3754ffe17396e19f1621b26fbc87fe5f84214d0b89') prepare() { - cd "${srcdir}/python-${_realname}-${pkgver}" + cd "${srcdir}/${_pyname}-${pkgver}" patch -p1 -i "${srcdir}/001-python-language-server-0.36.2-fix-versioneer.patch" patch -p1 -i "${srcdir}/002-python-language-server-0.36.2-fix-setup.patch" @@ -50,15 +54,8 @@ prepare() { } build() { - cd "${srcdir}" - rm -rf "python-build-${MSYSTEM}" | true - cp -r "python-${_realname}-${pkgver}" "python-build-${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - - msg "Python build for ${MSYSTEM}" - PYTHONHASHSEED=0 \ - VERSIONEER_OVERRIDE=${pkgver} \ - ${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() { @@ -73,16 +70,11 @@ check() { } package() { - cd "${srcdir}/python-build-${MSYSTEM}" - - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - VERSIONEER_OVERRIDE=${pkgver} \ - ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build + cd "${srcdir}"/python-build-${MSYSTEM} - # remove shebang line - 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" } diff --git a/mingw-w64-python-ldap3/PKGBUILD b/mingw-w64-python-ldap3/PKGBUILD index fb4880d27fc40..a14a513b9eabe 100644 --- a/mingw-w64-python-ldap3/PKGBUILD +++ b/mingw-w64-python-ldap3/PKGBUILD @@ -3,68 +3,40 @@ _realname=ldap3 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=2.9.1 -pkgrel=4 +pkgrel=5 pkgdesc="a strictly RFC 4510 conforming LDAP V3 pure Python client (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='/~https://github.com/cannatag/ldap3' msys2_references=( 'pypi: ldap3' ) -license=('LICENSE') +license=('spdx:LGPL-3.0-or-later') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-pyasn1") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("${_realname}-${pkgver}.tar.gz"::"/~https://github.com/cannatag/ldap3/archive/v${pkgver}.tar.gz") -sha512sums=('bf07ebca9a53a8c225bc3106d3bd45eb26557c6e5a3d6d45a7f8c149d938ad43825eed0d406a57b93e2e675ed7aa262828f022ab82eb683f0e3029e3ad823106') - -apply_patch_with_msg() { - for _patch in "$@" - do - msg2 "Applying $_patch" - patch -Nbp1 -i "${srcdir}/$_patch" - done -} - -del_file_exists() { - for _fname in "$@" - do - if [ -f $_fname ]; then - rm -rf $_fname - fi - done -} - -prepare() { - cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" - - # Set version for setuptools_scm - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('f3e7fc4718e3f09dda568b57100095e0ce58633bcabbed8667ce3f8fbaa4229f') build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { - msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py check + ${MINGW_PREFIX}/bin/python -m pytest } 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 + 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.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/COPYING" } diff --git a/mingw-w64-python-lhafile/PKGBUILD b/mingw-w64-python-lhafile/PKGBUILD index 5a9a3e9c34974..1800ec6b73596 100644 --- a/mingw-w64-python-lhafile/PKGBUILD +++ b/mingw-w64-python-lhafile/PKGBUILD @@ -3,41 +3,35 @@ _realname=lhafile pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-lhafile") -provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=0.3.0 -pkgrel=4 +pkgrel=5 pkgdesc="LHA module for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') -license=('BSD') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="/~https://github.com/FrodeSolheim/python-lhafile" msys2_references=( 'pypi: lhafile' ) +license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-cc" - "${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(${_realname}-${pkgver}.tar.gz::/~https://github.com/FrodeSolheim/python-lhafile/archive/v${pkgver}.tar.gz) -sha256sums=('5565641820813c76c74f2199f19f6ee0e3ae1e1c14de1a3a4ea3602f9094cd29') - -prepare() { - rm -rf "python-build-${MSYSTEM}" | true - cp -r "python-${_realname}-${pkgver}" "python-build-${MSYSTEM}" -} +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-cc") +source=(https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz) +sha256sums=('c85f9152197a81103a5e8b5948bca36156c166d3aea3a46ff43829be0b996eae') build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${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/python3 setup.py install --prefix=${MINGW_PREFIX} \ - --root="${pkgdir}" --optimize=1 + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl install -m755 -d "${pkgdir}${MINGW_PREFIX}/share/licenses/python-lhafile" install -m644 COPYING.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-lhafile/" diff --git a/mingw-w64-python-log_symbols/PKGBUILD b/mingw-w64-python-log_symbols/PKGBUILD index f3c6eacca3210..5b4de9d0e77e3 100644 --- a/mingw-w64-python-log_symbols/PKGBUILD +++ b/mingw-w64-python-log_symbols/PKGBUILD @@ -4,39 +4,34 @@ _realname=log_symbols pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.0.14 -pkgrel=4 +pkgrel=5 pkgdesc="Colored symbols for various log levels for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='/~https://github.com/ManrajGrover/py-log_symbols' msys2_references=( 'pypi: log-symbols' ) -url='/~https://github.com/ManrajGrover/py-log_symbols' -license=('MIT') +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-colorama") -makedepends=("${MINGW_PACKAGE_PREFIX}-python" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('cf0bbc6fe1a8e53f0d174a716bc625c4f87043cc21eb55dd8a740cfe22680556') -prepare() { - cd "${srcdir}/${_realname}-${pkgver}" -} - build() { - cd "${srcdir}" cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "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}" + 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 + 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" } diff --git a/mingw-w64-python-mallard-ducktype/PKGBUILD b/mingw-w64-python-mallard-ducktype/PKGBUILD index 28855745f3d00..c2499dfc047cb 100644 --- a/mingw-w64-python-mallard-ducktype/PKGBUILD +++ b/mingw-w64-python-mallard-ducktype/PKGBUILD @@ -3,70 +3,40 @@ _realname=mallard-ducktype 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.0.2 -pkgrel=6 +pkgrel=7 pkgdesc="Parser for the lightweight Ducktype syntax for Mallard (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='http://projectmallard.org/' msys2_references=( 'archlinux: mallard-ducktype' 'pypi: mallard-ducktype' ) -url='http://projectmallard.org/' -license=('MIT') +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("${_realname}-$pkgver.tar.gz"::"/~https://github.com/projectmallard/mallard-ducktype/archive/${pkgver}.tar.gz") -sha256sums=('73ac416376dd65c737594ab4b1037b0823390239f33672f1ee1e30725dcef4e9') - -# Helper macros to help make tasks easier # -apply_patch_with_msg() { - for _patch in "$@" - do - msg2 "Applying $_patch" - patch -Nbp1 -i "${srcdir}/$_patch" - done -} - -del_file_exists() { - for _fname in "$@" - do - if [ -f $_fname ]; then - rm -rf $_fname - fi - done -} -# =========================================== # - -prepare() { - cd "${srcdir}" - rm -rf "python-build-${MSYSTEM}" | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" - - # Set version for setuptools_scm - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('8e15319974460ed267729488b85ec00f7e97d89289721169483a2aacb144bdf7') build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { - msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py test + ${MINGW_PREFIX}/bin/python -m pytest } 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 + 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" diff --git a/mingw-w64-python-manhole/PKGBUILD b/mingw-w64-python-manhole/PKGBUILD index a946bbfa7347a..0e4199633c8ee 100644 --- a/mingw-w64-python-manhole/PKGBUILD +++ b/mingw-w64-python-manhole/PKGBUILD @@ -4,46 +4,39 @@ _realname=manhole pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=1.8.1 -pkgrel=1 +pkgrel=2 pkgdesc="Debugging manhole for python applications (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='/~https://github.com/ionelmc/python-manhole' msys2_references=( 'pypi: manhole' ) -license=('BSD') +license=('spdx:BSD-2-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest" "${MINGW_PACKAGE_PREFIX}-python-requests" #"${MINGW_PACKAGE_PREFIX}-python-process-tests" #"${MINGW_PACKAGE_PREFIX}-python-virtualenv" ) -source=("${_realname}-${pkgver}.tar.gz::/~https://github.com/ionelmc/python-manhole/archive/v$pkgver.tar.gz") -sha512sums=('f37d4f401e862fe49b6c59025f62fac15a2f1c0ece4c8418c27ce1cef62723aa47506210ef78ddc7c3219ab2f31019d5b1235e496861b9f7b094a3390a3128bb') - -prepare() { - rm -rf python-build-${MSYSTEM} || true - cp -r "python-${_realname}-${pkgver}" "python-build-${MSYSTEM}" -} +options=(!strip) +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('3668fdaf83b33c943db4e750e0c554e31c20f63338496895dd4d6410680d9c4b') build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${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 + cd "${srcdir}"/python-build-${MSYSTEM} - install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl - for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do - # Remove shebang line - sed -e '1 { s/^#!.*$// }' -i "${_f}" - done + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" } diff --git a/mingw-w64-python-markdown-include/PKGBUILD b/mingw-w64-python-markdown-include/PKGBUILD index 50c66e9065d7e..4694384e0755d 100644 --- a/mingw-w64-python-markdown-include/PKGBUILD +++ b/mingw-w64-python-markdown-include/PKGBUILD @@ -5,40 +5,35 @@ _realname=${_pyname} pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.8.1 -pkgrel=4 +pkgrel=5 pkgdesc="Provides syntax for Python-Markdown which allows for the inclusion of the contents of other Markdown documents (mingw-w64)" -url="/~https://github.com/cmacmackin/markdown-include" -license=('spdx:GPL-3.0-or-later') arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="/~https://github.com/cmacmackin/markdown-include" msys2_references=( 'pypi: markdown-include' ) +license=('spdx:GPL-3.0-or-later') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-markdown") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm") source=("https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('1d0623e0fc2757c38d35df53752768356162284259d259c486b4ab6285cdbbe3') -prepare() { - cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_pyname}-${pkgver}" "python-build-${MSYSTEM}" -} - build() { - cd "${srcdir}/python-build-${MSYSTEM}" - - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + 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 + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" } diff --git a/mingw-w64-python-markdown-math/PKGBUILD b/mingw-w64-python-markdown-math/PKGBUILD index c253053c8b531..0e8d0b493d960 100644 --- a/mingw-w64-python-markdown-math/PKGBUILD +++ b/mingw-w64-python-markdown-math/PKGBUILD @@ -1,51 +1,43 @@ # Maintainer: J. Peter Mugaas _realname=markdown-math +_pyname=python-markdown-math 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=0.8 -pkgrel=5 +pkgrel=6 pkgdesc="Math extension for Python-Markdown (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='/~https://github.com/mitya57/python-markdown-math' msys2_references=( 'pypi: python-markdown-math' ) -url='/~https://github.com/mitya57/python-markdown-math' -license=('BSD') +license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-markdown") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://files.pythonhosted.org/packages/source/p/python-${_realname}/python-${_realname}-${pkgver}.tar.gz") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('8564212af679fc18d53f38681f16080fcd3d186073f23825c7ce86fadd3e3635') -prepare() { - rm -rf "python-build-${MSYSTEM}" | true - cp -r "python-${_realname}-${pkgver}" "python-build-${MSYSTEM}" - - # Set version for setuptools_scm - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} - build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${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-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py test + ${MINGW_PREFIX}/bin/python -m pytest } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + 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 + 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" } diff --git a/mingw-w64-python-mccabe/PKGBUILD b/mingw-w64-python-mccabe/PKGBUILD index bedeaca2c1067..0cffc42455edc 100644 --- a/mingw-w64-python-mccabe/PKGBUILD +++ b/mingw-w64-python-mccabe/PKGBUILD @@ -4,62 +4,39 @@ _realname=mccabe pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.7.0 -pkgrel=4 +pkgrel=5 pkgdesc="McCabe complexity checker for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='/~https://github.com/flintwork/mccabe' msys2_references=( 'pypi: mccabe' ) license=('custom:Expat') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("${_realname}-${pkgver}.tar.gz::/~https://github.com/flintwork/mccabe/archive/${pkgver}.tar.gz") -sha256sums=('f4f7fa5ed8b7f77601fea3e748d6238928323a291fcde0fddbbe6cb2d0cb2da2') - -# Helper macros to help make tasks easier # -apply_patch_with_msg() { - for _patch in "$@" - do - msg2 "Applying $_patch" - patch -Nbp1 -i "${srcdir}/$_patch" - done -} - -del_file_exists() { - for _fname in "$@" - do - if [ -f $_fname ]; then - rm -rf $_fname - fi - done -} -# =========================================== # - -prepare() { - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" -} +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325') build() { - msg "Python build for ${MSYSTEM}" - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { - msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m pytest } 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 + 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}/COPYING" } diff --git a/mingw-w64-python-milc/PKGBUILD b/mingw-w64-python-milc/PKGBUILD index 4aae83b19d742..a0dc656f1f7a8 100644 --- a/mingw-w64-python-milc/PKGBUILD +++ b/mingw-w64-python-milc/PKGBUILD @@ -4,21 +4,22 @@ _realname=milc pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=1.9.0 -pkgrel=1 +pkgrel=2 pkgdesc="Opinionated Batteries-Included Python 3 CLI Framework (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://milc.clueboard.co' msys2_references=( 'pypi: milc' ) -url='https://milc.clueboard.co' -license=('MIT') +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-argcomplete" "${MINGW_PACKAGE_PREFIX}-python-colorama" "${MINGW_PACKAGE_PREFIX}-python-halo" "${MINGW_PACKAGE_PREFIX}-python-platformdirs") -makedepends=("${MINGW_PACKAGE_PREFIX}-python" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=( "https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz" @@ -33,18 +34,16 @@ prepare() { } build() { - cd "${srcdir}" cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "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}" + 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 + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl # Undo path translation sed -e '1 { s/^#!.*python.*$/#!\/usr\/bin\/env python3/ }' -i "${pkgdir}/${MINGW_PREFIX}/bin/milc-color" diff --git a/mingw-w64-python-mingw-ldd/PKGBUILD b/mingw-w64-python-mingw-ldd/PKGBUILD index c3a4ce6f14e04..8346a908aafdd 100644 --- a/mingw-w64-python-mingw-ldd/PKGBUILD +++ b/mingw-w64-python-mingw-ldd/PKGBUILD @@ -4,7 +4,7 @@ _realname=mingw-ldd pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.2.1 -pkgrel=4 +pkgrel=5 pkgdesc="Lists dependencies of a PE (exe/dll) file (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -13,39 +13,31 @@ msys2_references=( 'pypi: mingw-ldd' ) license=('spdx:MIT') -depends=("${MINGW_PACKAGE_PREFIX}-python-pefile") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("${url}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('60d34506d2f345e011b88de172ef312f37ca3ba87f3764f511061b69878ab204') - -prepare() { - rm -rf python-build-${MSYSTEM} || true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" - - # Set version for setuptools_scm - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-pefile") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +options=(!strip) +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz") +sha256sums=('3a0effe3ea246f5316b2da277e42c47877b1d9a0d6fef3a17652e432b2319fdd') build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname/-/_}-${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-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py check + ${MINGW_PREFIX}/bin/python -m pytest } 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 + cd "${srcdir}"/python-build-${MSYSTEM} - install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl - # remove shebang line - for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do - sed -e '1 { s/^#!.*$// }' -i ${_f} - done + install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" } diff --git a/mingw-w64-python-mock/PKGBUILD b/mingw-w64-python-mock/PKGBUILD index c60a1dac9a89e..fdc176551f236 100644 --- a/mingw-w64-python-mock/PKGBUILD +++ b/mingw-w64-python-mock/PKGBUILD @@ -4,37 +4,33 @@ _realname=mock pkgbase=mingw-w64-python-${_realname} pkgname=( "${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=5.1.0 -pkgrel=2 +pkgrel=3 pkgdesc='Rolling backport of unittest.mock for all Pythons (mingw-w64)' arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='/~https://github.com/testing-cabal/mock' msys2_references=( 'pypi: mock' ) -url='/~https://github.com/testing-cabal/mock' -license=('BSD') -depends=("${MINGW_PACKAGE_PREFIX}-python" - "${MINGW_PACKAGE_PREFIX}-python-six" - "${MINGW_PACKAGE_PREFIX}-python-pbr") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-python-funcsigs") +license=('spdx:BSD-2-Clause') +depends=("${MINGW_PACKAGE_PREFIX}-python") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.python.org/packages/source/m/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('5e96aad5ccda4718e0a229ed94b2024df75cc2d55575ba5762d31f5767b8767d') -noextract=(${_realname}-${pkgver}.tar.gz) -prepare() { - [[ -d "${srcdir}"/${_realname}-${pkgver} ]] && rm -rf "${srcdir}"/${_realname}-${pkgver} - tar -xzf "${srcdir}"/${_realname}-${pkgver}.tar.gz -C "${srcdir}" || true - - cd "${srcdir}" - cp -r ${_realname}-${pkgver} python-build-${MSYSTEM} +build() { + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${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 + + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" } diff --git a/mingw-w64-python-monotonic/PKGBUILD b/mingw-w64-python-monotonic/PKGBUILD index 3fc35155c2e94..dde0163b7705b 100644 --- a/mingw-w64-python-monotonic/PKGBUILD +++ b/mingw-w64-python-monotonic/PKGBUILD @@ -3,48 +3,39 @@ _realname=monotonic 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.6 -pkgrel=4 +pkgrel=5 pkgdesc="An implementation of time.monotonic() for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='https://pypi.python.org/pypi/monotonic' msys2_references=( 'pypi: monotonic' ) -license=('Apache') +license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("${_realname}-${pkgver}.tar.gz"::"/~https://github.com/atdt/monotonic/archive/${pkgver}.tar.gz") -sha256sums=('9609c249aed584fd714811014870650d08d6f6414402b5a190663c49bf83b221') - -prepare() { - rm -rf "python-build-${MSYSTEM}" | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" - - # Set version for setuptools_scm - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} -} +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7') build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${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-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py check + ${MINGW_PREFIX}/bin/python -m pytest } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + 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 + 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" } diff --git a/mingw-w64-python-mypy_extensions/PKGBUILD b/mingw-w64-python-mypy_extensions/PKGBUILD index c8205cb98028c..f813f90576203 100644 --- a/mingw-w64-python-mypy_extensions/PKGBUILD +++ b/mingw-w64-python-mypy_extensions/PKGBUILD @@ -4,35 +4,33 @@ _realname=mypy_extensions pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=1.0.0 -pkgrel=3 +pkgrel=4 pkgdesc='Experimental type system extensions for programs checked with the mypy typechecker (mingw-w64)' arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="http://www.mypy-lang.org/" msys2_references=( 'pypi: mypy-extensions' ) -url="http://www.mypy-lang.org/" -license=('MIT') +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.org/packages/source/m/mypy_extensions/mypy_extensions-$pkgver.tar.gz") sha256sums=('75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782') -prepare() { - cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" -} - build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${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 + 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" } diff --git a/mingw-w64-python-natsort/PKGBUILD b/mingw-w64-python-natsort/PKGBUILD index fbcb1defd1a23..e750c54606c7b 100644 --- a/mingw-w64-python-natsort/PKGBUILD +++ b/mingw-w64-python-natsort/PKGBUILD @@ -4,7 +4,7 @@ _realname=natsort pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=8.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Simple yet flexible natural sorting in Python (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -14,29 +14,25 @@ msys2_references=( ) license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") optdepends=("${MINGW_PACKAGE_PREFIX}-python-icu: sort in locale dependant manner") +options=(!strip) source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('45312c4a0e5507593da193dedd04abb1469253b601ecaf63445ad80f0a1ea581') build() { - cd "${srcdir}" cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "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}" + 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 + 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" - - for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do - # Remove shebang line - sed -e '1 { s/^#!.*$// }' -i "${_f}" - done } diff --git a/mingw-w64-python-ndg-httpsclient/PKGBUILD b/mingw-w64-python-ndg-httpsclient/PKGBUILD index 8d8e631b54ce2..cd04b3ab035dc 100644 --- a/mingw-w64-python-ndg-httpsclient/PKGBUILD +++ b/mingw-w64-python-ndg-httpsclient/PKGBUILD @@ -5,7 +5,7 @@ _realname=ndg-httpsclient pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.5.1 -pkgrel=7 +pkgrel=8 pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -14,29 +14,25 @@ msys2_references=( 'pypi: ndg-httpsclient' ) license=('spdx:BSD-3-Clause') -depends=("${MINGW_PACKAGE_PREFIX}-python-pyopenssl" +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-pyopenssl" "${MINGW_PACKAGE_PREFIX}-python-pyasn1") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") +options=(!strip) source=("https://pypi.org/packages/source/n/${_realname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('d72faed0376ab039736c2ba12e30695e2788c4aa569c9c3e3d72131de2592210') -prepare() { - cd "${srcdir}" - cp -r ${_pyname}-${pkgver} python-build-${MSYSTEM} -} - build() { - cd "${srcdir}/python-build-${MSYSTEM}" - ${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 } 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 - # fix python command in files - for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*.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 } diff --git a/mingw-w64-python-pytest-flake8/PKGBUILD b/mingw-w64-python-pytest-flake8/PKGBUILD index 51bfa8160e4cd..bcec3c1eb3f05 100644 --- a/mingw-w64-python-pytest-flake8/PKGBUILD +++ b/mingw-w64-python-pytest-flake8/PKGBUILD @@ -7,7 +7,7 @@ pkgver=1.1.1 pkgrel=4 pkgdesc='pytest plugin to check FLAKE8 requirements (mingw-w64)' arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="/~https://github.com/tholo/pytest-flake8" msys2_references=( 'pypi: pytest-flake8' diff --git a/mingw-w64-yelp-tools/PKGBUILD b/mingw-w64-yelp-tools/PKGBUILD index 2fb2a22302031..cf3e26d29a091 100644 --- a/mingw-w64-yelp-tools/PKGBUILD +++ b/mingw-w64-yelp-tools/PKGBUILD @@ -7,9 +7,9 @@ pkgver=42.1 pkgrel=1 pkgdesc="Tools for creating Yelp documentation (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') -license=('GPL') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://www.gnome.org" +license=('GPL') depends=("intltool" "${MINGW_PACKAGE_PREFIX}-docbook-xsl" "${MINGW_PACKAGE_PREFIX}-libxml2" diff --git a/mingw-w64-yelp-xsl/PKGBUILD b/mingw-w64-yelp-xsl/PKGBUILD index 78256605a6f4c..1efde3c50e692 100644 --- a/mingw-w64-yelp-xsl/PKGBUILD +++ b/mingw-w64-yelp-xsl/PKGBUILD @@ -7,9 +7,9 @@ pkgver=42.1 pkgrel=1 pkgdesc="Stylesheets for Yelp (mingw-w64)" arch=('any') -mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') -license=('GPL') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://www.gnome.org" +license=('GPL') makedepends=("intltool" "${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-itstool"