Date: Tuesday, January 31, 2023 @ 19:52:54
Author: felixonmars
Revision: 1391494
upgpkg: python-pytest-enabler 2.1.0-2
Modified:
python-pytest-enabler/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 19:51:57 UTC (rev 1391493)
+++ PKGBUILD 2023-01-31 19:52:54 UTC (rev 1391494)
@@ -2,39 +2,38 @@
pkgname=python-pytest-enabler
pkgver=2.1.0
-pkgrel=1
+_commit=6ab4e23679afca2c7c4338d38b47b3c18996bc4e
+pkgrel=2
pkgdesc='Enable installed pytest plugins'
arch=('any')
license=('MIT')
url='https://github.com/jaraco/pytest-enabler'
depends=('python-jaraco.context' 'python-jaraco.functools' 'python-pytest'
'python-toml')
-makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
checkdepends=('python-pytest-mypy')
-source=("https://github.com/jaraco/pytest-enabler/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+source=("git+https://github.com/jaraco/pytest-enabler.git#commit=$_commit"
"https://files.pythonhosted.org/packages/source/t/types-toml/types-toml-0.10.1.tar.gz")
-sha512sums=('bacba03b41101f5eaca01a7d8f495c00fc4154dc43a35b0730d75248eb5ebc65222d7a2ea8519b88dd4992086a417354b78b6c16bc555b2475751be3f0eb7127'
+sha512sums=('SKIP'
'001757f956dd3af0688a6544b90ba415b26ab3128e0fbb238f4dfaf0bab6b5795d5598bcc9422d854ea235acbc9e78b245c17f9ebc9ad9251ae3c0722b382812')
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
prepare() {
- cd pytest-enabler-$pkgver
+ cd pytest-enabler
# mypy needs all type stubs :/
ln -s ../types-toml-0.10.1/toml-stubs .
}
build() {
- cd pytest-enabler-$pkgver
+ cd pytest-enabler
python -m build --wheel --no-isolation
}
check() {
- cd pytest-enabler-$pkgver
+ cd pytest-enabler
PYTHONPATH="$PWD" pytest
}
package() {
- cd pytest-enabler-$pkgver
+ cd pytest-enabler
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}