Skip to content

Commit

Permalink
poetry: backport fix to loosen platformdirs requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jan 6, 2024
1 parent d295faf commit 4e986ad
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
13 changes: 13 additions & 0 deletions mingw-w64-python-poetry/001-loosen-platformdirs-req.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/pyproject.toml b/pyproject.toml
index f1439527a53..c14c5d52edd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -47,7 +47,7 @@ keyring = "^24.0.0"
packaging = ">=20.5"
pexpect = "^4.7.0"
pkginfo = "^1.9.4"
-platformdirs = "^3.0.0"
+platformdirs = ">=3.0.0,<5"
pyproject-hooks = "^1.0.0"
requests = "^2.26"
requests-toolbelt = "^1.0.0"
14 changes: 11 additions & 3 deletions mingw-w64-python-poetry/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=poetry
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=1.7.1
pkgrel=1
pkgrel=2
pkgdesc="Python dependency management and packaging made easy (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand Down Expand Up @@ -38,10 +38,18 @@ depends=(
"${MINGW_PACKAGE_PREFIX}-python-trove-classifiers"
"${MINGW_PACKAGE_PREFIX}-python-virtualenv"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('b348a70e7d67ad9c0bd3d0ea255bc6df84c24cf4b16f8d104adb30b425d6ff32')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz"
"001-loosen-platformdirs-req.patch")
sha256sums=('b348a70e7d67ad9c0bd3d0ea255bc6df84c24cf4b16f8d104adb30b425d6ff32'
'0684749353d08eeb34f3d49c619b58d8923c93bd07df3bca1594cbb585e1de99')

prepare() {
cd "${_realname}-${pkgver}"

# https://github.com/python-poetry/poetry/pull/8668
patch -p1 -i "${srcdir}/001-loosen-platformdirs-req.patch"

cd "${srcdir}"
rm -rf python-build-${MSYSTEM} | true
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}"
}
Expand Down

0 comments on commit 4e986ad

Please sign in to comment.