[arch-commits] Commit in python-pytest-flake8/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 11:26:14 UTC 2021
Date: Wednesday, December 1, 2021 @ 11:26:14
Author: foutrelis
Revision: 1059190
archrelease: copy trunk to community-staging-any
Added:
python-pytest-flake8/repos/community-staging-any/
python-pytest-flake8/repos/community-staging-any/PKGBUILD
(from rev 1059187, python-pytest-flake8/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-pytest-flake8/repos/community-staging-any/PKGBUILD (from rev 1059187, python-pytest-flake8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 11:26:14 UTC (rev 1059190)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-flake8
+pkgver=1.0.7
+pkgrel=2
+pkgdesc='pytest plugin to check FLAKE8 requirements'
+arch=('any')
+license=('MIT')
+url='https://github.com/tholo/pytest-flake8'
+depends=('python-pytest' 'flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz")
+sha512sums=('c71d08eefcafe5503a660d8495c3520a9ae26ba701095c13111b33dc420fed03a2cbffa889eef08488ab5254ed001fd43b3a4757ffa2011cc3b4bd80d078f3c1')
+
+prepare() {
+ sed -i 's/ignore = E128/ignore = E128 W605/' pytest-flake8-$pkgver/tox.ini
+}
+
+build() {
+ cd "$srcdir"/pytest-flake8-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-flake8-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test
+}
+
+package() {
+ cd pytest-flake8-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list