[arch-commits] Commit in python-docutils-stubs/trunk (PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 17:42:36 UTC 2022
Date: Saturday, September 3, 2022 @ 17:42:36
Author: ffy00
Revision: 1292653
upgpkg: python-docutils-stubs 0.0.22-1
Modified:
python-docutils-stubs/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 17:39:30 UTC (rev 1292652)
+++ PKGBUILD 2022-09-03 17:42:36 UTC (rev 1292653)
@@ -9,7 +9,7 @@
url='https://github.com/tk0miya/docutils-stubs'
license=('custom:Unlicense')
depends=('python' 'python-docutils')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/tk0miya/docutils-stubs/1f13dcdbebb06bc742b797bc5765a70d734a7fbc/LICENSE')
sha512sums=('30aeac0f15c215abdb6eb42e0bf46e50f08f20befc7bebd7fa376e7f85813189ab71df583231c461539530b1d7da6fc263d75b24ff251c46d2dcb3163bd0116b'
@@ -18,17 +18,14 @@
build() {
cd $_pkgname-$pkgver
- python setup.py build
+ python -m build -nw
}
package() {
cd $_pkgname-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer -d "$pkgdir" dist/*.whl
- # remove docutils dependency pin
- sed -i '/docutils/d' "$pkgdir"/usr/lib/python*/site-packages/docutils_stubs-*.egg-info/requires.txt
-
install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list