Skip to content

Commit 910044e

Browse files
authored
python-wheel: Update to 0.46.3 (#27533)
upstream stopped vendoring packaging
1 parent df32fd7 commit 910044e

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

mingw-w64-python-wheel/PKGBUILD

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
_realname=wheel
44
pkgbase=mingw-w64-python-${_realname}
55
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
6-
pkgver=0.45.1
7-
pkgrel=2
6+
pkgver=0.46.3
7+
pkgrel=1
88
pkgdesc="A built-package format for Python (mingw-w64)"
99
arch=('any')
1010
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
@@ -21,18 +21,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
2121
"${MINGW_PACKAGE_PREFIX}-python-flit-core")
2222
options=('!strip')
2323
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
24-
sha256sums=('661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729')
25-
26-
prepare() {
27-
cd "${srcdir}"/${_realname}-${pkgver}
28-
29-
# revert https://github.com/pypa/wheel/pull/365
30-
rm -r src/wheel/vendored
31-
sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py
32-
sed -i 's/from .vendored.packaging import version as _packaging_version/from packaging import version as _packaging_version/' src/wheel/bdist_wheel.py
33-
sed -i 's/from .vendored.packaging.requirements import Requirement/from packaging.requirements import Requirement/' src/wheel/metadata.py
34-
sed -i 's/from wheel.vendored.packaging import tags/from packaging import tags/' tests/test_bdist_wheel.py
35-
}
24+
sha256sums=('e3e79874b07d776c40bd6033f8ddf76a7dad46a7b8aa1b2787a83083519a1803')
3625

3726
build() {
3827
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"

0 commit comments

Comments
 (0)