python-pytest-runner: update to 6.0.0

This commit is contained in:
مهدي شينون (Mehdi Chinoune) 2022-12-02 09:44:09 +01:00 committed by GitHub
parent 1cb4047ac0
commit db239ae6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,19 +3,19 @@
_realname=pytest-runner
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=5.3.2
pkgver=6.0.0
pkgrel=1
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
license=('MIT')
url="https://github.com/pytest-dev/pytest-runner"
depends=('python-pytest')
makedepends=('python-setuptools-scm')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=("https://pypi.org/packages/source/p/pytest-runner/pytest-runner-$pkgver.tar.gz")
sha512sums=('477a307233667be56a5df2c8094eb6ac9235939ee78bbaea79e5d132888774705167cf4cef980c67939a6bfdbaf17396b8f76646aad8b07bb200e200a81440c2')
sha512sums=('a3393cc283ba13fa53c76f501d7b8e27735c45ebcd09c263c277472d89e488cf94b704affae9b810e696e8d8fdf6b5acb39193c37fca6dab16cd24a3839e0389')
prepare() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
@ -23,11 +23,11 @@ prepare() {
build() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py build
/usr/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1
/usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}