Date: Saturday, April 8, 2023 @ 12:39:13
  Author: felixonmars
Revision: 1442345

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-pylint/repos/community-staging-any/
  python-pytest-pylint/repos/community-staging-any/PKGBUILD
    (from rev 1442344, python-pytest-pylint/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-pytest-pylint/repos/community-staging-any/PKGBUILD (from rev 
1442344, python-pytest-pylint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 12:39:13 UTC (rev 1442345)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_name=pytest-pylint
+pkgname=python-pytest-pylint
+pkgver=0.19.0
+pkgrel=3
+pkgdesc='pytest plugin to check source code with pylint'
+arch=('any')
+license=('MIT')
+url='https://github.com/carsongee/pytest-pylint'
+depends=('python-pytest' 'python-pylint' 'python-toml')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/carsongee/pytest-pylint/archive/v$pkgver.tar.gz";)
+sha512sums=('94503757bf774ffbba56687cda7689a95748fe437759e29868105bc5f639b03782308c8e86eae7236ab99188674de5596053da5c33ebd90c603e396504047996')
+
+prepare() {
+  # pytest-runner is certainly not required to build a wheel...
+  sed -e '/pytest-runner/d' -i $_name-$pkgver/setup.py
+}
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH"
+  pytest -vv --ignore test_dir/
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to