Skip to content

Commit bfa186c

Browse files
committed
update to new python-build system
1 parent 104f0ab commit bfa186c

File tree

3 files changed

+424
-297
lines changed

3 files changed

+424
-297
lines changed

PKGBUILD

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33

44
pkgname=py3status-http-monitor
55
pkgdesc="Python module for py3status to monitor http services"
6-
pkgver=0.1.4
6+
pkgver=0.1.5
77
pkgrel=1
88
arch=('any')
99
license=('MIT')
10-
depends=('python' 'py3status')
10+
depends=('python' 'py3status' 'python-poetry' 'python-build' 'python-installer')
1111
makedepends=('python-setuptools')
1212
url="https://github.com/mcgillij/py3status-http-monitor"
13-
source=("https://github.com/mcgillij/py3status-http-monitor/releases/download/0.1.4/py3status-http-monitor-0.1.4.tar.gz")
14-
md5sums=('666bc96b49619ca34d7b5ce82245c0dd')
13+
source=("py3status_http_monitor-$pkgver.tar.gz")
14+
#source=("https://github.com/mcgillij/py3status-http-monitor/releases/download/0.1.4/py3status-http-monitor-0.1.4.tar.gz")
15+
md5sums=('13b5f03931ed4dc2ba11146c34197945')
1516

1617
build() {
17-
cd "$srcdir/$pkgname-$pkgver"
18-
python setup.py build
18+
cd "$srcdir/py3status_http_monitor-$pkgver"
19+
python -m build --wheel --no-isolation
1920
}
2021

2122
package() {
22-
cd "$srcdir/$pkgname-$pkgver"
23-
python setup.py install --prefix=/usr --root="$pkgdir"
23+
cd "$srcdir/py3status_http_monitor-$pkgver"
24+
python -m installer --destdir="$pkgdir" dist/*.whl
2425
}

0 commit comments

Comments
 (0)