python-debtcollector: update to 2.5.0

* Fix dependencies.
* Use stestr for testing.
* Install license file.
This commit is contained in:
Biswapriyo Nath
2022-03-18 10:14:17 +05:30
committed by GitHub
parent 59fb22d45c
commit 67fc2348be

View File

@@ -6,23 +6,20 @@ 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=2.4.0
pkgver=2.5.0
pkgrel=1
pkgdesc="A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://docs.openstack.org/developer/debtcollector'
license=('Apache')
options=('staticlibs' 'strip' '!debug')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-six"
"${MINGW_PACKAGE_PREFIX}-python-pbr"
"${MINGW_PACKAGE_PREFIX}-python-babel"
"${MINGW_PACKAGE_PREFIX}-python-wrapt")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-oslotest")
depends=("${MINGW_PACKAGE_PREFIX}-python-wrapt")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-pbr"
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-stestr")
source=("${_realname}-${pkgver}.tar.gz::https://github.com/openstack/debtcollector/archive/${pkgver}.tar.gz")
sha512sums=('ba04507fb7579e63b0a03623b40df5b97fe24396589a2b88ba6bd1338b1934e004fe671bfbe32e7463ebfcab21191afc307beaadb270f96257f69d5cddb7fa53')
sha512sums=('a6f00eece3e5fa61feef39a4d10f82f81a2548eac06b2650b2caea2ee525ce886db0994053b64032adf06171d94dfb7f90af06acc56ddde76a62188ee8f4f9ae')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
@@ -62,7 +59,7 @@ build() {
check() {
msg "Python test for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py check
${MINGW_PREFIX}/bin/stestr run || warning "Tests failed"
}
package() {
@@ -70,4 +67,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"
}