[arch-commits] Commit in flake8/repos (2 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Thu Oct 14 14:18:28 UTC 2021
Date: Thursday, October 14, 2021 @ 14:18:28
Author: jelle
Revision: 1030106
archrelease: copy trunk to community-testing-any
Added:
flake8/repos/community-testing-any/
flake8/repos/community-testing-any/PKGBUILD
(from rev 1030105, flake8/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: flake8/repos/community-testing-any/PKGBUILD (from rev 1030105, flake8/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-10-14 14:18:28 UTC (rev 1030106)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+# Contributor: spider-mario <spidermario at free.fr>
+# Contributor: Allen Li <darkfeline at abagofapples.com>
+
+pkgname=flake8
+pkgver=4.0.1
+pkgrel=1
+epoch=1
+pkgdesc="The modular source code checker: pep8, pyflakes and co"
+arch=('any')
+url="http://flake8.pycqa.org"
+license=('MIT')
+depends=('python-pyflakes' 'python-mccabe' 'python-pycodestyle' 'python-entrypoints')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
+source=("https://github.com/PyCQA/flake8/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('6a3749b6c23bc2417351829340ec212c3305bd6a740cb77d4309296031abaa150ccff64b456e847540eb05cf635ed65025d4835d8663af6c8903491034998313')
+
+prepare() {
+ sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
+
+ sed -i '/error/a \ ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' flake8-$pkgver/pytest.ini
+}
+
+build() {
+ cd flake8-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd flake8-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" pytest
+}
+
+package() {
+ cd flake8-$pkgver
+ python setup.py install --root="$pkgdir" --prefix=/usr --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