[arch-commits] Commit in python-crashtest/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Feb 22 20:23:03 UTC 2022


    Date: Tuesday, February 22, 2022 @ 20:23:03
  Author: alerque
Revision: 1136150

upgpkg: python-crashtest 0.3.1-6; switch from dephell to pep517

Modified:
  python-crashtest/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++------------------------
 1 file changed, 17 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-22 20:21:47 UTC (rev 1136149)
+++ PKGBUILD	2022-02-22 20:23:03 UTC (rev 1136150)
@@ -4,39 +4,32 @@
 _pkgname=crashtest
 pkgname=python-crashtest
 pkgver=0.3.1
-pkgrel=5
-pkgdesc="supposedly makes exceptions handling and inspection easier"
-arch=('any')
+pkgrel=6
+pkgdesc='supposedly makes exceptions handling and inspection easier'
+arch=(any)
 url="https://github.com/sdispater/${_pkgname}"
-license=('MIT')
-depends=('python')
-makedepends=('python-dephell' 'python-setuptools')
-checkdepends=('python-pytest')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer}
+             python-poetry)
+checkdepends=(python-pytest)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
 sha256sums=('8070032b432b523ff7a6d03251f0553da1d0f7643a27cedc4cd7652e67e3b19e')
 b2sums=('b90465ee736ec0d9c378ed16327fe5bbddf19066a64a2a9d1c454f38eac5321235cafeb20756b2018e1dfea0e07726696084b8965a2543edc5e9fe0d79c33db1')
 
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    dephell deps convert --from pyproject.toml --to setup.py
-}
-
 build(){
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
+	cd "$_archive"
+	python -m build -wn
 }
 
 check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest
+	cd "$_archive"
+	python -m pytest
 }
 
 package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+	cd "$_archive"
+	python -m installer -d "${pkgdir}" dist/*.whl
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list