From 215ce603a919f5e46d7ccf6632c8daec5fad5175 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: Fri, 8 Mar 2024 18:08:30 +0100 Subject: [PATCH] revert dropping 32-bit envs from some python packages --- mingw-w64-capstone/PKGBUILD | 6 ++--- mingw-w64-keystone/PKGBUILD | 27 ++++++++++--------- mingw-w64-miniupnpc/PKGBUILD | 3 ++- mingw-w64-python-aiosignal/PKGBUILD | 4 +-- mingw-w64-python-aiosmtpd/PKGBUILD | 6 +++-- mingw-w64-python-apipkg/PKGBUILD | 5 ++-- .../PKGBUILD | 6 ++--- mingw-w64-python-argon2_cffi/PKGBUILD | 2 +- mingw-w64-python-arrow/PKGBUILD | 16 ++++++----- mingw-w64-python-asgiref/PKGBUILD | 4 +-- mingw-w64-python-asn1crypto/PKGBUILD | 13 ++++----- mingw-w64-python-astor/PKGBUILD | 20 +++++++------- mingw-w64-python-asttokens/PKGBUILD | 4 +-- mingw-w64-python-astunparse/PKGBUILD | 20 +++++++------- mingw-w64-python-async-lru/PKGBUILD | 2 +- mingw-w64-python-async-timeout/PKGBUILD | 20 +++++++------- mingw-w64-python-async_generator/PKGBUILD | 19 ++++++------- mingw-w64-python-asynctest/PKGBUILD | 20 +++++++------- mingw-w64-python-atomicwrites/PKGBUILD | 22 ++++++++------- mingw-w64-python-atpublic/PKGBUILD | 4 +-- mingw-w64-python-attrdict3/PKGBUILD | 6 ++--- mingw-w64-python-audioread/PKGBUILD | 4 +-- mingw-w64-python-automat/PKGBUILD | 7 ++--- mingw-w64-python-autopep8/PKGBUILD | 7 ++--- mingw-w64-python-backcall/PKGBUILD | 18 ++++++------- mingw-w64-python-bcrypt/PKGBUILD | 2 +- mingw-w64-python-beaker/PKGBUILD | 17 ++++++------ mingw-w64-python-beniget/PKGBUILD | 6 ++--- mingw-w64-python-binaryornot/PKGBUILD | 4 +-- mingw-w64-python-binwalk/PKGBUILD | 8 +++--- mingw-w64-python-bleach/PKGBUILD | 4 +-- mingw-w64-python-blinker/PKGBUILD | 6 ++--- mingw-w64-python-boolean.py/PKGBUILD | 2 +- mingw-w64-python-boto/PKGBUILD | 6 ++--- mingw-w64-python-bottle/PKGBUILD | 12 ++++----- mingw-w64-python-cached-property/PKGBUILD | 6 ++--- mingw-w64-python-cachy/PKGBUILD | 9 ++++--- mingw-w64-python-cerberus/PKGBUILD | 2 +- mingw-w64-python-cfgv/PKGBUILD | 4 +-- mingw-w64-python-characteristic/PKGBUILD | 14 +++++----- mingw-w64-python-codespell/PKGBUILD | 6 ++--- mingw-w64-python-colour/PKGBUILD | 16 +++++------ mingw-w64-python-commonmark/PKGBUILD | 20 +++++++------- mingw-w64-python-comtypes/PKGBUILD | 4 +-- mingw-w64-python-cppy/PKGBUILD | 8 +++--- mingw-w64-python-crashtest/PKGBUILD | 9 ++++--- mingw-w64-python-crcmod/PKGBUILD | 16 +++++------ mingw-w64-python-cssselect/PKGBUILD | 17 ++++++------ mingw-w64-python-csv23/PKGBUILD | 9 ++++--- mingw-w64-python-cx-logging/PKGBUILD | 16 +++++------ mingw-w64-python-cycler/PKGBUILD | 8 +++--- mingw-w64-python-d2to1/PKGBUILD | 16 +++++------ mingw-w64-python-debtcollector/PKGBUILD | 13 ++++++--- mingw-w64-python-decorator/PKGBUILD | 13 ++++++--- mingw-w64-python-defusexml/PKGBUILD | 16 ++++++----- mingw-w64-python-deprecated/PKGBUILD | 17 ++++++------ mingw-w64-python-deprecation/PKGBUILD | 4 +-- mingw-w64-python-diff-match-patch/PKGBUILD | 4 +-- mingw-w64-python-distutils-extra/PKGBUILD | 16 +++++------ mingw-w64-python-docx/PKGBUILD | 6 ++--- mingw-w64-python-dotty-dict/PKGBUILD | 9 ++++--- mingw-w64-python-ecdsa/PKGBUILD | 6 ++--- mingw-w64-python-editor/PKGBUILD | 20 ++++++++------ mingw-w64-python-entrypoints/PKGBUILD | 8 +++--- mingw-w64-python-et-xmlfile/PKGBUILD | 14 +++++----- mingw-w64-python-executing/PKGBUILD | 6 ++--- mingw-w64-python-expandvars/PKGBUILD | 2 +- mingw-w64-python-fasteners/PKGBUILD | 10 ++++--- mingw-w64-python-fastjsonschema/PKGBUILD | 2 +- mingw-w64-python-feedgenerator/PKGBUILD | 9 ++++--- mingw-w64-python-findpython/PKGBUILD | 2 +- mingw-w64-python-fire/PKGBUILD | 7 ++--- mingw-w64-python-flexmock/PKGBUILD | 21 ++++++++------- mingw-w64-python-freetype-py/PKGBUILD | 4 +-- mingw-w64-python-frozenlist/PKGBUILD | 8 +++--- mingw-w64-python-func-timeout/PKGBUILD | 19 ++++++------- mingw-w64-python-fypp/PKGBUILD | 6 ++--- mingw-w64-python-google-apitools/PKGBUILD | 7 ++--- mingw-w64-python-gssapi/PKGBUILD | 9 ++++--- mingw-w64-python-influxdb/PKGBUILD | 8 +++--- mingw-w64-python-iocapture/PKGBUILD | 20 ++++++++------ mingw-w64-python-jinja2-time/PKGBUILD | 20 +++++++------- mingw-w64-python-jmespath/PKGBUILD | 21 +++++++-------- mingw-w64-python-jupyter-packaging/PKGBUILD | 7 +++-- mingw-w64-python-kiwisolver/PKGBUILD | 4 +-- mingw-w64-python-license-expression/PKGBUILD | 4 +-- mingw-w64-python-milc/PKGBUILD | 6 ++--- mingw-w64-python-passlib/PKGBUILD | 6 ++--- mingw-w64-python-pdm-pep517/PKGBUILD | 6 ++--- mingw-w64-python-py/PKGBUILD | 21 ++++++++------- mingw-w64-python-pytest-forked/PKGBUILD | 2 +- mingw-w64-python-pytest-localserver/PKGBUILD | 4 +-- mingw-w64-python-rlpycairo/PKGBUILD | 4 +-- mingw-w64-python-stack-data/PKGBUILD | 6 ++--- mingw-w64-python-three-merge/PKGBUILD | 17 ++++++------ 95 files changed, 500 insertions(+), 426 deletions(-) diff --git a/mingw-w64-capstone/PKGBUILD b/mingw-w64-capstone/PKGBUILD index 9419e5676b165..eb06f158067f4 100644 --- a/mingw-w64-capstone/PKGBUILD +++ b/mingw-w64-capstone/PKGBUILD @@ -7,9 +7,9 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-capstone" pkgver=5.0.1 pkgrel=1 pkgdesc='Lightweight multi-platform, multi-architecture disassembly framework (mingw-w64)' -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='https://www.capstone-engine.org/index.html' +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs") makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" @@ -19,7 +19,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-wheel") -source=("https://github.com/capstone-engine/capstone/archive/${pkgver}/${_realname}-${pkgver}.tar.gz" +source=("${_realname}-${pkgver}.tar.gz::https://github.com/capstone-engine/capstone/archive/refs/tags/${pkgver}.tar.gz" "mingw_python.patch") sha256sums=('2b9c66915923fdc42e0e32e2a9d7d83d3534a45bb235e163a70047951890c01a' '1b3fad23218c15ea232c0698b45095325d17401c9902268395b452ba3733ae0d') diff --git a/mingw-w64-keystone/PKGBUILD b/mingw-w64-keystone/PKGBUILD index 7531f0f792434..9325601f3858f 100644 --- a/mingw-w64-keystone/PKGBUILD +++ b/mingw-w64-keystone/PKGBUILD @@ -8,15 +8,15 @@ pkgver=0.9.2 pkgrel=4 pkgdesc="Lightweight multi-platform, multi-architecture assembler framework (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://www.keystone-engine.org/" -license=('spdx:GPL-2.0-only' 'custom') -makedepends=("${MINGW_PACKAGE_PREFIX}-cc" - "${MINGW_PACKAGE_PREFIX}-cmake" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-ninja" + "${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/keystone-engine/keystone/archive/${pkgver}/${_realname}-${pkgver}.tar.gz" +license=('spdx:GPL-2.0-only' 'custom') +url="https://www.keystone-engine.org/" +source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/keystone-engine/keystone/archive/${pkgver}.tar.gz" "0001-cmake-install-dir.patch" "0002-kstool-win-msys2.patch" "0003-python-load-dll-from-prefix.patch") @@ -33,10 +33,11 @@ prepare() { } build() { + [[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}" mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ - ${MINGW_PREFIX}/bin/cmake \ + cmake \ -G Ninja \ -DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ -DCMAKE_BUILD_TYPE=Release \ @@ -45,17 +46,17 @@ build() { -DBUILD_LIBS_ONLY=OFF \ "../${_realname}-${pkgver}" - ${MINGW_PREFIX}/bin/cmake --build . + cmake --build . cd "${srcdir}/${_realname}-${pkgver}/bindings/python" "${MINGW_PREFIX}"/bin/python setup.py build } package_keystone() { - depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs") +depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs") cd "${srcdir}/build-${MSYSTEM}" - DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . + DESTDIR="${pkgdir}" cmake --install . install -Dm0644 \ "${srcdir}/${_realname}-${pkgver}/COPYING" \ "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" @@ -65,9 +66,9 @@ package_keystone() { } package_python-keystone() { - license=('spdx:BSD-3-Clause') - depends=("${MINGW_PACKAGE_PREFIX}-keystone" - "${MINGW_PACKAGE_PREFIX}-python") +license=('spdx:BSD-3-Clause') +depends=("${MINGW_PACKAGE_PREFIX}-keystone" + "${MINGW_PACKAGE_PREFIX}-python") cd "${srcdir}/${_realname}-${pkgver}/bindings/python" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ diff --git a/mingw-w64-miniupnpc/PKGBUILD b/mingw-w64-miniupnpc/PKGBUILD index 157a66f6e860e..82c685c3903d8 100644 --- a/mingw-w64-miniupnpc/PKGBUILD +++ b/mingw-w64-miniupnpc/PKGBUILD @@ -8,10 +8,11 @@ pkgver=2.2.6 pkgrel=1 pkgdesc="A small UPnP client library/tool to access Internet Gateway Devices (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="http://miniupnp.free.fr" msys2_repository_url="https://github.com/miniupnp/miniupnp" license=('spdx:BSD-3-Clause') +depends=() makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-ninja" diff --git a/mingw-w64-python-aiosignal/PKGBUILD b/mingw-w64-python-aiosignal/PKGBUILD index fe8a10088ce29..50d0b966f793b 100644 --- a/mingw-w64-python-aiosignal/PKGBUILD +++ b/mingw-w64-python-aiosignal/PKGBUILD @@ -7,11 +7,11 @@ pkgver=1.3.1 pkgrel=2 pkgdesc="A list of registered asynchronous callbacks (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/aio-libs/aiosignal' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: aiosignal' ) +url='https://github.com/aio-libs/aiosignal' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-frozenlist") diff --git a/mingw-w64-python-aiosmtpd/PKGBUILD b/mingw-w64-python-aiosmtpd/PKGBUILD index 88152c2843365..145a992a92fab 100644 --- a/mingw-w64-python-aiosmtpd/PKGBUILD +++ b/mingw-w64-python-aiosmtpd/PKGBUILD @@ -7,11 +7,11 @@ pkgver=1.4.4.post2 pkgrel=2 pkgdesc="aiosmtpd - asyncio based SMTP server (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/aio-libs/aiosmtpd' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: aiosmtpd' ) +url='https://github.com/aio-libs/aiosmtpd' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-atpublic" @@ -32,12 +32,14 @@ build() { } check() { + msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m pytest } package() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-apipkg/PKGBUILD b/mingw-w64-python-apipkg/PKGBUILD index 3f7db93890ae4..74b276fa370c9 100644 --- a/mingw-w64-python-apipkg/PKGBUILD +++ b/mingw-w64-python-apipkg/PKGBUILD @@ -10,17 +10,18 @@ pkgver=3.0.2 pkgrel=1 pkgdesc="Namespace control and lazy-import mechanism (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/pytest-dev/apipkg" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: apipkg' ) +url="https://github.com/pytest-dev/apipkg" license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-hatchling" "${MINGW_PACKAGE_PREFIX}-python-hatch-vcs") +options=('staticlibs' 'strip' '!debug') source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('c7aa61a4f82697fdaa667e70af1505acf1f7428b1c27b891d204ba7a8a3c5e0d') diff --git a/mingw-w64-python-argon2-cffi-bindings/PKGBUILD b/mingw-w64-python-argon2-cffi-bindings/PKGBUILD index 4ce9422499271..51bda66c16bcf 100644 --- a/mingw-w64-python-argon2-cffi-bindings/PKGBUILD +++ b/mingw-w64-python-argon2-cffi-bindings/PKGBUILD @@ -7,12 +7,12 @@ pkgver=21.2.0 pkgrel=2 pkgdesc="Low-level CFFI bindings for Argon2 (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/hynek/argon2-cffi-bindings' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: argon2-cffi-bindings' ) -license=('spdx:MIT') +url='https://github.com/hynek/argon2-cffi-bindings' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-cffi" "${MINGW_PACKAGE_PREFIX}-argon2") diff --git a/mingw-w64-python-argon2_cffi/PKGBUILD b/mingw-w64-python-argon2_cffi/PKGBUILD index 634cfa4d125fd..bca6b06347440 100644 --- a/mingw-w64-python-argon2_cffi/PKGBUILD +++ b/mingw-w64-python-argon2_cffi/PKGBUILD @@ -10,7 +10,7 @@ pkgver=23.1.0 pkgrel=1 pkgdesc="CFFI-based Argon2 Bindings for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/hynek/argon2_cffi' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" diff --git a/mingw-w64-python-arrow/PKGBUILD b/mingw-w64-python-arrow/PKGBUILD index 9ddf5f0482923..82f4d42d50353 100644 --- a/mingw-w64-python-arrow/PKGBUILD +++ b/mingw-w64-python-arrow/PKGBUILD @@ -8,11 +8,11 @@ pkgver=1.3.0 pkgrel=1 pkgdesc='Better dates & times for Python (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://arrow.readthedocs.io/" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: arrow' ) +url="https://arrow.readthedocs.io/" license=('spdx:Apache-2.0') depends=( "${MINGW_PACKAGE_PREFIX}-python" @@ -21,22 +21,24 @@ depends=( makedepends=( "${MINGW_PACKAGE_PREFIX}-python-setuptools" ) -source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85') prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_pyname//_/-}-$pkgver" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_pyname//_/-}-$pkgver" "python-build-${CARCH}" + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-asgiref/PKGBUILD b/mingw-w64-python-asgiref/PKGBUILD index de334106b617d..4c97fc15fcdc7 100644 --- a/mingw-w64-python-asgiref/PKGBUILD +++ b/mingw-w64-python-asgiref/PKGBUILD @@ -7,11 +7,11 @@ pkgver=3.7.2 pkgrel=2 pkgdesc="Reference ASGI adapters and channel layers (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/django/asgiref' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: asgiref' ) +url='https://github.com/django/asgiref' license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-typing_extensions") diff --git a/mingw-w64-python-asn1crypto/PKGBUILD b/mingw-w64-python-asn1crypto/PKGBUILD index 9ee15dda07032..580de7297dc5f 100644 --- a/mingw-w64-python-asn1crypto/PKGBUILD +++ b/mingw-w64-python-asn1crypto/PKGBUILD @@ -10,26 +10,27 @@ pkgver=1.5.1 pkgrel=3 pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API (mingw-w64)" url='https://github.com/wbond/asn1crypto' -license=('spdx:MIT') +license=('MIT') arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') depends=("${MINGW_PACKAGE_PREFIX}-python-pycparser") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(".https://github.com/wbond/asn1crypto/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://github.com/wbond/asn1crypto/archive/${pkgver}.tar.gz") sha256sums=('c06e6827971891a7c42299eff3f0881d6fbf1ada53f11c5797240a9c0cec6a1c') prepare() { cd ${srcdir} - cp -r ${_realname}-${pkgver} python-build-${MSYSTEM} + cp -r ${_realname}-${pkgver} python-build-${CARCH} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd ${srcdir}/python-build-${MSYSTEM} + cd ${srcdir}/python-build-${CARCH} MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --skip-build diff --git a/mingw-w64-python-astor/PKGBUILD b/mingw-w64-python-astor/PKGBUILD index a1961da9284e0..9813ad351ea32 100644 --- a/mingw-w64-python-astor/PKGBUILD +++ b/mingw-w64-python-astor/PKGBUILD @@ -7,34 +7,34 @@ pkgver=0.8.1 pkgrel=4 pkgdesc='Read/rewrite/write Python ASTs (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://astor.rtfd.org/" -msys2_repository_url="https://github.com/berkerpeksag/astor" -license=('spdx:BSD-3-Clause') +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/berkerpeksag/astor/archive/$pkgver/${_realname}-$pkgver.tar.gz") +source=("${_realname}-$pkgver.tar.gz::https://github.com/berkerpeksag/astor/archive/$pkgver.tar.gz") sha512sums=('8917898e284fb5e5855a05f8e3f1c8925c4128d2a87f67f0334914d4d3c54b53c4f0cadd04d632a7bcaf3438db7edf2d989b07a9576637c0dce6c16e85c60f83') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" nosetests || warning "https://github.com/berkerpeksag/astor/issues/146" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 --skip-build diff --git a/mingw-w64-python-asttokens/PKGBUILD b/mingw-w64-python-asttokens/PKGBUILD index 33ff761116bbc..84b243a8a588d 100644 --- a/mingw-w64-python-asttokens/PKGBUILD +++ b/mingw-w64-python-asttokens/PKGBUILD @@ -7,12 +7,12 @@ pkgver=2.4.1 pkgrel=1 pkgdesc="Annotate AST trees with source code positions (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/gristlabs/asttokens' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-asttokens' 'pypi: asttokens' ) +url='https://github.com/gristlabs/asttokens' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-six") diff --git a/mingw-w64-python-astunparse/PKGBUILD b/mingw-w64-python-astunparse/PKGBUILD index 8a8eaefdfb04f..0b4bf2fcf8ee8 100644 --- a/mingw-w64-python-astunparse/PKGBUILD +++ b/mingw-w64-python-astunparse/PKGBUILD @@ -7,28 +7,28 @@ pkgver=1.6.3 pkgrel=4 pkgdesc='An AST unparser for Python (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://github.com/simonpercivall/astunparse" -license=('spdx:PSF-2.0') +license=('python') depends=("${MINGW_PACKAGE_PREFIX}-python-six") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-python-wheel") -source=("https://github.com/simonpercivall/astunparse/archive/v$pkgver/${_realname}-$pkgver.tar.gz") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-wheel") +source=("${_realname}-$pkgver.tar.gz::https://github.com/simonpercivall/astunparse/archive/v$pkgver.tar.gz") sha512sums=('8f85d848c65d1728df767b1c2aee44aa4ce79a6810c348a5b3669b56f4bc5ce7f09414557be38d0a5103a77872d75083762bd2829d02ac8414df17221d30492b') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 --skip-build diff --git a/mingw-w64-python-async-lru/PKGBUILD b/mingw-w64-python-async-lru/PKGBUILD index f2de6163fcefb..f9aea4d943cf5 100644 --- a/mingw-w64-python-async-lru/PKGBUILD +++ b/mingw-w64-python-async-lru/PKGBUILD @@ -7,7 +7,7 @@ pkgver=2.0.4 pkgrel=1 pkgdesc='Simple LRU cache for asyncio (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/aio-libs/async-lru' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" diff --git a/mingw-w64-python-async-timeout/PKGBUILD b/mingw-w64-python-async-timeout/PKGBUILD index 9b4159203ff0e..845dd5db56912 100644 --- a/mingw-w64-python-async-timeout/PKGBUILD +++ b/mingw-w64-python-async-timeout/PKGBUILD @@ -7,34 +7,34 @@ pkgver=4.0.3 pkgrel=1 pkgdesc='Asyncio-compatible timeout class (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://github.com/aio-libs/async-timeout" -license=('spdx:Apache-2.0') +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-python-docutils") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-docutils") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-cov") source=("https://github.com/aio-libs/async-timeout/archive/v${pkgver}.tar.gz") sha256sums=('c63f1252d5fa878fdceb7a6894f1df6a73f92546e52a0b7999a5de429fd64ff8') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" PYTHONPATH=. ${MINGW_PREFIX}/bin/py.test tests || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-async_generator/PKGBUILD b/mingw-w64-python-async_generator/PKGBUILD index be1d66df1f1f5..630993c0cf9c8 100644 --- a/mingw-w64-python-async_generator/PKGBUILD +++ b/mingw-w64-python-async_generator/PKGBUILD @@ -7,33 +7,34 @@ pkgver=1.10 pkgrel=4 pkgdesc='Making it easy to write async iterators (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://github.com/python-trio/async_generator" -license=('spdx:MIT') +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/python-trio/async_generator/archive/v${pkgver}/${_realname}-$pkgver.tar.gz") +source=("https://github.com/python-trio/async_generator/archive/v${pkgver}.tar.gz") sha256sums=('7b61d78c5bb14fb89e5d67b58755033f234bb411e71924820d5a23e087de4535') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-$pkgver" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-$pkgver" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/py.test } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-asynctest/PKGBUILD b/mingw-w64-python-asynctest/PKGBUILD index d405d6ac76cca..2d06ceaeaffaa 100644 --- a/mingw-w64-python-asynctest/PKGBUILD +++ b/mingw-w64-python-asynctest/PKGBUILD @@ -7,32 +7,32 @@ pkgver=0.13.0 pkgrel=4 pkgdesc='Enhance the standard unittest package with features for testing asyncio libraries (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://aiohttp.readthedocs.io/" -msys2_repository_url="https://github.com/Martiusweb/asynctest" -license=('spdx:Apache-2.0') +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/Martiusweb/asynctest/archive/v$pkgver/${_realname}-$pkgver.tar.gz") +source=("https://github.com/Martiusweb/asynctest/archive/v$pkgver.tar.gz") sha256sums=('d405738ab51d3b6283144a8425c8859b4cd8ea7e18eb6d203edd66047f00fe49') -prepare() { - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-$pkgver" "python-build-${MSYSTEM}" +prepare() { + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-$pkgver" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python -m unittest test || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-atomicwrites/PKGBUILD b/mingw-w64-python-atomicwrites/PKGBUILD index c3f8e5eb88dea..24d2b2d41cb3f 100644 --- a/mingw-w64-python-atomicwrites/PKGBUILD +++ b/mingw-w64-python-atomicwrites/PKGBUILD @@ -9,17 +9,17 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}=${pkgver}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgdesc="Atomic file writes on POSIX (mingw-w64)" -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://github.com/untitaker/python-atomicwrites" +license=('MIT') +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: atomicwrites' ) -license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('81b2c9071a49367a7f770170e5eec8cb66567cfbbc8c73d20ce5ca4a8d71cf11') # Helper macros to help make tasks easier # @@ -43,23 +43,27 @@ del_file_exists() { prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python test for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" PYTHONPATH=build:${PYTHONPATH} ${MINGW_PREFIX}/bin/py.test } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-atpublic/PKGBUILD b/mingw-w64-python-atpublic/PKGBUILD index 7ae8680463f3c..ddcc948a93369 100644 --- a/mingw-w64-python-atpublic/PKGBUILD +++ b/mingw-w64-python-atpublic/PKGBUILD @@ -7,11 +7,11 @@ pkgver=4.0 pkgrel=2 pkgdesc="Keep all y'all's __all__'s in sync (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://public.readthedocs.io/' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: atpublic' ) +url='https://public.readthedocs.io/' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-attrdict3/PKGBUILD b/mingw-w64-python-attrdict3/PKGBUILD index b82d0cb7a9757..161580b8cb12a 100644 --- a/mingw-w64-python-attrdict3/PKGBUILD +++ b/mingw-w64-python-attrdict3/PKGBUILD @@ -7,12 +7,12 @@ pkgver=2.0.2 pkgrel=2 pkgdesc="A dict with attribute-style access (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/pirofti/AttrDict3' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: attrdict3' ) -license=('spdx:MIT') +url='https://github.com/pirofti/AttrDict3' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-six") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") diff --git a/mingw-w64-python-audioread/PKGBUILD b/mingw-w64-python-audioread/PKGBUILD index d161c7cc9869e..738f3642283a9 100644 --- a/mingw-w64-python-audioread/PKGBUILD +++ b/mingw-w64-python-audioread/PKGBUILD @@ -7,11 +7,11 @@ pkgver=3.0.1 pkgrel=1 pkgdesc='cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/beetbox/audioread" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: audioread' ) +url="https://github.com/beetbox/audioread" license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-automat/PKGBUILD b/mingw-w64-python-automat/PKGBUILD index 5b57c09882267..27aac2d11177e 100644 --- a/mingw-w64-python-automat/PKGBUILD +++ b/mingw-w64-python-automat/PKGBUILD @@ -7,12 +7,12 @@ pkgver=22.10.0 pkgrel=3 pkgdesc='Self-service finite-state machines for the programmer on the go (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/glyph/Automat' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: Automat' ) -license=('spdx:MIT') +license=('MIT') +url='https://github.com/glyph/Automat' depends=( ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-attrs @@ -35,6 +35,7 @@ prepare() { } build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } diff --git a/mingw-w64-python-autopep8/PKGBUILD b/mingw-w64-python-autopep8/PKGBUILD index 5d99fca581419..271e67e6a1a94 100644 --- a/mingw-w64-python-autopep8/PKGBUILD +++ b/mingw-w64-python-autopep8/PKGBUILD @@ -7,12 +7,12 @@ pkgver=2.0.4 pkgrel=1 pkgdesc='A tool that automatically formats Python code to conform to the PEP 8 style guide (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/hhatto/autopep8' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: autopep8' ) -license=('spdx:MIT') +license=('MIT') +url='https://github.com/hhatto/autopep8' depends=( ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-pycodestyle) @@ -26,6 +26,7 @@ prepare() { } build() { + msg "Python build for ${MSYSTEM}" cd ${srcdir}/python-build-${MSYSTEM} ${MINGW_PREFIX}/bin/python setup.py build } diff --git a/mingw-w64-python-backcall/PKGBUILD b/mingw-w64-python-backcall/PKGBUILD index e5c94863643f8..f7ef444590ced 100644 --- a/mingw-w64-python-backcall/PKGBUILD +++ b/mingw-w64-python-backcall/PKGBUILD @@ -10,35 +10,35 @@ pkgver=0.2.0 pkgrel=4 pkgdesc="Backwards compatible callback APIs (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/takluyver/backcall' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: backcall' ) -license=('spdx:BSD-3-Clause') +url='https://github.com/takluyver/backcall' +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py check } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-bcrypt/PKGBUILD b/mingw-w64-python-bcrypt/PKGBUILD index 58e7f861dd90e..8c4d36d77af5d 100644 --- a/mingw-w64-python-bcrypt/PKGBUILD +++ b/mingw-w64-python-bcrypt/PKGBUILD @@ -12,7 +12,7 @@ pkgver=4.1.2 pkgrel=1 pkgdesc="Modern password hashing for your software and your servers (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/pyca/bcrypt/' msys2_references=( 'pypi: bcrypt' diff --git a/mingw-w64-python-beaker/PKGBUILD b/mingw-w64-python-beaker/PKGBUILD index 68bc099acc4b0..c8760e0ee8965 100644 --- a/mingw-w64-python-beaker/PKGBUILD +++ b/mingw-w64-python-beaker/PKGBUILD @@ -11,29 +11,30 @@ pkgver=1.12.1 pkgrel=2 pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +license=('custom') url="https://beaker.readthedocs.org/" -msys2_repository_url="https://github.com/bbangert/beaker" -license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(https://github.com/bbangert/beaker/archive/${pkgver}/${_realname}-${pkgver}.tar.gz) +source=(${_realname}-${pkgver}.tar.gz::https://github.com/bbangert/beaker/archive/${pkgver}.tar.gz) sha256sums=('135c41ce48a7f994c15abe050949e6ce70f3e164f0dc81ceb56c4d9e3106b9f2') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" sed -i "s#/usr/bin/python#/usr/bin/env python#" beaker/crypto/pbkdf2.py ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=;--install-purelib=;--install-data=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1 install -D -m644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" diff --git a/mingw-w64-python-beniget/PKGBUILD b/mingw-w64-python-beniget/PKGBUILD index b37c6c81e1384..1051f4b355936 100644 --- a/mingw-w64-python-beniget/PKGBUILD +++ b/mingw-w64-python-beniget/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.4.1 pkgrel=3 pkgdesc="A static analyzer for Python code (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/serge-sans-paille/beniget" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: beniget' ) -license=('spdx:BSD-3-Clause') +url="https://github.com/serge-sans-paille/beniget" +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python-gast") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz") diff --git a/mingw-w64-python-binaryornot/PKGBUILD b/mingw-w64-python-binaryornot/PKGBUILD index 34c1e800e3cef..5e4916d25c462 100644 --- a/mingw-w64-python-binaryornot/PKGBUILD +++ b/mingw-w64-python-binaryornot/PKGBUILD @@ -8,11 +8,11 @@ pkgver=0.4.4 pkgrel=5 pkgdesc='Ultra-lightweight pure Python package to check if a file is binary or text. (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/audreyr/binaryornot" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: binaryornot' ) +url="https://github.com/audreyr/binaryornot" license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-chardet") diff --git a/mingw-w64-python-binwalk/PKGBUILD b/mingw-w64-python-binwalk/PKGBUILD index 208a47dc9a0d9..2e25b8e1e19a9 100644 --- a/mingw-w64-python-binwalk/PKGBUILD +++ b/mingw-w64-python-binwalk/PKGBUILD @@ -10,19 +10,19 @@ pkgver=2.3.4 pkgrel=2 pkgdesc="A tool for searching a given binary image for embedded files (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/ReFirmLabs/binwalk/" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: binwalk' ) -license=('spdx:MIT') +url="https://github.com/ReFirmLabs/binwalk/" +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-bzip2" "${MINGW_PACKAGE_PREFIX}-libsystre" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-xz" "${MINGW_PACKAGE_PREFIX}-zlib") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(https://github.com/ReFirmLabs/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz) +source=(${_realname}-${pkgver}.tar.gz::https://github.com/ReFirmLabs/${_realname}/archive/v${pkgver}.tar.gz) sha256sums=('60416bfec2390cec76742ce942737df3e6585c933c2467932f59c21e002ba7a9') prepare() { diff --git a/mingw-w64-python-bleach/PKGBUILD b/mingw-w64-python-bleach/PKGBUILD index 1b8c618c95ff2..0dc34b380224b 100644 --- a/mingw-w64-python-bleach/PKGBUILD +++ b/mingw-w64-python-bleach/PKGBUILD @@ -9,10 +9,10 @@ replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=6.1.0 pkgrel=1 pkgdesc="An easy whitelist-based HTML-sanitizing tool (mingw-w64)" -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://bleach.readthedocs.io/" msys2_repository_url="https://github.com/mozilla/bleach/" +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: bleach' ) diff --git a/mingw-w64-python-blinker/PKGBUILD b/mingw-w64-python-blinker/PKGBUILD index 1608fe416f04a..ef11e6698975a 100644 --- a/mingw-w64-python-blinker/PKGBUILD +++ b/mingw-w64-python-blinker/PKGBUILD @@ -7,13 +7,13 @@ pkgver=1.7.0 pkgrel=1 pkgdesc='Fast, simple object-to-object and broadcast signaling (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://blinker.readthedocs.io/' -msys2_repository_url='https://github.com/pallets-eco/blinker' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'archlinux: python-blinker' 'pypi: blinker' ) +msys2_repository_url='https://github.com/pallets-eco/blinker' +url='https://blinker.readthedocs.io/' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-boolean.py/PKGBUILD b/mingw-w64-python-boolean.py/PKGBUILD index 8a7fb5c7abc4c..573db8b9b548e 100644 --- a/mingw-w64-python-boolean.py/PKGBUILD +++ b/mingw-w64-python-boolean.py/PKGBUILD @@ -7,7 +7,7 @@ pkgver=4.0 pkgrel=2 pkgdesc="Define boolean algebras, create and parse boolean expressions and create custom boolean DSL. (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: boolean.py' ) diff --git a/mingw-w64-python-boto/PKGBUILD b/mingw-w64-python-boto/PKGBUILD index 1865ed350f608..dd9a0f785bb5c 100644 --- a/mingw-w64-python-boto/PKGBUILD +++ b/mingw-w64-python-boto/PKGBUILD @@ -7,12 +7,12 @@ pkgver=2.49.0 pkgrel=2 pkgdesc="Amazon Web Services Library (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/boto/boto/' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: boto' ) -license=('spdx:MIT') +url='https://www.somepackage.org/' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-setuptools") diff --git a/mingw-w64-python-bottle/PKGBUILD b/mingw-w64-python-bottle/PKGBUILD index 539c43a29afb2..60a0bfa7e38fa 100755 --- a/mingw-w64-python-bottle/PKGBUILD +++ b/mingw-w64-python-bottle/PKGBUILD @@ -7,16 +7,16 @@ pkgver=0.12.25 pkgrel=1 pkgdesc="A fast and simple python micro-framework for small web-applications (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://bottlepy.org/' -msys2_repository_url='https://github.com/bottlepy/bottle' -msys2_changelog_url='https://bottlepy.org/docs/dev/changelog.html' -msys2_documentation_url='https://bottlepy.org/docs/dev/index.html' -msys2_issue_tracker_url='https://github.com/bottlepy/bottle/issues' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-bottle' 'pypi: bottle' ) +msys2_repository_url='https://github.com/bottlepy/bottle' +msys2_changelog_url='https://bottlepy.org/docs/dev/changelog.html' +msys2_documentation_url='https://bottlepy.org/docs/dev/index.html' +msys2_issue_tracker_url='https://github.com/bottlepy/bottle/issues' +url='https://bottlepy.org/' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-cached-property/PKGBUILD b/mingw-w64-python-cached-property/PKGBUILD index a50e5a9492dc4..e84e3872129d6 100644 --- a/mingw-w64-python-cached-property/PKGBUILD +++ b/mingw-w64-python-cached-property/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.5.2 pkgrel=3 pkgdesc='A decorator for caching properties in classes (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url='https://github.com/pydanny/cached-property' -license=('spdx:BSD') +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("${url}/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz"::"${url}/archive/${pkgver}.tar.gz") sha256sums=('b566d247a65ece61c62d6fefda082cf3ddca46e800576196657d44d9c4cc5cec') prepare() { diff --git a/mingw-w64-python-cachy/PKGBUILD b/mingw-w64-python-cachy/PKGBUILD index e25e45611ea4e..89c409c5e6439 100644 --- a/mingw-w64-python-cachy/PKGBUILD +++ b/mingw-w64-python-cachy/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.3.0 pkgrel=2 pkgdesc="Cachy provides a simple yet effective caching library. (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/sdispater/cachy' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: cachy' ) -license=('spdx:MIT') +url='https://github.com/sdispater/cachy' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" @@ -23,18 +23,21 @@ source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realna sha256sums=('186581f4ceb42a0bbe040c407da73c14092379b1e4c0e327fdb72ae4a9b269b1') build() { + msg "Python build for ${MSYSTEM}" 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() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-cerberus/PKGBUILD b/mingw-w64-python-cerberus/PKGBUILD index c4d35edbb14a2..183e90dd1743e 100644 --- a/mingw-w64-python-cerberus/PKGBUILD +++ b/mingw-w64-python-cerberus/PKGBUILD @@ -7,7 +7,7 @@ pkgver=1.3.5 pkgrel=1 pkgdesc='Lightweight, extensible schema and data validation tool for Python dictionaries (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://github.com/pyeve/cerberus" license=('spdx:ISC') depends=("${MINGW_PACKAGE_PREFIX}-python") diff --git a/mingw-w64-python-cfgv/PKGBUILD b/mingw-w64-python-cfgv/PKGBUILD index f0d9753cb1100..311577d270cdf 100644 --- a/mingw-w64-python-cfgv/PKGBUILD +++ b/mingw-w64-python-cfgv/PKGBUILD @@ -7,11 +7,11 @@ pkgver=3.4.0 pkgrel=1 pkgdesc="Validate configuration and produce human readable error messages. (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/asottile/cfgv' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: cfgv' ) +url='https://github.com/asottile/cfgv' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-characteristic/PKGBUILD b/mingw-w64-python-characteristic/PKGBUILD index c6934fdce569c..2245c2b135e7e 100644 --- a/mingw-w64-python-characteristic/PKGBUILD +++ b/mingw-w64-python-characteristic/PKGBUILD @@ -9,13 +9,13 @@ replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=14.3.0 pkgrel=4 pkgdesc='Python attributes without boilerplate (mingw-w64)' +url='https://characteristic.readthedocs.io/' +license=('MIT') arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: characteristic' ) -url='https://characteristic.readthedocs.io/' -license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.python.org/packages/source/c/${_realname}/${_realname}-${pkgver}.tar.gz") @@ -23,17 +23,17 @@ sha256sums=('ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380') prepare() { cd "${srcdir}" - rm -rf "python-build-${MSYSTEM}" | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf "python-build-${CARCH}" | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --skip-build diff --git a/mingw-w64-python-codespell/PKGBUILD b/mingw-w64-python-codespell/PKGBUILD index b0d4f8f41cbdc..c201e133a9281 100644 --- a/mingw-w64-python-codespell/PKGBUILD +++ b/mingw-w64-python-codespell/PKGBUILD @@ -7,13 +7,13 @@ pkgver=2.2.6 pkgrel=1 pkgdesc="Fix common misspellings in source code (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/codespell-project/codespell' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'archlinux: codespell' 'pypi: codespell' ) -license=('spdx:GPL-2.0-only') +url='https://github.com/codespell-project/codespell' +license=('GPL2') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" diff --git a/mingw-w64-python-colour/PKGBUILD b/mingw-w64-python-colour/PKGBUILD index 4f5425578ab09..7b313b4b56b57 100644 --- a/mingw-w64-python-colour/PKGBUILD +++ b/mingw-w64-python-colour/PKGBUILD @@ -8,36 +8,36 @@ pkgrel=5 epoch=1 pkgdesc="converts and manipulates various color representation (HSL, RVB, web, X11, ...) (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/vaab/colour" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: colour' ) -license=('spdx:BSD-2-Clause') +license=('spdx:BSD-3-Clause') +url="https://pypi.org/pypi/colour" depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-d2to1") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose") -source=("https://pypi.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz") +source=("${_realname}-${pkgver}.tar.gz"::"https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz") sha256sums=('af20120fefd2afede8b001fbef2ea9da70ad7d49fafdb6489025dae8745c3aee') prepare() { cd "${srcdir}" - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/nosetests } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-commonmark/PKGBUILD b/mingw-w64-python-commonmark/PKGBUILD index b3c8ded646434..5f42419f95f1b 100644 --- a/mingw-w64-python-commonmark/PKGBUILD +++ b/mingw-w64-python-commonmark/PKGBUILD @@ -7,34 +7,36 @@ pkgver=0.9.1 pkgrel=4 pkgdesc="Python parser for the CommonMark Markdown spec (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/readthedocs/commonmark.py" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: commonmark' ) -license=('spdx:BSD-3-Clause') +url="https://github.com/readthedocs/commonmark.py" +license=('custom') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://pypi.io/packages/source/c/${_realname}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://pypi.io/packages/source/c/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 - + install -Dm644 "${srcdir}/${_realname}-${pkgver}/LICENSE" "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" local PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX}) diff --git a/mingw-w64-python-comtypes/PKGBUILD b/mingw-w64-python-comtypes/PKGBUILD index 507d8ad992299..83c1abb65bc38 100644 --- a/mingw-w64-python-comtypes/PKGBUILD +++ b/mingw-w64-python-comtypes/PKGBUILD @@ -10,11 +10,11 @@ pkgver=1.3.0 pkgrel=1 pkgdesc="A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/enthought/comtypes' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: comtypes' ) +url='https://github.com/enthought/comtypes' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-cppy/PKGBUILD b/mingw-w64-python-cppy/PKGBUILD index c6424134e5539..0ceae51fa5b6b 100644 --- a/mingw-w64-python-cppy/PKGBUILD +++ b/mingw-w64-python-cppy/PKGBUILD @@ -7,16 +7,15 @@ pkgver=1.2.1 pkgrel=2 pkgdesc="A collection of C++ headers which make it easier to write Python C extension modules (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/nucleic/cppy' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: cppy' ) +url='https://github.com/nucleic/cppy' license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") 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-wheel") source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") @@ -30,12 +29,15 @@ prepare() { } build() { + msg "Python build for ${MSYSTEM}" + cd "${srcdir}" cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-crashtest/PKGBUILD b/mingw-w64-python-crashtest/PKGBUILD index bd831da5b8937..28d356dc5ac1f 100644 --- a/mingw-w64-python-crashtest/PKGBUILD +++ b/mingw-w64-python-crashtest/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.4.1 pkgrel=2 pkgdesc="Manage Python errors with ease (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/sdispater/crashtest' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: crashtest' ) -license=('spdx:MIT') +url='https://github.com/sdispater/crashtest' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" @@ -22,18 +22,21 @@ source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realna sha256sums=('80d7b1f316ebfbd429f648076d6275c877ba30ba48979de4191714a75266f0ce') build() { + msg "Python build for ${MSYSTEM}" 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() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-crcmod/PKGBUILD b/mingw-w64-python-crcmod/PKGBUILD index a37ed2708a4d5..9a01dff7f5727 100644 --- a/mingw-w64-python-crcmod/PKGBUILD +++ b/mingw-w64-python-crcmod/PKGBUILD @@ -10,30 +10,30 @@ pkgver=1.7 pkgrel=4 pkgdesc="Cyclic Redundancy Check (CRC) implementation in Python (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://crcmod.sourceforge.net" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: crcmod' ) -license=('spdx:MIT') +url="https://pypi.python.org/pypi/crcmod/" +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-cc") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") +options=('staticlibs' 'strip' '!debug') source=("https://pypi.python.org/packages/source/c/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e') prepare() { cd "${srcdir}" - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-cssselect/PKGBUILD b/mingw-w64-python-cssselect/PKGBUILD index fd3851d76d82a..b95fdd1fff1e7 100644 --- a/mingw-w64-python-cssselect/PKGBUILD +++ b/mingw-w64-python-cssselect/PKGBUILD @@ -10,29 +10,30 @@ pkgdesc="A Python library that parses CSS3 Selectors and translates them to XPat pkgver=1.2.0 pkgrel=2 arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/scrapy/cssselect" -license=('spdx:BSD-3-Clause') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +license=('BSD') +url="https://pypi.python.org/pypi/cssselect" depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/scrapy/cssselect/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/scrapy/cssselect/archive/v${pkgver}.tar.gz") sha256sums=('a5d17fc420dad4d70ff63a585ad315caf9c5868f750551362b5dbb6e8307c66c') prepare() { cd "${srcdir}" sed -e "s|# coding: utf8|# -*- encoding:utf-8 -*-|g" -i ${_realname}-${pkgver}/setup.py - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=;--install-purelib=;--install-data=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1 install -D -m644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" diff --git a/mingw-w64-python-csv23/PKGBUILD b/mingw-w64-python-csv23/PKGBUILD index 281422682223c..f270a0fe1dc69 100644 --- a/mingw-w64-python-csv23/PKGBUILD +++ b/mingw-w64-python-csv23/PKGBUILD @@ -7,18 +7,18 @@ pkgver=0.3.4 pkgrel=2 pkgdesc="Python 2/3 unicode CSV compatibility layer (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/xflr6/csv23' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: csv23' ) +url='https://github.com/xflr6/csv23' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest" "${MINGW_PACKAGE_PREFIX}-python-mock" "${MINGW_PACKAGE_PREFIX}-python-pytest-mock") -source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.zip") +source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.zip") sha512sums=('f88f6fae98f6130df84f6acbdd100cb5ee8162a8e8b3633e1571773e05af103685edbc8cab4bc79f98eadd84b327adc1e7ab0823030b893f6053bae47c72d910') prepare() { @@ -26,9 +26,12 @@ 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} } build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } diff --git a/mingw-w64-python-cx-logging/PKGBUILD b/mingw-w64-python-cx-logging/PKGBUILD index c3f833cf8fad4..3af84353f279a 100644 --- a/mingw-w64-python-cx-logging/PKGBUILD +++ b/mingw-w64-python-cx-logging/PKGBUILD @@ -7,16 +7,16 @@ pkgver=3.1.0 pkgrel=2 pkgdesc="Python and C interfaces for logging (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/anthony-tuininga/cx_Logging" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: cx-Logging' ) license=('PSF') +url="https://github.com/anthony-tuininga/cx_Logging" depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" - "${MINGW_PACKAGE_PREFIX}-cc") -source=(https://pypi.io/packages/source/c/cx_Logging/cx_Logging-${pkgver}.tar.gz +makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") +options=('staticlibs' 'strip' '!debug') +source=(cx_Logging-${pkgver}.tar.gz::https://pypi.io/packages/source/c/cx_Logging/cx_Logging-${pkgver}.tar.gz 0001-setup-remove-compiler-option.patch) sha256sums=('8a06834d8527aa904a68b25c9c1a5fa09f0dfdc94dbd9f86b81cd8d2f7a0e487' 'b2556f8f96f32743b70e775b5a08c7128df6c4757ef49f11b054f0688d9b6dd2') @@ -30,13 +30,13 @@ prepare() { fi cd "${srcdir}" - rm -Rf python-${_realname}-${MSYSTEM} - cp -a cx_Logging-${pkgver} python-${_realname}-${MSYSTEM} + rm -Rf python-${_realname}-${CARCH} + cp -a cx_Logging-${pkgver} python-${_realname}-${CARCH} } package() { local _mingw_prefix=$(cygpath -wm ${MINGW_PREFIX}) - cd python-${_realname}-${MSYSTEM} + cd python-${_realname}-${CARCH} MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 diff --git a/mingw-w64-python-cycler/PKGBUILD b/mingw-w64-python-cycler/PKGBUILD index c2d2ce2dc48f5..0d970bc858643 100644 --- a/mingw-w64-python-cycler/PKGBUILD +++ b/mingw-w64-python-cycler/PKGBUILD @@ -10,13 +10,13 @@ pkgver=0.12.1 pkgrel=1 pkgdesc="Composable style cycles (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://matplotlib.org/cycler/" -msys2_repository_url="https://github.com/matplotlib/cycler/" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-cycler' 'pypi: cycler' ) +msys2_repository_url="https://github.com/matplotlib/cycler/" +url="https://matplotlib.org/cycler/" license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" @@ -24,7 +24,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-wheel") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("https://github.com/matplotlib/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +source=(${_realname}-${pkgver}.tar.gz::"https://github.com/matplotlib/${_realname}/archive/v${pkgver}.tar.gz") sha256sums=('e83c1956b154ceb252c32e079ac7a95860a76c9ce894858dd082cc881008cae0') build() { diff --git a/mingw-w64-python-d2to1/PKGBUILD b/mingw-w64-python-d2to1/PKGBUILD index a5fcd9f0317b3..884d9282567f9 100644 --- a/mingw-w64-python-d2to1/PKGBUILD +++ b/mingw-w64-python-d2to1/PKGBUILD @@ -5,34 +5,34 @@ pkgver=0.2.12.post1 pkgrel=4 pkgdesc="Python library that allows using distutils2-like setup.cfg files for a package's metadata with a distribute/setuptools setup.py script (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/embray/d2to1" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: d2to1' ) -license=('spdx:BSD-3-Clause') +license=('BSD') +url="https://pypi.python.org/pypi/d2to1" depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://pypi.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz") +source=("${_realname}-${pkgver}.tar.gz"::"https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz") sha256sums=('49ef2d16862b3efdc81fc5c32eac373b984945cde5fc02bb01a0a11ff03dd825') prepare() { cd "${srcdir}" - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/nosetests } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-debtcollector/PKGBUILD b/mingw-w64-python-debtcollector/PKGBUILD index be3092667cb63..e8a8d1cf54a8e 100644 --- a/mingw-w64-python-debtcollector/PKGBUILD +++ b/mingw-w64-python-debtcollector/PKGBUILD @@ -10,15 +10,15 @@ pkgver=2.5.0 pkgrel=3 pkgdesc="A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://docs.openstack.org/developer/debtcollector' -msys2_repository_url="https://github.com/openstack/debtcollector" -license=('spdx:Apache-2.0') +license=('Apache') +options=('staticlibs' 'strip' '!debug') depends=("${MINGW_PACKAGE_PREFIX}-python-wrapt") makedepends=("${MINGW_PACKAGE_PREFIX}-python-pbr" "${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-stestr") -source=("https://github.com/openstack/debtcollector/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://github.com/openstack/debtcollector/archive/${pkgver}.tar.gz") sha512sums=('a6f00eece3e5fa61feef39a4d10f82f81a2548eac06b2650b2caea2ee525ce886db0994053b64032adf06171d94dfb7f90af06acc56ddde76a62188ee8f4f9ae') # Helper macros to help make tasks easier # @@ -43,16 +43,21 @@ del_file_exists() { 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} # for python-pbr export PBR_VERSION=${pkgver} } build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } check() { + msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/stestr run || warning "Tests failed" } diff --git a/mingw-w64-python-decorator/PKGBUILD b/mingw-w64-python-decorator/PKGBUILD index 1196400248fdd..0b6dd6aeac28e 100644 --- a/mingw-w64-python-decorator/PKGBUILD +++ b/mingw-w64-python-decorator/PKGBUILD @@ -10,20 +10,25 @@ pkgver=5.1.1 pkgrel=3 pkgdesc="Python Decorator module (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/micheles/decorator' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: decorator' ) -license=('spdx:BSD-2-Clause') +url='https://pypi.python.org/pypi/decorator' +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz") +options=('staticlibs' 'strip' '!debug') +source=(#"${_realname}-${pkgver}.tar.gz"::"https://github.com/micheles/decorator/archive/${pkgver}.tar.gz" + "https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha512sums=('584857ffb0c3e52344b473ceb9e28adfd7d789d480a528471f8ab37be055ebe5feb170f41077010e25350e1c311189d45b90773cf12f0043de98ea8ebcde20ab') 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} } build() { diff --git a/mingw-w64-python-defusexml/PKGBUILD b/mingw-w64-python-defusexml/PKGBUILD index 19b29d9524edf..930f6f1e52e73 100644 --- a/mingw-w64-python-defusexml/PKGBUILD +++ b/mingw-w64-python-defusexml/PKGBUILD @@ -10,7 +10,7 @@ pkgver=0.7.1 pkgrel=4 pkgdesc="XML bomb protection for Python stdlib modules (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: defusedxml' ) @@ -18,26 +18,30 @@ url='https://bitbucket.org/tiran/defusedxml' license=('PSF') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +options=('staticlibs' 'strip' '!debug') source=("https://pypi.io/packages/source/d/defusedxml/${_realname}-${pkgver}.tar.gz") sha256sums=('1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69') prepare() { - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python tests.py } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-deprecated/PKGBUILD b/mingw-w64-python-deprecated/PKGBUILD index 7d9da55ed11b3..1303958f6dda5 100644 --- a/mingw-w64-python-deprecated/PKGBUILD +++ b/mingw-w64-python-deprecated/PKGBUILD @@ -7,33 +7,34 @@ pkgver=1.2.14 pkgrel=1 pkgdesc="Python @deprecated decorator to deprecate old python classes, functions or methods (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://github.com/tantale/deprecated/" -license=('spdx:MIT') +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python-wrapt") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-runner") -source=("https://github.com/tantale/deprecated/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://github.com/tantale/deprecated/archive/v${pkgver}.tar.gz") sha256sums=('3309fa073e6c13a126be9fb88959a02689b15a066fa7e222a07b62325e9673a7') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py pytest || true } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-deprecation/PKGBUILD b/mingw-w64-python-deprecation/PKGBUILD index 19fa156b26568..de2ca12043967 100644 --- a/mingw-w64-python-deprecation/PKGBUILD +++ b/mingw-w64-python-deprecation/PKGBUILD @@ -7,11 +7,11 @@ pkgver=2.1.0 pkgrel=2 pkgdesc="A library to handle automated deprecations (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/briancurtin/deprecation' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: deprecation' ) +url='https://github.com/briancurtin/deprecation' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-packaging") diff --git a/mingw-w64-python-diff-match-patch/PKGBUILD b/mingw-w64-python-diff-match-patch/PKGBUILD index 22b4b2906d6e2..e8c6e2360413f 100644 --- a/mingw-w64-python-diff-match-patch/PKGBUILD +++ b/mingw-w64-python-diff-match-patch/PKGBUILD @@ -7,12 +7,12 @@ pkgver=20230430 pkgrel=2 pkgdesc='A high-performance library in multiple languages that manipulates plain text (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com//diff-match-patch-python/diff-match-patch' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: diff-match-patch' ) license=('spdx:Apache-2.0') +url='https://github.com//diff-match-patch-python/diff-match-patch' depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" diff --git a/mingw-w64-python-distutils-extra/PKGBUILD b/mingw-w64-python-distutils-extra/PKGBUILD index 057124effca88..aeb93a88743a3 100644 --- a/mingw-w64-python-distutils-extra/PKGBUILD +++ b/mingw-w64-python-distutils-extra/PKGBUILD @@ -10,10 +10,10 @@ pkgver=2.39 pkgrel=4 pkgdesc="Enhancements to the Python build system (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://launchpad.net/python-distutils-extra" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') license=('GPL') -depends=("${MINGW_PACKAGE_PREFIX}-python" +url="https://launchpad.net/python-distutils-extra" +depends=("${MINGW_PACKAGE_PREFIX}-python>=3.3" "intltool") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://launchpad.net/${_realname}/trunk/${pkgver}/+download/${_realname}-${pkgver}.tar.gz" @@ -24,24 +24,24 @@ sha256sums=('723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af' prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py test } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix="${MINGW_PREFIX}" --root="${pkgdir}" --skip-build } diff --git a/mingw-w64-python-docx/PKGBUILD b/mingw-w64-python-docx/PKGBUILD index 82454828a87d3..a0ea31574eaed 100644 --- a/mingw-w64-python-docx/PKGBUILD +++ b/mingw-w64-python-docx/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.1.0 pkgrel=1 pkgdesc="Python library for creating and updating Microsoft Word (.docx) files (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://python-docx.readthedocs.io" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: python-docx' ) -license=('spdx:MIT') +url="https://python-docx.readthedocs.io" +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python-lxml" "${MINGW_PACKAGE_PREFIX}-python-typing_extensions") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-dotty-dict/PKGBUILD b/mingw-w64-python-dotty-dict/PKGBUILD index 343eaab4c3638..109363123414d 100644 --- a/mingw-w64-python-dotty-dict/PKGBUILD +++ b/mingw-w64-python-dotty-dict/PKGBUILD @@ -7,14 +7,15 @@ pkgver=1.3.1 pkgrel=2 pkgdesc="Dictionary wrapper for quick access to deeply nested keys (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/pawelzny/dotty_dict' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: dotty-dict' ) -license=('spdx:MIT') +url='https://github.com/pawelzny/dotty_dict' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('4b016e03b8ae265539757a53eba24b9bfda506fb94fbce0bee843c6f05541a15') diff --git a/mingw-w64-python-ecdsa/PKGBUILD b/mingw-w64-python-ecdsa/PKGBUILD index ddac3c7278963..edce2e61467e1 100644 --- a/mingw-w64-python-ecdsa/PKGBUILD +++ b/mingw-w64-python-ecdsa/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.18.0 pkgrel=1 pkgdesc="Implementation of ECDSA in Python (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/tlsfuzzer/python-ecdsa" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: ecdsa' ) -license=('spdx:MIT') +url="https://github.com/tlsfuzzer/python-ecdsa" +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python-six") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.io/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") diff --git a/mingw-w64-python-editor/PKGBUILD b/mingw-w64-python-editor/PKGBUILD index f1d1669bf9241..1deb366775355 100644 --- a/mingw-w64-python-editor/PKGBUILD +++ b/mingw-w64-python-editor/PKGBUILD @@ -13,33 +13,37 @@ pkgver=1.0.4 pkgrel=4 pkgdesc="Programmatically open an editor, capture the result (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/fmoo/python-editor' -license=('spdx:Apache-2.0') +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(https://github.com/fmoo/python-editor/archive/${pkgver}/${_realname}-${pkgver}.tar.gz) +options=('staticlibs' 'strip' '!debug') +source=(${_realname}-${pkgver}.tar.gz::https://github.com/fmoo/python-editor/archive/${pkgver}.tar.gz) sha256sums=('61a4758919668b8ffe5eb389a86a4c2e8c2f789c02b9c6aee0ddf3c4ebfe3fd3') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "python-${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "python-${_realname}-${pkgver}" "python-build-${CARCH}" + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py check } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-entrypoints/PKGBUILD b/mingw-w64-python-entrypoints/PKGBUILD index 86b67de9eef85..9a16f4cbe5ffa 100644 --- a/mingw-w64-python-entrypoints/PKGBUILD +++ b/mingw-w64-python-entrypoints/PKGBUILD @@ -9,12 +9,12 @@ replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=0.4 pkgrel=4 pkgdesc="Discover and load entry points from installed packages (mingw-w64)" -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://github.com/takluyver/entrypoints" -license=('spdx:MIT') +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') +license=('MIT') makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=(.tar.gz::https://github.com/takluyver/${_realname}/archive/${pkgver}/${_realname}-${pkgver}.tar.gz +source=(${_realname}-${pkgver}.tar.gz::https://github.com/takluyver/${_realname}/archive/${pkgver}.tar.gz ${_realname}-${pkgver}-whl.tar.gz::https://files.pythonhosted.org/packages/py3/e/${_realname}/${_realname}-${pkgver}-py3-none-any.whl) sha256sums=('d2197a94aa73e70a7f60600e654ac9918ca2a0ee5480eb875296c42220a02272' 'f174b5ff827504fd3cd97cc3f8649f3693f51538c7e4bdf3ef002c8429d42f9f') diff --git a/mingw-w64-python-et-xmlfile/PKGBUILD b/mingw-w64-python-et-xmlfile/PKGBUILD index ffdaba46d85a4..8a9623989ef58 100644 --- a/mingw-w64-python-et-xmlfile/PKGBUILD +++ b/mingw-w64-python-et-xmlfile/PKGBUILD @@ -9,13 +9,13 @@ replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=1.1.0 pkgrel=4 pkgdesc="A low memory library for creating large XML files (mingw-w64)" -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://et-xmlfile.readthedocs.io/" +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: et-xmlfile' ) -license=('spdx:MIT') +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python-lxml") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.python.org/packages/source/e/et_xmlfile/et_xmlfile-${pkgver}.tar.gz" @@ -25,17 +25,17 @@ sha256sums=('8eb9e2bc2f8c97e37a2dc85a09ecdcdec9d8a396530a6d5a33b30b9a92da0c5c' prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "et_xmlfile-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "et_xmlfile-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --root=${pkgdir} --prefix=${MINGW_PREFIX} --optimize=1 --skip-build diff --git a/mingw-w64-python-executing/PKGBUILD b/mingw-w64-python-executing/PKGBUILD index 0620b3634cc0b..ddcd29ca135ac 100644 --- a/mingw-w64-python-executing/PKGBUILD +++ b/mingw-w64-python-executing/PKGBUILD @@ -7,12 +7,12 @@ pkgver=2.0.1 pkgrel=1 pkgdesc="Get the currently executing AST node of a frame, and other information (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/alexmojaki/executing' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: executing' ) -license=('spdx:MIT') +url='https://github.com/alexmojaki/executing' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" diff --git a/mingw-w64-python-expandvars/PKGBUILD b/mingw-w64-python-expandvars/PKGBUILD index df08d89b4ef31..e984f99075173 100644 --- a/mingw-w64-python-expandvars/PKGBUILD +++ b/mingw-w64-python-expandvars/PKGBUILD @@ -7,7 +7,7 @@ pkgver=0.12.0 pkgrel=1 pkgdesc="Expand system variables Unix style (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32' 'mingw32') url='https://github.com/sayanarijit/expandvars' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") diff --git a/mingw-w64-python-fasteners/PKGBUILD b/mingw-w64-python-fasteners/PKGBUILD index 6d103961bb4f9..2ce81cde139ec 100644 --- a/mingw-w64-python-fasteners/PKGBUILD +++ b/mingw-w64-python-fasteners/PKGBUILD @@ -10,24 +10,28 @@ pkgver=0.19 pkgrel=1 pkgdesc="A python package that provides useful locks. (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/harlowja/fasteners' -license=('spdx:Apache-2.0') +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-wheel") -source=("https://github.com/harlowja/fasteners/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +options=('staticlibs' 'strip' '!debug') +source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/harlowja/fasteners/archive/${pkgver}.tar.gz") sha512sums=('47db216ff5bad5c669ca2d9be0ee09feba4a3d55ed0eac8d3623bd3d112b0b87fb9019f8785d035ec32ad9fa9e4ae7d1c92a576c97eec29acc82711d7e71a465') build() { + msg "Python build for ${MSYSTEM}" + cd "${srcdir}" cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-fastjsonschema/PKGBUILD b/mingw-w64-python-fastjsonschema/PKGBUILD index 523dea64d01e0..ed4e28665872e 100644 --- a/mingw-w64-python-fastjsonschema/PKGBUILD +++ b/mingw-w64-python-fastjsonschema/PKGBUILD @@ -7,7 +7,7 @@ pkgver=2.19.1 pkgrel=1 pkgdesc='Fast JSON schema validator for Python (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: fastjsonschema' ) diff --git a/mingw-w64-python-feedgenerator/PKGBUILD b/mingw-w64-python-feedgenerator/PKGBUILD index fb270e2287976..d3ef0c3a86b04 100644 --- a/mingw-w64-python-feedgenerator/PKGBUILD +++ b/mingw-w64-python-feedgenerator/PKGBUILD @@ -7,15 +7,15 @@ pkgver=2.1.0 pkgrel=2 pkgdesc='Standalone version of django.utils.feedgenerator (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/getpelican/feedgenerator' -license=('spdx:BSD-3-Clause') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') +url='https://pypi.org/project/feedgenerator/' +license=('GPL') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-pytz" "${MINGW_PACKAGE_PREFIX}-python-six") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose") -source=("https://github.com/getpelican/feedgenerator/archive/${pkgver}/feedgenerator-${pkgver}.tar.gz") +source=("feedgenerator-${pkgver}.tar.gz"::"https://github.com/getpelican/feedgenerator/archive/${pkgver}.tar.gz") sha256sums=('1e2afc5e49bdc93d2d9c4e3c747692c19ad9a3d89439ad7ce67a69c97f427c65') prepare() { @@ -25,6 +25,7 @@ prepare() { } build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } diff --git a/mingw-w64-python-findpython/PKGBUILD b/mingw-w64-python-findpython/PKGBUILD index 5e046e952b0ab..01caeb2db406b 100644 --- a/mingw-w64-python-findpython/PKGBUILD +++ b/mingw-w64-python-findpython/PKGBUILD @@ -7,7 +7,7 @@ pkgver=0.4.1 pkgrel=1 pkgdesc='A utility to find python versions on your system (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/frostming/findpython' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" diff --git a/mingw-w64-python-fire/PKGBUILD b/mingw-w64-python-fire/PKGBUILD index 93fc113456c63..a20a54e75a4a5 100644 --- a/mingw-w64-python-fire/PKGBUILD +++ b/mingw-w64-python-fire/PKGBUILD @@ -7,22 +7,23 @@ pkgver=0.5.0 pkgrel=2 pkgdesc='Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://github.com/google/python-fire" license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python-six" "${MINGW_PACKAGE_PREFIX}-python-termcolor") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://github.com/google/python-fire/archive/v$pkgver/python-fire-${pkgver}.tar.gz") +source=("https://github.com/google/python-fire/archive/v$pkgver.tar.gz") sha256sums=('831621e31e072f6ea2a95fc3f1774fbd5cbb46b7c01d07c0dc25b681fb7affe2') -prepare() { +prepare() { cd "$srcdir" rm -rf python-build-${MSYSTEM} | true cp -r "python-fire-${pkgver}" "python-build-${MSYSTEM}" } build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } diff --git a/mingw-w64-python-flexmock/PKGBUILD b/mingw-w64-python-flexmock/PKGBUILD index 8737826463f80..501c67833ed55 100644 --- a/mingw-w64-python-flexmock/PKGBUILD +++ b/mingw-w64-python-flexmock/PKGBUILD @@ -10,33 +10,36 @@ pkgver=0.11.3 pkgrel=3 pkgdesc="Mock/Stub/Spy library for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://flexmock.readthedocs.io' -msys2_repository_url="https://github.com/flexmock/flexmock" -license=('spdx:BSD-2-Clause') +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-runner") -source=("https://github.com/flexmock/flexmock/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +options=('staticlibs' 'strip' '!debug') +source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/flexmock/flexmock/archive/${pkgver}.tar.gz") sha512sums=('58c84317fb687fd708db7c909fe7109b8b9c37a932fd1a46c9f62d28bbcc56a807b35a6790bf1393289f85fdffdfa2367f7ccc05bff260a167731471a50d2685') prepare() { - rm -rf "python-build-${MSYSTEM}" | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf "python-build-${CARCH}" | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-freetype-py/PKGBUILD b/mingw-w64-python-freetype-py/PKGBUILD index 2d6bf7309d9bd..5dfe76131dc53 100644 --- a/mingw-w64-python-freetype-py/PKGBUILD +++ b/mingw-w64-python-freetype-py/PKGBUILD @@ -7,11 +7,11 @@ pkgver=2.4.0 pkgrel=2 pkgdesc="Freetype python bindings (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/rougier/freetype-py' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: freetype-py' ) +url='https://github.com/rougier/freetype-py' license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-freetype") diff --git a/mingw-w64-python-frozenlist/PKGBUILD b/mingw-w64-python-frozenlist/PKGBUILD index 3c2677803a815..84233110cc0f1 100644 --- a/mingw-w64-python-frozenlist/PKGBUILD +++ b/mingw-w64-python-frozenlist/PKGBUILD @@ -7,14 +7,14 @@ pkgver=1.4.1 pkgrel=1 pkgdesc="A list-like structure which implements collections.abc.MutableSequence (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://frozenlist.aio-libs.org/' -msys2_repository_url='https://github.com/aio-libs/frozenlist' -msys2_changelog_url='https://frozenlist.aio-libs.org/en/latest/changes/' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-frozenlist' 'pypi: frozenlist' ) +msys2_repository_url='https://github.com/aio-libs/frozenlist' +msys2_changelog_url='https://frozenlist.aio-libs.org/en/latest/changes/' +url='https://frozenlist.aio-libs.org/' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" diff --git a/mingw-w64-python-func-timeout/PKGBUILD b/mingw-w64-python-func-timeout/PKGBUILD index d555591965b79..c48d76d7be13e 100644 --- a/mingw-w64-python-func-timeout/PKGBUILD +++ b/mingw-w64-python-func-timeout/PKGBUILD @@ -8,33 +8,34 @@ pkgver=4.3.5 pkgrel=3 pkgdesc='Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/kata198/func_timeout" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: func-timeout' ) -license=('spdx:MIT') +url="https://github.com/kata198/func_timeout" +license=('MIT') makedepends=( "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm" ) -source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "$_pyname-$pkgver" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "$_pyname-$pkgver" "python-build-${CARCH}" export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-fypp/PKGBUILD b/mingw-w64-python-fypp/PKGBUILD index 72cdd9567abf6..64d6fcc3cec97 100644 --- a/mingw-w64-python-fypp/PKGBUILD +++ b/mingw-w64-python-fypp/PKGBUILD @@ -7,13 +7,13 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=3.2 pkgrel=1 pkgdesc="Python powered Fortran preprocessor (mingw-w64)" -arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://fypp.readthedocs.io/" +license=('spdx:BSD-2-Clause') +arch=('any') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: fypp' ) -license=('spdx:BSD-2-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" diff --git a/mingw-w64-python-google-apitools/PKGBUILD b/mingw-w64-python-google-apitools/PKGBUILD index 2ab648b03953b..cac87827607df 100644 --- a/mingw-w64-python-google-apitools/PKGBUILD +++ b/mingw-w64-python-google-apitools/PKGBUILD @@ -7,18 +7,19 @@ pkgver=0.5.32 pkgrel=2 pkgdesc="client libraries for humans (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/google/apitools' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: google-apitools' ) +url='https://github.com/google/apitools' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-httplib2" "${MINGW_PACKAGE_PREFIX}-python-fasteners" "${MINGW_PACKAGE_PREFIX}-python-oauth2client" "${MINGW_PACKAGE_PREFIX}-python-six") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") +makedepends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") sha256sums=('c3763e52289f61e21c41d5531e20fbda9cc8484a088b8686fd460770db8bad13') diff --git a/mingw-w64-python-gssapi/PKGBUILD b/mingw-w64-python-gssapi/PKGBUILD index 293e6607dd076..68a5f3e415370 100644 --- a/mingw-w64-python-gssapi/PKGBUILD +++ b/mingw-w64-python-gssapi/PKGBUILD @@ -10,9 +10,9 @@ pkgver=1.8.3 pkgrel=1 pkgdesc="A python interface to RFC 2743/2744 (plus common extensions) (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64') -url='https://github.com/pythongssapi/python-gssapi' -license=('spdx:ISC') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') +url='https://github.com/pythongssapi/${_realname}' +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-decorator" "${MINGW_PACKAGE_PREFIX}-python-six" @@ -20,7 +20,8 @@ depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-cython0") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") -source=("https://github.com/pythongssapi/python-gssapi/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz" +options=('staticlibs' 'strip' '!debug') +source=("${_realname}-${pkgver}.tar.gz::https://github.com/pythongssapi/python-gssapi/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz" 001-use-distutils-from-stdlib.patch) sha256sums=('3f250cbc636c7d934e7ae5127af4681fbe4b5daba05568ff109c38c443a76476' 'f042e9e98a8be163e15b815d058d82e787afc1f382296693f560a4b0fce4b882') diff --git a/mingw-w64-python-influxdb/PKGBUILD b/mingw-w64-python-influxdb/PKGBUILD index b2b60b1a1f936..d25cf81beeaf6 100644 --- a/mingw-w64-python-influxdb/PKGBUILD +++ b/mingw-w64-python-influxdb/PKGBUILD @@ -5,14 +5,14 @@ pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=5.3.1 pkgrel=3 -pkgdesc='Python client for InfluxDB (mingw-w64)' +pkgdesc='Python client for InfluxDB' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/influxdata/influxdb-python" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: influxdb' ) -license=('spdx:MIT') +url="https://github.com/influxdata/influxdb-python" +license=('MIT') depends=( "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-dateutil" diff --git a/mingw-w64-python-iocapture/PKGBUILD b/mingw-w64-python-iocapture/PKGBUILD index 47cf644d59d94..223bdc494a2ea 100644 --- a/mingw-w64-python-iocapture/PKGBUILD +++ b/mingw-w64-python-iocapture/PKGBUILD @@ -10,36 +10,40 @@ pkgver=0.1.2 pkgrel=4 pkgdesc="Capture stdout, stderr easily (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url='https://github.com/oinume/iocapture' -license=('spdx:MIT') +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-runner" "${MINGW_PACKAGE_PREFIX}-python-flexmock" "${MINGW_PACKAGE_PREFIX}-python-pytest-cov" "${MINGW_PACKAGE_PREFIX}-python-six") -source=("https://github.com/oinume/iocapture/archive/$pkgver/${_realname}-$pkgver.tar.gz") +options=('staticlibs' 'strip' '!debug') +source=("${_realname}-$pkgver.tar.gz"::"https://github.com/oinume/iocapture/archive/$pkgver.tar.gz") sha256sums=('57056d1a99a9c584ae2bb23a1aa855292fd2bcc01a8a6ad5467d7ca2e739d31b') prepare() { cd "${srcdir}" - rm -rf "python-build-${MSYSTEM}" | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf "python-build-${CARCH}" | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + + # Set version for setuptools_scm + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py pytest } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ diff --git a/mingw-w64-python-jinja2-time/PKGBUILD b/mingw-w64-python-jinja2-time/PKGBUILD index e6f103091ca31..3c9d6c3b0231e 100644 --- a/mingw-w64-python-jinja2-time/PKGBUILD +++ b/mingw-w64-python-jinja2-time/PKGBUILD @@ -8,13 +8,13 @@ pkgver=0.2.0 pkgrel=4 pkgdesc='Jinja2 Extension for Dates and Times (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/hackebrot/jinja2-time" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-jinja-time' 'pypi: jinja2-time' ) -license=('spdx:MIT') +url="https://github.com/hackebrot/jinja2-time" +license=('MIT') depends=( "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-jinja" @@ -23,22 +23,24 @@ depends=( makedepends=( "${MINGW_PACKAGE_PREFIX}-python-setuptools" ) -source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_pyname//_/-}-$pkgver" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_pyname//_/-}-$pkgver" "python-build-${CARCH}" + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-jmespath/PKGBUILD b/mingw-w64-python-jmespath/PKGBUILD index 5e0ff693f122a..03c7343f12088 100644 --- a/mingw-w64-python-jmespath/PKGBUILD +++ b/mingw-w64-python-jmespath/PKGBUILD @@ -7,35 +7,34 @@ pkgver=1.0.1 pkgrel=2 pkgdesc='A query language for JSON (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://github.com/jmespath/jmespath" -license=('spdx:MIT') +license=('Apache') depends=("${MINGW_PACKAGE_PREFIX}-python") +checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose" "${MINGW_PACKAGE_PREFIX}-python-py") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest" - "${MINGW_PACKAGE_PREFIX}-python-pytest-cov" - "${MINGW_PACKAGE_PREFIX}-python-hypothesis") source=("https://github.com/jmespath/jmespath.py/archive/$pkgver.tar.gz") sha256sums=('6a02470b1716ec7a32abe89a873a4795c41c938468225f8a53d860980ec9e3c6') -prepare() { +prepare() { cd "$srcdir" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}.py-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}.py-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } check() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" LC_CTYPE=en_US.utf8 ${MINGW_PREFIX}/bin/nosetests || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-jupyter-packaging/PKGBUILD b/mingw-w64-python-jupyter-packaging/PKGBUILD index 0f2a141ec4709..eb665410e161d 100644 --- a/mingw-w64-python-jupyter-packaging/PKGBUILD +++ b/mingw-w64-python-jupyter-packaging/PKGBUILD @@ -7,11 +7,11 @@ pkgver=0.12.3 pkgrel=2 pkgdesc="Jupyter Packaging Utilities. (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/jupyter/jupyter-packaging' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: jupyter-packaging' ) +url='https://github.com/jupyter/jupyter-packaging' license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-packaging" @@ -27,6 +27,7 @@ source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realna sha256sums=('9d9b2b63b97ffd67a8bc5391c32a421bc415b264a32c99e4d8d8dd31daae9cf4') build() { + msg "Python build for ${MSYSTEM}" cd "${srcdir}" cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" @@ -34,12 +35,14 @@ build() { } check() { + msg "Python test for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m pytest } package() { + msg "Python install for ${MSYSTEM}" cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=" \ diff --git a/mingw-w64-python-kiwisolver/PKGBUILD b/mingw-w64-python-kiwisolver/PKGBUILD index 01be49647d7eb..7c8235bf1efc1 100644 --- a/mingw-w64-python-kiwisolver/PKGBUILD +++ b/mingw-w64-python-kiwisolver/PKGBUILD @@ -10,7 +10,7 @@ pkgver=1.4.5 pkgrel=1 pkgdesc="A fast implementation of the Cassowary constraint solver (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/nucleic/kiwi' license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") @@ -21,7 +21,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest" "${MINGW_PACKAGE_PREFIX}-python-pytest-runner") -source=("https://github.com/nucleic/kiwi/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("${_realname}-${pkgver}.tar.gz::https://github.com/nucleic/kiwi/archive/${pkgver}.tar.gz") sha256sums=('2f3df2625993276a67a3ad312959f9c8333e23dfda0b7e5464b4927d34be6faa') prepare() { diff --git a/mingw-w64-python-license-expression/PKGBUILD b/mingw-w64-python-license-expression/PKGBUILD index 8016570266afc..7584f45c21803 100644 --- a/mingw-w64-python-license-expression/PKGBUILD +++ b/mingw-w64-python-license-expression/PKGBUILD @@ -7,11 +7,11 @@ pkgver=30.2.0 pkgrel=1 pkgdesc="comprehensive utility library to parse, compare, simplify and normalize license expressions (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/nexB/license-expression' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: license-expression' ) +url='https://github.com/nexB/license-expression' license=('spdx:Apache-2.0') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-boolean.py") diff --git a/mingw-w64-python-milc/PKGBUILD b/mingw-w64-python-milc/PKGBUILD index 1f633d09a26c7..8402ca851a3f6 100644 --- a/mingw-w64-python-milc/PKGBUILD +++ b/mingw-w64-python-milc/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.8.0 pkgrel=1 pkgdesc="Opinionated Batteries-Included Python 3 CLI Framework (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://milc.clueboard.co' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: milc' ) -license=('spdx:MIT') +url='https://milc.clueboard.co' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-appdirs" "${MINGW_PACKAGE_PREFIX}-python-argcomplete" diff --git a/mingw-w64-python-passlib/PKGBUILD b/mingw-w64-python-passlib/PKGBUILD index 13f870a1bb622..de9b74db80a9d 100644 --- a/mingw-w64-python-passlib/PKGBUILD +++ b/mingw-w64-python-passlib/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.7.4 pkgrel=1 pkgdesc="A password hashing library for Python (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://passlib.readthedocs.io/" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: passlib' ) -license=('spdx:BSD-3-Clause') +url="https://passlib.readthedocs.io/" +license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python") optdepends=(#"${MINGW_PACKAGE_PREFIX}-python-fastpbkdf2: accelerate PBKDF2-based hashes" #"${MINGW_PACKAGE_PREFIX}-python-scrypt: accelerate SCrypt hashes" diff --git a/mingw-w64-python-pdm-pep517/PKGBUILD b/mingw-w64-python-pdm-pep517/PKGBUILD index d5b8b35c2b0d3..967e23cb398a7 100644 --- a/mingw-w64-python-pdm-pep517/PKGBUILD +++ b/mingw-w64-python-pdm-pep517/PKGBUILD @@ -7,12 +7,12 @@ pkgver=1.1.4 pkgrel=2 pkgdesc="A PEP 517 backend for PDM that supports PEP 621 metadata (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/pdm-project/pdm-pep517' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: pdm-pep517' ) -license=('spdx:MIT') +url='https://github.com/pdm-project/pdm-pep517' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-cerberus" "${MINGW_PACKAGE_PREFIX}-python-license-expression" diff --git a/mingw-w64-python-py/PKGBUILD b/mingw-w64-python-py/PKGBUILD index e12c636a1e1ea..f4be2c48ea24a 100644 --- a/mingw-w64-python-py/PKGBUILD +++ b/mingw-w64-python-py/PKGBUILD @@ -10,17 +10,17 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgdesc='library with cross-python path, ini-parsing, io, code, log facilities (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://pylib.readthedocs.io/' -msys2_repository_url="https://github.com/pytest-dev/py" -license=('spdx:MIT') +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-iniconfig" "${MINGW_PACKAGE_PREFIX}-python-apipkg") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") -source=("https://github.com/pytest-dev/py/archive/${pkgver}/${_realname}-${pkgver}.tar.gz") +options=('staticlibs' 'strip' '!debug') +source=("${_realname}-${pkgver}.tar.gz::https://github.com/pytest-dev/py/archive/${pkgver}.tar.gz") sha256sums=('73845c6278da21cebd41d90e363da84aa93e9dd3485d00f7ced540fedbd41054') prepare() { @@ -29,25 +29,28 @@ prepare() { cp ${_realname}-${pkgver}/LICENSE ${_realname}-${pkgver}/py/LICENSE rm -r py-${pkgver}/py/_vendored_packages - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" export LC_CTYPE=en_US.UTF-8 export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } + check() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python test for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed" } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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 diff --git a/mingw-w64-python-pytest-forked/PKGBUILD b/mingw-w64-python-pytest-forked/PKGBUILD index 75a7181b2d911..0e260c50a18de 100644 --- a/mingw-w64-python-pytest-forked/PKGBUILD +++ b/mingw-w64-python-pytest-forked/PKGBUILD @@ -10,7 +10,7 @@ pkgver=1.6.0 pkgrel=1 pkgdesc="run tests in isolated forked subprocesses (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/pytest-dev/pytest-forked' license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" diff --git a/mingw-w64-python-pytest-localserver/PKGBUILD b/mingw-w64-python-pytest-localserver/PKGBUILD index 260a0c8597b91..1c248a3b0d47b 100644 --- a/mingw-w64-python-pytest-localserver/PKGBUILD +++ b/mingw-w64-python-pytest-localserver/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.8.1 pkgrel=1 pkgdesc='py.test plugin to test server connections locally (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url="https://github.com/pytest-dev/pytest-localserver" +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: python-pytest-localserver' 'pypi: pytest-localserver' ) +url="https://github.com/pytest-dev/pytest-localserver" license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python-pytest" "${MINGW_PACKAGE_PREFIX}-python-werkzeug" diff --git a/mingw-w64-python-rlpycairo/PKGBUILD b/mingw-w64-python-rlpycairo/PKGBUILD index 8871c36d9fa3e..65d2f72292988 100644 --- a/mingw-w64-python-rlpycairo/PKGBUILD +++ b/mingw-w64-python-rlpycairo/PKGBUILD @@ -8,11 +8,11 @@ pkgver=0.2.0 pkgrel=2 pkgdesc="Plugin backend renderer for reportlab.graphics.renderPM (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://www.reportlab.com/' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') msys2_references=( 'pypi: rlPyCairo' ) +url='https://www.reportlab.com/' license=('BSD') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-cairo" diff --git a/mingw-w64-python-stack-data/PKGBUILD b/mingw-w64-python-stack-data/PKGBUILD index 4eefaf28792d5..7f6e80a5942d5 100644 --- a/mingw-w64-python-stack-data/PKGBUILD +++ b/mingw-w64-python-stack-data/PKGBUILD @@ -7,12 +7,12 @@ pkgver=0.6.3 pkgrel=1 pkgdesc="Extract data from python stack frames and tracebacks for informative displays (mingw-w64)" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') -url='https://github.com/alexmojaki/stack_data' +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: stack-data' ) -license=('spdx:MIT') +url='https://github.com/alexmojaki/stack_data' +license=('MIT') depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-executing" "${MINGW_PACKAGE_PREFIX}-python-asttokens" diff --git a/mingw-w64-python-three-merge/PKGBUILD b/mingw-w64-python-three-merge/PKGBUILD index 89fa73fc52b09..e7816ead46418 100644 --- a/mingw-w64-python-three-merge/PKGBUILD +++ b/mingw-w64-python-three-merge/PKGBUILD @@ -7,30 +7,31 @@ pkgver=0.1.1 pkgrel=3 pkgdesc='Simple library for merging two strings with respect to a base one (mingw-w64)' arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') +license=('BSD') url='https://github.com/spyder-ide/three-merge' -license=('spdx:MIT') depends=( - ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-diff-match-patch) makedepends=( + ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-setuptools) -source=("https://github.com/spyder-ide/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +source=("https://github.com/spyder-ide/${_realname}/archive/v${pkgver}.tar.gz") sha256sums=('b6ab2231fd349cdf03be5be04f28c1d59d5a475f7396dcf8fd8b0597981d113e') prepare() { cd "${srcdir}" - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" + rm -rf python-build-${CARCH} | true + cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" } build() { - cd "${srcdir}/python-build-${MSYSTEM}" + msg "Python build for ${CARCH}" + cd "${srcdir}/python-build-${CARCH}" ${MINGW_PREFIX}/bin/python setup.py build } package() { - cd "${srcdir}/python-build-${MSYSTEM}" + cd "${srcdir}/python-build-${CARCH}" 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