Skip to content
Snippets Groups Projects

Change to a PEP 517 based workflow

Merged loqs requested to merge (removed):pep517 into main
+ 8
3
@@ -10,7 +10,12 @@ arch=(any)
url="https://github.com/spyder-ide/qtpy/"
license=(MIT)
depends=(python-packaging)
makedepends=(python-setuptools)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
optdepends=('python-pyqt5: Qt5 Python bindings'
'python-pyqt6: Qt6 Python bindings'
'python-pyqt5-webengine: Qt5-WebEngine python bindings'
@@ -51,7 +56,7 @@ sha256sums=('e5f3ceaf3465b453f71cc0248fc85116ae5b3dfd76cbfd491409eb345a9f9df2')
build() {
cd ${_pkgname}-${pkgver}
python setup.py build
python -m build --wheel --no-isolation
}
check() {
@@ -62,6 +67,6 @@ check() {
package() {
cd ${_pkgname}-${pkgver}
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
Loading