python-prometheus-client: update to 0.17.0
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
ee23dfea95
commit
2b355a2e87
@@ -6,41 +6,44 @@ 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=0.16.0
|
||||
pkgver=0.17.0
|
||||
pkgrel=1
|
||||
pkgdesc="Prometheus instrumentation library for Python applications (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url="https://github.com/prometheus/client_python"
|
||||
license=('APACHE')
|
||||
license=('spdx:Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-wheel")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-twisted")
|
||||
source=("${_realname}-${pkgver}.tar.gz::https://github.com/prometheus/client_python/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('4541efd404e34d56303ba9539a41ba3b378c1ab309a2866aafc7a3a26b5589ae')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
|
||||
sha256sums=('9c3b26f1535945e85b8934fb374678d263137b78ef85f305b1156c7c881cd11b')
|
||||
|
||||
prepare() {
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
cp -r "client_python-${pkgver}" "python-build-${MSYSTEM}"
|
||||
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py test || warning "Tests failed"
|
||||
${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
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
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user