upgpkg: prometheus-smbmc-exporter 0.1.0-6
Switch to python-build/install.
This commit is contained in:
parent
5db6282c31
commit
05524eff45
1 changed files with 10 additions and 8 deletions
|
@ -3,13 +3,13 @@
|
|||
pkgname=prometheus-smbmc-exporter
|
||||
_pkgname=smbmc-exporter
|
||||
pkgver=0.1.0
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="Prometheus exporter for smbmc metrics"
|
||||
arch=('any')
|
||||
url="https://github.com/grawlinson/smbmc-exporter"
|
||||
license=('GPL')
|
||||
depends=('python-smbmc' 'python-click' 'python-prometheus_client')
|
||||
makedepends=('python-pip' 'python-poetry')
|
||||
makedepends=('python-build' 'python-install' 'python-poetry-core')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||
'systemd.service'
|
||||
'sysusers.conf')
|
||||
|
@ -19,7 +19,11 @@ b2sums=('ae5c63b4e7b19746dfb250c9db1a942133ebb826b315e194d396c4aea478bf5e7587b31
|
|||
|
||||
build() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
poetry build --format wheel
|
||||
|
||||
python -m build \
|
||||
--wheel \
|
||||
--skip-dependency-check \
|
||||
--no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
|
@ -30,11 +34,9 @@ package() {
|
|||
cd "$_pkgname-$pkgver"
|
||||
|
||||
# package
|
||||
PIP_CONFIG_FILE=/dev/null pip install \
|
||||
--isolated \
|
||||
--root="$pkgdir" \
|
||||
--ignore-installed \
|
||||
--no-deps \
|
||||
python -m install \
|
||||
--optimize=1 \
|
||||
--destdir="$pkgdir" \
|
||||
dist/*.whl
|
||||
|
||||
# license
|
||||
|
|
Loading…
Reference in a new issue