python-oslo-concurrency: update to 4.5.1

This commit is contained in:
Biswapriyo Nath
2022-05-14 10:20:56 +05:30
committed by GitHub
parent c71b2640a7
commit 34e1f67682

View File

@@ -6,13 +6,13 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=4.5.0
pkgver=4.5.1
pkgrel=1
pkgdesc="OpenStack library for all concurrency-related code (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url='https://pypi.python.org/pypi/oslo.concurrency'
license=('Apache')
license=('spdx:Apache-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-python-pbr"
"${MINGW_PACKAGE_PREFIX}-python-oslo-config"
"${MINGW_PACKAGE_PREFIX}-python-oslo-i18n"
@@ -23,7 +23,7 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-oslotest"
"${MINGW_PACKAGE_PREFIX}-python-eventlet")
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz::https://github.com/openstack/oslo.concurrency/archive/${pkgver}.tar.gz")
sha512sums=('17322fc21d98f0821be20015abd6d1dc1d9af48c9669bc1c3b4f22e529fa49dfb741baae7282ec9f7312040b2227d1657fea4c76089e64fb83d66c9f89d9e78a')
sha512sums=('c3e1907df0133e9ec72161c8cb9b0c5af03a64446fc87a87ca81a8b9e99dcf983183a6f4b0bbcddaf9cec714cff247b0d497de7f78305c7f3e8862edf789d69b')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
@@ -48,8 +48,8 @@ prepare() {
cd "${srcdir}/oslo.concurrency-${pkgver}"
cd "${srcdir}"
rm -rf python-build-${CARCH} | true
cp -r "oslo.concurrency-${pkgver}" "python-build-${CARCH}"
rm -rf python-build-${MSYSTEM} | true
cp -r "oslo.concurrency-${pkgver}" "python-build-${MSYSTEM}"
# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
@@ -57,17 +57,17 @@ prepare() {
}
build() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
}
check() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
PYTHON=${MINGW_PREFIX}/bin/python ${MINGW_PREFIX}/bin/stestr run || warning "Tests failed"
}
package() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \