* update python-flexmock to 0.12.1-1

This commit is contained in:
Alexander Baldeck 2024-05-10 18:12:09 +02:00
parent e9fcf059c6
commit 28574f8a7d

View File

@ -2,30 +2,30 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org> # Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-flexmock pkgname=python-flexmock
pkgver=0.12.0 pkgver=0.12.1
pkgrel=1 pkgrel=1
pkgdesc="Mock/Stub/Spy library for Python" pkgdesc="Mock/Stub/Spy library for Python"
arch=(any) arch=(any)
url="https://flexmock.readthedocs.io" url="https://flexmock.readthedocs.io"
license=('BSD-2-Clause') license=('BSD-2-Clause')
depends=('python') depends=('python')
makedepends=('python-build' 'python-installer' 'python-poetry-core') makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
checkdepends=('python-pytest' 'python-teamcity-messages' 'python-testtools' 'python-twisted') checkdepends=('python-pytest' 'python-teamcity-messages' 'python-testtools' 'python-twisted')
source=("https://github.com/flexmock/flexmock/archive/$pkgver/$pkgname-$pkgver.tar.gz") source=("git+https://github.com/flexmock/flexmock.git#tag=$pkgver")
sha512sums=('a157c5ccb88a1e00bac9124145f882e59633f406971df0940579a12b9e161a787790a0ce27664997faa6ddc7c8926122359bd5b31fae0d31c729e5ed140e745e') sha512sums=('841726bc48c5cf7e1007715252e41c84902a6d3f91271306ca0e6b519976c9066bc8bbe7e2f9e44e39209fc4057c42e80f4422a2f0b96e72dcca4063886d320d')
build() { build() {
cd flexmock-$pkgver cd flexmock
python -m build --wheel --skip-dependency-check --no-isolation python -m build --wheel --skip-dependency-check --no-isolation
} }
check() { check() {
cd flexmock-$pkgver cd flexmock
PYTHONPATH="$PWD/src" pytest -p flexmock._pytest_plugin PYTHONPATH="$PWD/src" pytest -p flexmock._pytest_plugin
} }
package() { package() {
cd flexmock-$pkgver cd flexmock
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file # Symlink license file