oslo-db: update to 11.2.0

Fix dependencies and test command.
Install license file.
This commit is contained in:
Biswapriyo Nath
2022-02-25 09:59:37 +05:30
committed by GitHub
parent 2ef1a42ff3
commit 1122dc11e9

View File

@@ -9,16 +9,14 @@ 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=11.1.0
pkgver=11.2.0
pkgrel=1
pkgdesc="OpenStack Database Pattern Library (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url='https://pypi.python.org/pypi/oslo.db'
license=('LICENSE')
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-alembic"
"${MINGW_PACKAGE_PREFIX}-python-debtcollector"
"${MINGW_PACKAGE_PREFIX}-python-oslo-i18n"
@@ -35,7 +33,7 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-mock"
"${MINGW_PACKAGE_PREFIX}-python-oslo-context")
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/openstack/oslo.db/archive/${pkgver}.tar.gz")
sha512sums=('d01b53767166d3ef4a3e0da493cef9028034b8fe4bae5cf4c4aa34e4fbbb5f80b5dee46e8d6daa9c9dc45408251b43fe8a5a5389cfad712199ff6a00ef591931')
sha512sums=('804eed23b2d974411b7a737fc7e08da5efda42ffc1b9b0b7534e3e8a867a70c2044b8fe13b0ea81c9cdc55ca47218718651a3d67b75d905c6025221c096519ac')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
@@ -73,7 +71,7 @@ build() {
check() {
cd "${srcdir}/oslo.db-${pkgver}"
PYTHON=python ${MINGW_PREFIX}/bin/python setup.py testr || warning "tests failed"
PYTHON=${MINGW_PREFIX}/bin/python ${MINGW_PREFIX}/bin/stestr run || warning "Tests failed"
}
package() {
@@ -82,4 +80,6 @@ package() {
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${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"
}