Files
MSYS2-packages/python-pytest-runner/PKGBUILD
مهدي شينون (Mehdi Chinoune) db239ae6f1 python-pytest-runner: update to 6.0.0
2022-12-02 14:14:09 +05:30

34 lines
1.1 KiB
Bash

# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
_realname=pytest-runner
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
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-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=('a3393cc283ba13fa53c76f501d7b8e27735c45ebcd09c263c277472d89e488cf94b704affae9b810e696e8d8fdf6b5acb39193c37fca6dab16cd24a3839e0389')
prepare() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}