oslo-log: update to 4.6.1

Fix dependencies and test command.
Install license file.
This commit is contained in:
Biswapriyo Nath
2022-02-25 10:03:17 +05:30
committed by GitHub
parent 1122dc11e9
commit e86f134759

View File

@@ -6,31 +6,26 @@ 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.4.0
pkgrel=3
pkgver=4.6.1
pkgrel=1
pkgdesc="Oslo Logging Library (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url='https://pypi.python.org/pypi/oslo.log'
license=('Apache')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-six"
"${MINGW_PACKAGE_PREFIX}-python-pbr"
depends=("${MINGW_PACKAGE_PREFIX}-python-pbr"
"${MINGW_PACKAGE_PREFIX}-python-oslo-config"
"${MINGW_PACKAGE_PREFIX}-python-oslo-context"
"${MINGW_PACKAGE_PREFIX}-python-oslo-i18n"
"${MINGW_PACKAGE_PREFIX}-python-oslo-utils"
"${MINGW_PACKAGE_PREFIX}-python-oslo-serialization"
"${MINGW_PACKAGE_PREFIX}-python-debtcollector"
"${MINGW_PACKAGE_PREFIX}-python-dateutil"
"${MINGW_PACKAGE_PREFIX}-python-monotonic")
"${MINGW_PACKAGE_PREFIX}-python-dateutil")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-mock"
"${MINGW_PACKAGE_PREFIX}-python-oslotest"
"${MINGW_PACKAGE_PREFIX}-python-testrepository")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-oslotest")
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/openstack/oslo.log/archive/${pkgver}.tar.gz")
sha512sums=('a8cf7f529ce73f72ad8ae41a29cd9f606b9a193116d4ba6b9fab4a9df7079637d908dbaf9aff57ff8724c254ecff0cca63df4a0a240dbd0abae8d60c0a1cc8ac')
sha512sums=('6cace83680b01a311d2bb5befbc3fa19cc7795363f202b5d702acb7a82505db9b1e92419ce4537f2be739f111b399468ac741f3672a6ff443be0017427372d7b')
prepare() {
cd "${srcdir}/oslo.log-${pkgver}"
@@ -49,7 +44,7 @@ build() {
check() {
cd "${srcdir}/oslo.log-${pkgver}"
${MINGW_PREFIX}/bin/python setup.py testr || warning "Tests failed"
PYTHON=${MINGW_PREFIX}/bin/python ${MINGW_PREFIX}/bin/stestr run || warning "Tests failed"
}
package() {
@@ -59,6 +54,8 @@ package() {
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
--root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
sed -e '1 { s/^#!.*$// }' -i ${_f}
done