python-hacking: remove strict dependency on flake8 4.0.1

This commit is contained in:
مهدي شينون (Mehdi Chinoune)
2022-11-24 18:13:22 +01:00
parent 3ac26d9f00
commit feb19b0bac

View File

@@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=5.0.0
pkgrel=1
pkgrel=2
pkgdesc="OpenStack Hacking Guideline Enforcement (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
@@ -17,14 +17,13 @@ depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-flake8")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-pbr"
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz::https://github.com/openstack-dev/hacking/archive/${pkgver}.tar.gz")
sha512sums=('d698a2643d26e867b0eda47f4bd1c80be878a0ba2ef74595a38237ff3c49112bca541956b751291b6f691234eacf26c58dea151aaf40ab10cc70446a93f85fc6')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('ab35b208af3f147a6f959527331c3880ae41ac21ccceb6bfd68a84f4eb56e026')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
sed -e 's/flake8<3.9.0,/flake8/' -e 's/==/>=/' -i requirements.txt
sed -e 's|~=|>=|' -i requirements.txt
cd "${srcdir}"
rm -rf "python-build-${MSYSTEM}" | true