[arch-commits] Commit in flake8/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jun 9 04:52:32 UTC 2020
Date: Tuesday, June 9, 2020 @ 04:52:30
Author: felixonmars
Revision: 640648
archrelease: copy trunk to community-any
Added:
flake8/repos/community-any/PKGBUILD
(from rev 640647, flake8/trunk/PKGBUILD)
Deleted:
flake8/repos/community-any/PKGBUILD
----------+
PKGBUILD | 144 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 72 insertions(+), 72 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-09 04:52:14 UTC (rev 640647)
+++ PKGBUILD 2020-06-09 04:52:30 UTC (rev 640648)
@@ -1,72 +0,0 @@
-# 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>
-
-pkgbase=flake8
-pkgname=(flake8 python2-flake8)
-pkgver=3.8.2
-pkgrel=1
-epoch=1
-pkgdesc="The modular source code checker: pep8, pyflakes and co"
-arch=('any')
-url="http://flake8.pycqa.org"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyflakes' 'python2-pyflakes'
- 'python-pycodestyle' 'python2-pycodestyle' 'python-mccabe' 'python2-mccabe'
- 'python2-enum34' 'python2-configparser' 'python-entrypoints' 'python2-entrypoints'
- 'python2-functools32' 'python2-typing')
-checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/flake8/archive/$pkgver.tar.gz")
-sha512sums=('438308b1dd79b6c42a55d598d60d579f5ca0516e6e48362c4a24dacf48ad580f700ed0dd907d267504a0ffd6ef0ffe5333bf0d170d8d40ee5520b5a429467db3')
-
-prepare() {
- sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
- cp -a flake8-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/flake8-$pkgver
- python setup.py build
-
- cd "$srcdir"/flake8-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd "$srcdir"/flake8-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-
- cd "$srcdir"/flake8-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
-}
-
-package_flake8() {
- depends=('python-pyflakes' 'python-mccabe' 'python-pycodestyle' 'python-entrypoints')
- provides=('flake8-python3')
- replaces=('flake8-python3')
- conflicts=('flake8-python3')
-
- cd "$srcdir"/flake8-$pkgver
- python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-flake8() {
- depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle' 'python2-entrypoints'
- 'python2-enum34' 'python2-configparser' 'python2-functools32' 'python2-typing')
- provides=('flake8-python2')
- replaces=('flake8-python2')
- conflicts=('flake8-python2')
-
- cd "$srcdir"/flake8-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
- mv "$pkgdir"/usr/bin/flake8{,-python2}
- 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 640647, flake8/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-09 04:52:30 UTC (rev 640648)
@@ -0,0 +1,72 @@
+# 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>
+
+pkgbase=flake8
+pkgname=(flake8 python2-flake8)
+pkgver=3.8.3
+pkgrel=1
+epoch=1
+pkgdesc="The modular source code checker: pep8, pyflakes and co"
+arch=('any')
+url="http://flake8.pycqa.org"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyflakes' 'python2-pyflakes'
+ 'python-pycodestyle' 'python2-pycodestyle' 'python-mccabe' 'python2-mccabe'
+ 'python2-enum34' 'python2-configparser' 'python-entrypoints' 'python2-entrypoints'
+ 'python2-functools32' 'python2-typing')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/flake8/archive/$pkgver.tar.gz")
+sha512sums=('911adf5d33930d4c81e0407ec99cd08685a49fc8c99bc080f685e117d750069ac9f9692d8673144f461ceccd0624141a5600367d1ffdffedd87ef318fc0b7ad0')
+
+prepare() {
+ sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
+ cp -a flake8-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/flake8-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/flake8-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/flake8-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
+
+ cd "$srcdir"/flake8-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_flake8() {
+ depends=('python-pyflakes' 'python-mccabe' 'python-pycodestyle' 'python-entrypoints')
+ provides=('flake8-python3')
+ replaces=('flake8-python3')
+ conflicts=('flake8-python3')
+
+ cd "$srcdir"/flake8-$pkgver
+ python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-flake8() {
+ depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle' 'python2-entrypoints'
+ 'python2-enum34' 'python2-configparser' 'python2-functools32' 'python2-typing')
+ provides=('flake8-python2')
+ replaces=('flake8-python2')
+ conflicts=('flake8-python2')
+
+ cd "$srcdir"/flake8-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+ mv "$pkgdir"/usr/bin/flake8{,-python2}
+ 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