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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 21:27:10 UTC 2022


    Date: Monday, August 29, 2022 @ 21:27:09
  Author: felixonmars
Revision: 1286212

upgpkg: python-pytest-runner 6.0.0-1

Modified:
  python-pytest-runner/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-29 21:27:00 UTC (rev 1286211)
+++ PKGBUILD	2022-08-29 21:27:09 UTC (rev 1286212)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-pytest-runner
-pkgver=5.3.2
+pkgver=6.0.0
 pkgrel=1
 pkgdesc="Invoke py.test as distutils command with dependency resolution"
 arch=('any')
@@ -8,34 +8,25 @@
 license=('MIT')
 url="https://github.com/pytest-dev/pytest-runner"
 depends=('python-pytest' 'python-setuptools')
-makedepends=('python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-virtualenv'
-              'python-pytest-flake8' 'python-pytest-enabler')
-source=("https://github.com/pytest-dev/pytest-runner/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        $pkgname-python310.patch::https://github.com/pytest-dev/pytest-runner/pull/59.patch)
-sha512sums=('39363dbc999c9905eeab5a91a33dcd295b466b9aa6f5303b222f8a394259a830d5cf3ce5880c944c29a0f55cd2a953e152b2e182f2354df7fed6758dc4e41b6e'
-            '71fcdc8c55f7743ae66dad89ccfadf7650d1a8395f34b2107543a80653924915372e033395e669cb3901eb75b137419a03f3b5b08a5d1a5f27e13a1f5de62a74')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest-virtualenv' 'python-pytest-enabler')
+source=("https://github.com/pytest-dev/pytest-runner/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('8628f4b2ef24a1bcd3294efcfad289cb96949b0b1176e64b2033b8767c5fd217acdf763a3cdb137af6043e0dacd64a76d0a104674dc88464fbb473df37d24c61')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-prepare() {
-  cd pytest-runner-$pkgver
-  patch -Np1 -i ../$pkgname-python310.patch
-}
-
 build() {
   cd pytest-runner-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd pytest-runner-$pkgver
-  python setup.py egg_info
   PYTHONPATH="$PWD" pytest
 }
 
 package() {
   cd pytest-runner-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list