From 71b7b6776856912d50a0b9a85a8ea2a1dc7eb75c Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 30 Mar 2014 20:51:55 +0200 Subject: Release version 0.8.1 --- NEWS.txt | 3 ++- README.rst | 4 ++++ pyflakes/__init__.py | 2 +- pyflakes/checker.py | 2 ++ setup.cfg | 2 ++ 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 setup.cfg diff --git a/NEWS.txt b/NEWS.txt index 482ee68..f2cb215 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -1,4 +1,4 @@ -UNRELEASED: +0.8.1 (2014-03-30): - Detect the declared encoding in Python 3. - Do not report redefinition of import in a local scope, if the global name is used elsewhere in the module. @@ -8,6 +8,7 @@ UNRELEASED: unpacking `(a, b) = func()`. - Correctly detect when an imported module is used in default arguments of a method, when the method and the module use the same name. + - Distribute a universal wheel file. 0.8.0 (2014-03-22): - Adapt for the AST in Python 3.4. diff --git a/README.rst b/README.rst index 0c5bd04..c2626a1 100644 --- a/README.rst +++ b/README.rst @@ -30,3 +30,7 @@ Share your feedback and ideas: `subscribe to the mailing-list .. image:: https://api.travis-ci.org/pyflakes/pyflakes.png :target: https://travis-ci.org/pyflakes/pyflakes :alt: Build status + +.. image:: https://pypip.in/wheel/pyflakes/badge.png + :target: https://pypi.python.org/pypi/pyflakes + :alt: Wheel Status diff --git a/pyflakes/__init__.py b/pyflakes/__init__.py index 71722ee..43619bf 100644 --- a/pyflakes/__init__.py +++ b/pyflakes/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.8.1a0' +__version__ = '0.8.1' diff --git a/pyflakes/checker.py b/pyflakes/checker.py index a39b32a..8f290f6 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -128,6 +128,7 @@ class Importation(Definition): possibly including multiple dotted components. @type fullName: C{str} """ + def __init__(self, name, source): self.fullName = name self.redefined = [] @@ -178,6 +179,7 @@ class ExportBinding(Binding): Names which are imported and not otherwise used but appear in the value of C{__all__} will not have an unused import warning reported for them. """ + def __init__(self, name, source, scope): if '__all__' in scope and isinstance(source, ast.AugAssign): self.names = list(scope['__all__'].names) diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5e40900 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[wheel] +universal = 1 -- cgit v1.2.1