Skip to content

Commit 1dac9ca

Browse files
committed
update to new python-build
1 parent 8ed792a commit 1dac9ca

File tree

3 files changed

+538
-447
lines changed

3 files changed

+538
-447
lines changed

PKGBUILD

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
pkgname=py3status-github-notifications
44
poetryname=py3status_github_notifications
55
pkgdesc="Python module for py3status to keep track of your Github notifications."
6-
pkgver=0.1.7
6+
pkgver=0.1.8
77
pkgrel=1
88
arch=('any')
99
license=('MIT')
10-
makedepends=('python-setuptools')
10+
makedepends=('python-build' 'python-poetry' 'python-installer' 'python-setuptools')
1111
url="https://github.com/mcgillij/py3status-github-notifications"
12-
source=("https://github.com/mcgillij/py3status-github-notifications/releases/download/$pkgver/$poetryname-$pkgver.tar.gz")
13-
md5sums=('1d2e74dc9f83cb38a4ce2e67e5c9c0a8')
12+
source=("$poetryname-$pkgver.tar.gz")
13+
#source=("https://github.com/mcgillij/py3status-github-notifications/releases/download/$pkgver/$poetryname-$pkgver.tar.gz")
14+
md5sums=('f01657417439fe1ed96c2ffe1cbae4e0')
1415

1516
build() {
1617
cd "$srcdir/$poetryname-$pkgver"
17-
python setup.py build
18+
python -m build --wheel --no-isolation
1819
}
1920

2021
package() {
2122
cd "$srcdir/$poetryname-$pkgver"
22-
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
23+
python -m installer --destdir="$pkgdir" dist/*.whl
2324
}

0 commit comments

Comments
 (0)