Date: Wednesday, March 17, 2021 @ 10:37:38 Author: felixonmars Revision: 893265
archrelease: copy trunk to community-any Added: flake8/repos/community-any/PKGBUILD (from rev 893264, flake8/trunk/PKGBUILD) Deleted: flake8/repos/community-any/PKGBUILD ----------+ PKGBUILD | 90 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-03-17 10:37:20 UTC (rev 893264) +++ PKGBUILD 2021-03-17 10:37:38 UTC (rev 893265) @@ -1,45 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx> -# Contributor: spider-mario <spiderma...@free.fr> -# Contributor: Allen Li <darkfeline at abagofapples.com> - -pkgname=flake8 -pkgver=3.8.4 -pkgrel=4 -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=('de2e22c2fa759870efe877e70a28a7b831648c719fe0ec2df953667932c9ff191d9268094454d0c8d9ed00235dd75a17166efebe5b7417f71c1b38207a4c5962') - -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: Copied: flake8/repos/community-any/PKGBUILD (from rev 893264, flake8/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-03-17 10:37:38 UTC (rev 893265) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx> +# Contributor: spider-mario <spiderma...@free.fr> +# Contributor: Allen Li <darkfeline at abagofapples.com> + +pkgname=flake8 +pkgver=3.9.0 +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=('3d9853bbc33d5e0108dafc3ce51ab29587fb307627efe7dbd0771e01230c560e65e45c30fe8e96a5c9d3495318b794a90c436bcab3796bc6fda5defe3136c31b') + +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: