From ca5ea74620f72dcc807370587ad839074261e5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sat, 13 Jul 2024 14:13:30 +0300 Subject: [PATCH] flake 7.1.0 --- flake8/alr.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 flake8/alr.sh diff --git a/flake8/alr.sh b/flake8/alr.sh new file mode 100644 index 0000000..f268c4d --- /dev/null +++ b/flake8/alr.sh @@ -0,0 +1,42 @@ +name='flake8' +epoch='1' +version='7.1.0' +release='1' +desc='The modular source code checker: pep8, pyflakes and co' +homepage='https://flake8.pycqa.org' +maintainer="Евгений Храмов " +architectures=('all') +license=('MIT') +provides=('flake8') +conflicts=('flake8' 'flake8-git') + +deps=( + 'python3-pyflakes' + 'python3-mccabe' + 'python3-pycodestyle' + 'python3-entrypoints' +) + +build_deps=( + python3-setuptools +) + +sources=("https://github.com/PyCQA/flake8/archive/${version}/${name}-${version}.tar.gz") +checksums=('SKIP') + +prepare() { + sed -i -e 's/,<[0-9=.]*//' flake8-${version}/setup.cfg + + sed -i '/error/a \ ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' flake8-${version}/pytest.ini +} + +build() { + cd flake8-$version + python setup.py build +} + +package() { + cd flake8-$version + python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}