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=prometheus-smbmc-exporter
|
||||||
_pkgname=smbmc-exporter
|
_pkgname=smbmc-exporter
|
||||||
pkgver=0.1.0
|
pkgver=0.1.0
|
||||||
pkgrel=5
|
pkgrel=6
|
||||||
pkgdesc="Prometheus exporter for smbmc metrics"
|
pkgdesc="Prometheus exporter for smbmc metrics"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/grawlinson/smbmc-exporter"
|
url="https://github.com/grawlinson/smbmc-exporter"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('python-smbmc' 'python-click' 'python-prometheus_client')
|
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"
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||||
'systemd.service'
|
'systemd.service'
|
||||||
'sysusers.conf')
|
'sysusers.conf')
|
||||||
|
@ -19,7 +19,11 @@ b2sums=('ae5c63b4e7b19746dfb250c9db1a942133ebb826b315e194d396c4aea478bf5e7587b31
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_pkgname-$pkgver"
|
cd "$_pkgname-$pkgver"
|
||||||
poetry build --format wheel
|
|
||||||
|
python -m build \
|
||||||
|
--wheel \
|
||||||
|
--skip-dependency-check \
|
||||||
|
--no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -30,11 +34,9 @@ package() {
|
||||||
cd "$_pkgname-$pkgver"
|
cd "$_pkgname-$pkgver"
|
||||||
|
|
||||||
# package
|
# package
|
||||||
PIP_CONFIG_FILE=/dev/null pip install \
|
python -m install \
|
||||||
--isolated \
|
--optimize=1 \
|
||||||
--root="$pkgdir" \
|
--destdir="$pkgdir" \
|
||||||
--ignore-installed \
|
|
||||||
--no-deps \
|
|
||||||
dist/*.whl
|
dist/*.whl
|
||||||
|
|
||||||
# license
|
# license
|
||||||
|
|
Loading…
Reference in a new issue