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

David Runge dvzrv at gemini.archlinux.org
Wed Jul 20 09:34:04 UTC 2022


    Date: Wednesday, July 20, 2022 @ 09:34:04
  Author: dvzrv
Revision: 1254834

upgpkg: python-pytest-subtesthack 0.2.0-1: Upgrade to 0.2.0.

Remove unnecessary quotes and curly braces.
Switch to PEP517.

Modified:
  python-pytest-subtesthack/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-20 09:33:42 UTC (rev 1254833)
+++ PKGBUILD	2022-07-20 09:34:04 UTC (rev 1254834)
@@ -3,29 +3,27 @@
 # Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
 
 _name=pytest-subtesthack
-pkgname=python-${_name}
-pkgver=0.1.2
-pkgrel=3
+pkgname=python-$_name
+pkgver=0.2.0
+pkgrel=1
 pkgdesc="A hack to explicitly set up and tear down fixtures"
-arch=('any')
+arch=(any)
 url="https://github.com/untitaker/pytest-subtesthack"
-license=('custom')
-depends=('python-pytest')
-makedepends=('python-setuptools')
-source=("${url}/archive/${pkgver}/${_name}-${pkgver}.tar.gz")
-sha512sums=('ddb7b0c27f912bec31e58ddc54930e229755df8980d146c861f7f1c766ae742b4f1552117d89638bdbd443f22890262320a56565954ebc6deeae6184f459a5a8')
-b2sums=('f1f5a052f9418732de4a97ff438d280d177860439e667e29ff0d0503740e009c88046b5ba859884e5fa9e958ea1be7388d7fc6838c19e44075ab0ef757ee41c7')
+license=(custom)
+depends=(python-pytest)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+source=($url/archive/$pkgver/$_name-$pkgver.tar.gz)
+sha512sums=('8b4f5ee2b07a8bcfa11934f5f207b9418810a708be7b8ccc0f19a4a4b979bbc60e993f0f2a5158482bc0162364bc96717e1ecda6743832ba121dfef9cfca9dd5')
+b2sums=('e4e34ff73c7dfe92bed94d40fef168a3420879ba4a28eccb66ae7549d895b0ca7885be57178a6403661b57578f55ac3c5dbcaa090d2b658da770e0cabb0f3a75')
 
 build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
-  install -vDm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
-  install -vDm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.rst
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+  install -vDm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.rst
 }



More information about the arch-commits mailing list