diff --git a/mingw-w64-python-oslo-serialization/PKGBUILD b/mingw-w64-python-oslo-serialization/PKGBUILD index d4fafe31af..56d45df44e 100644 --- a/mingw-w64-python-oslo-serialization/PKGBUILD +++ b/mingw-w64-python-oslo-serialization/PKGBUILD @@ -6,26 +6,22 @@ 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.0.1 -pkgrel=2 +pkgver=4.3.0 +pkgrel=1 pkgdesc="Oslo Serialization library (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') url='https://pypi.org/project/oslo.serialization/' license=('Apache') -depends=("${MINGW_PACKAGE_PREFIX}-python" - "${MINGW_PACKAGE_PREFIX}-python-six" - "${MINGW_PACKAGE_PREFIX}-python-pbr" - "${MINGW_PACKAGE_PREFIX}-python-babel" +depends=("${MINGW_PACKAGE_PREFIX}-python-pbr" "${MINGW_PACKAGE_PREFIX}-python-msgpack" "${MINGW_PACKAGE_PREFIX}-python-oslo-utils" "${MINGW_PACKAGE_PREFIX}-python-pytz") makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") -checkdepends=("${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.serialization/archive/${pkgver}.tar.gz") -sha512sums=('cae1b6341499d58fbdbae7a5120b49382a6c9230eeacfc6b408d78e5f72f1ff6983d16eea2c390a1af397fc8319c2f17be8f35306aa298d021f169fb751688cb') +sha512sums=('197e39b9f076d0351a0d5c03bf47fb3b278ec66c188f56dcf68781313e024dbcb16fa10681f9c95b136a48efa739e6acffc889699566b079393a6f0f9c3b64ea') prepare() { cd "${srcdir}/oslo.serialization-${pkgver}" @@ -43,7 +39,7 @@ build() { check() { cd "${srcdir}/oslo.serialization-${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() { @@ -52,4 +48,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" }