diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-01-03 14:15:32 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-01-03 14:15:32 +0000 |
commit | 333c52ebad60075b2330f9e8c31c3cf86951bfff (patch) | |
tree | d0caff8decce53b2587a76feacec2ec291bcedd8 /devel/py-flakes | |
parent | 473ab685950aa094334860c243371b0a0133a947 (diff) | |
download | pkgsrc-333c52ebad60075b2330f9e8c31c3cf86951bfff.tar.gz |
Import py27-flakes-0.5.0nb1 as devel/py-flakes from wip/py-flakes
Pyflakes is similar to PyChecker in scope, but differs in that it does
not execute the modules to check them. This is both safer and faster,
although it does not perform as many checks. Unlike PyLint, Pyflakes
checks only for logical errors in programs; it does not perform any
checks on style
Diffstat (limited to 'devel/py-flakes')
-rw-r--r-- | devel/py-flakes/DESCR | 5 | ||||
-rw-r--r-- | devel/py-flakes/Makefile | 24 | ||||
-rw-r--r-- | devel/py-flakes/PLIST | 35 | ||||
-rw-r--r-- | devel/py-flakes/distinfo | 6 | ||||
-rw-r--r-- | devel/py-flakes/patches/patch-setup.py | 21 |
5 files changed, 91 insertions, 0 deletions
diff --git a/devel/py-flakes/DESCR b/devel/py-flakes/DESCR new file mode 100644 index 00000000000..b6d96079b99 --- /dev/null +++ b/devel/py-flakes/DESCR @@ -0,0 +1,5 @@ +Pyflakes is similar to PyChecker in scope, but differs in that it does +not execute the modules to check them. This is both safer and faster, +although it does not perform as many checks. Unlike PyLint, Pyflakes +checks only for logical errors in programs; it does not perform any +checks on style diff --git a/devel/py-flakes/Makefile b/devel/py-flakes/Makefile new file mode 100644 index 00000000000..d0e29f3efc6 --- /dev/null +++ b/devel/py-flakes/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2013/01/03 14:15:32 ryoon Exp $ +# + +DISTNAME= pyflakes-0.5.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//} +PKGREVISION= 1 +CATEGORIES= devel python +MASTER_SITES= http://pypi.python.org/packages/source/p/pyflakes/ + +MAINTAINER= kamel.derouiche@gmail.com +HOMEPAGE= https://launchpad.net/pyflakes +COMMENT= Passive checker of Python programs +LICENSE= mit + +USE_LANGUAGES= # none + +PYDISTUTILSPKG= yes +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} + +post-extract: + ${MV} ${WRKSRC}/bin/pyflakes ${WRKSRC}/bin/pyflakes${PYVERSSUFFIX} + +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-flakes/PLIST b/devel/py-flakes/PLIST new file mode 100644 index 00000000000..f8f4d91a687 --- /dev/null +++ b/devel/py-flakes/PLIST @@ -0,0 +1,35 @@ +@comment $NetBSD: PLIST,v 1.1 2013/01/03 14:15:32 ryoon Exp $ +bin/pyflakes${PYVERSSUFFIX} +${PYSITELIB}/pyflakes/__init__.py +${PYSITELIB}/pyflakes/__init__.pyc +${PYSITELIB}/pyflakes/__init__.pyo +${PYSITELIB}/pyflakes/checker.py +${PYSITELIB}/pyflakes/checker.pyc +${PYSITELIB}/pyflakes/checker.pyo +${PYSITELIB}/pyflakes/messages.py +${PYSITELIB}/pyflakes/messages.pyc +${PYSITELIB}/pyflakes/messages.pyo +${PYSITELIB}/pyflakes/scripts/__init__.py +${PYSITELIB}/pyflakes/scripts/__init__.pyc +${PYSITELIB}/pyflakes/scripts/__init__.pyo +${PYSITELIB}/pyflakes/scripts/pyflakes.py +${PYSITELIB}/pyflakes/scripts/pyflakes.pyc +${PYSITELIB}/pyflakes/scripts/pyflakes.pyo +${PYSITELIB}/pyflakes/test/__init__.py +${PYSITELIB}/pyflakes/test/__init__.pyc +${PYSITELIB}/pyflakes/test/__init__.pyo +${PYSITELIB}/pyflakes/test/harness.py +${PYSITELIB}/pyflakes/test/harness.pyc +${PYSITELIB}/pyflakes/test/harness.pyo +${PYSITELIB}/pyflakes/test/test_imports.py +${PYSITELIB}/pyflakes/test/test_imports.pyc +${PYSITELIB}/pyflakes/test/test_imports.pyo +${PYSITELIB}/pyflakes/test/test_other.py +${PYSITELIB}/pyflakes/test/test_other.pyc +${PYSITELIB}/pyflakes/test/test_other.pyo +${PYSITELIB}/pyflakes/test/test_script.py +${PYSITELIB}/pyflakes/test/test_script.pyc +${PYSITELIB}/pyflakes/test/test_script.pyo +${PYSITELIB}/pyflakes/test/test_undefined_names.py +${PYSITELIB}/pyflakes/test/test_undefined_names.pyc +${PYSITELIB}/pyflakes/test/test_undefined_names.pyo diff --git a/devel/py-flakes/distinfo b/devel/py-flakes/distinfo new file mode 100644 index 00000000000..8e0149def25 --- /dev/null +++ b/devel/py-flakes/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2013/01/03 14:15:32 ryoon Exp $ + +SHA1 (pyflakes-0.5.0.tar.gz) = ce3688e26297e518c8b922209c3bece33d512352 +RMD160 (pyflakes-0.5.0.tar.gz) = f64abbfc19fc5dcd7ae94f4574c46c311d94dcf6 +Size (pyflakes-0.5.0.tar.gz) = 17635 bytes +SHA1 (patch-setup.py) = 7bf428f4dc4fc826569b2d8bd4792d44e8358e9f diff --git a/devel/py-flakes/patches/patch-setup.py b/devel/py-flakes/patches/patch-setup.py new file mode 100644 index 00000000000..6580e17e58d --- /dev/null +++ b/devel/py-flakes/patches/patch-setup.py @@ -0,0 +1,21 @@ +$NetBSD: patch-setup.py,v 1.1 2013/01/03 14:15:32 ryoon Exp $ + +--- setup.py.orig 2012-09-10 00:13:07.000000000 +0100 ++++ setup.py 2012-09-10 00:17:04.000000000 +0100 +@@ -2,6 +2,7 @@ + # Copyright 2005-2011 Divmod, Inc. See LICENSE file for details + + from distutils.core import setup ++import sys + + setup( + name="pyflakes", +@@ -14,7 +15,7 @@ + maintainer_email="divmod-dev@lists.launchpad.net", + url="https://launchpad.net/pyflakes", + packages=["pyflakes", "pyflakes.scripts", "pyflakes.test"], +- scripts=["bin/pyflakes"], ++ scripts=["bin/pyflakes"+sys.version[0:3]], + long_description="""Pyflakes is program to analyze Python programs and detect various errors. It + works by parsing the source file, not importing it, so it is safe to use on + modules with side effects. It's also much faster.""", |