[Python-modules-commits] [pylint-flask] 01/10: Import pylint-flask_0.3.orig.tar.xz
Daniel Stender
danstender-guest at moszumanska.debian.org
Thu Mar 17 16:23:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
danstender-guest pushed a commit to branch master
in repository pylint-flask.
commit 278ab3e00920b41e91e015835d083b4e9d87ca5a
Author: Daniel Stender <stender at debian.org>
Date: Thu Mar 17 16:48:05 2016 +0100
Import pylint-flask_0.3.orig.tar.xz
---
PKG-INFO | 6 ++++--
pylint_flask.egg-info/PKG-INFO | 19 -------------------
pylint_flask.egg-info/SOURCES.txt | 8 --------
pylint_flask.egg-info/dependency_links.txt | 1 -
pylint_flask.egg-info/requires.txt | 4 ----
pylint_flask.egg-info/top_level.txt | 1 -
pylint_flask/__init__.py | 9 ++++-----
setup.cfg | 7 ++-----
setup.py | 12 +++++++-----
test/input/__init__.py | 0
test/input/func_noerror_flask_2_ext.py | 7 +++++++
test/input/func_noerror_flask_ext_bare_as.py | 6 ++++++
test/input/func_noerror_flask_ext_long.py | 5 +++++
test/input/func_noerror_flask_ext_long_sandwhich.py | 5 +++++
test/input/func_noerror_flask_ext_wtf.py | 5 +++++
test/test_func.py | 10 +++++-----
16 files changed, 50 insertions(+), 55 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index 2e6b097..4dc76f8 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: pylint-flask
-Version: 0.1
-Summary: pylint-flask is a Pylint plugin to aid Pylint in recognising and understandingerrors caused when using Flask
+Version: 0.3
+Summary: pylint-flask is a Pylint plugin to aid Pylint in recognizing and understanding errors caused when using Flask
Home-page: https://github.com/jschaf/pylint-flask
Author: Joe Schafer
Author-email: joe at jschaf.com
License: GPLv2
+Download-URL: https://github.com/jschaf/pylint-flask/tarball/v0.3
Description: UNKNOWN
Keywords: pylint flask plugin
Platform: UNKNOWN
@@ -17,3 +18,4 @@ Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/pylint_flask.egg-info/PKG-INFO b/pylint_flask.egg-info/PKG-INFO
deleted file mode 100644
index 2e6b097..0000000
--- a/pylint_flask.egg-info/PKG-INFO
+++ /dev/null
@@ -1,19 +0,0 @@
-Metadata-Version: 1.1
-Name: pylint-flask
-Version: 0.1
-Summary: pylint-flask is a Pylint plugin to aid Pylint in recognising and understandingerrors caused when using Flask
-Home-page: https://github.com/jschaf/pylint-flask
-Author: Joe Schafer
-Author-email: joe at jschaf.com
-License: GPLv2
-Description: UNKNOWN
-Keywords: pylint flask plugin
-Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
-Classifier: Environment :: Console
-Classifier: Intended Audience :: Developers
-Classifier: Operating System :: Unix
-Classifier: Topic :: Software Development :: Quality Assurance
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
diff --git a/pylint_flask.egg-info/SOURCES.txt b/pylint_flask.egg-info/SOURCES.txt
deleted file mode 100644
index befce4d..0000000
--- a/pylint_flask.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-setup.py
-pylint_flask/__init__.py
-pylint_flask.egg-info/PKG-INFO
-pylint_flask.egg-info/SOURCES.txt
-pylint_flask.egg-info/dependency_links.txt
-pylint_flask.egg-info/requires.txt
-pylint_flask.egg-info/top_level.txt
-test/test_func.py
\ No newline at end of file
diff --git a/pylint_flask.egg-info/dependency_links.txt b/pylint_flask.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/pylint_flask.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/pylint_flask.egg-info/requires.txt b/pylint_flask.egg-info/requires.txt
deleted file mode 100644
index a098a37..0000000
--- a/pylint_flask.egg-info/requires.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-pylint-plugin-utils>=0.2.1
-pylint>=1.0
-astroid>=1.0
-logilab-common>=0.60.0
\ No newline at end of file
diff --git a/pylint_flask.egg-info/top_level.txt b/pylint_flask.egg-info/top_level.txt
deleted file mode 100644
index 48c216e..0000000
--- a/pylint_flask.egg-info/top_level.txt
+++ /dev/null
@@ -1 +0,0 @@
-pylint_flask
diff --git a/pylint_flask/__init__.py b/pylint_flask/__init__.py
index a5800b2..83311a7 100644
--- a/pylint_flask/__init__.py
+++ b/pylint_flask/__init__.py
@@ -6,9 +6,8 @@ import re
def register(_):
- '''register is expected by pylint for plugins, but we are creating a transform,
- not registering a checker.
-
+ '''register is expected by pylint for plugins, but we are creating a
+ transform, not registering a checker.
'''
pass
@@ -135,8 +134,8 @@ def transform_flask_bare_import(node):
def is_flask_bare_import(node):
'''Check if an import is like `import flask.ext.admin as admin`.'''
- return (not is_transformed(node)
- and any(['flask.ext' in pair[0] for pair in node.names]))
+ return (not is_transformed(node) and
+ any(['flask.ext' in pair[0] for pair in node.names]))
MANAGER.register_transform(nodes.Import,
transform_flask_bare_import,
diff --git a/setup.cfg b/setup.cfg
index 00bb0ae..224a779 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,2 @@
-[egg_info]
-tag_date = 0
-tag_svn_revision = 0
-tag_build =
-
+[metadata]
+description-file = README.md
\ No newline at end of file
diff --git a/setup.py b/setup.py
index b2ffec3..dad8932 100644
--- a/setup.py
+++ b/setup.py
@@ -1,14 +1,13 @@
# -*- coding: utf-8 -*-
from distutils.core import setup
-from setuptools import find_packages
import sys
-_version = '0.1'
-_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
+_version = '0.3'
+_packages = ['pylint_flask']
-_short_description = "pylint-flask is a Pylint plugin to aid Pylint in recognising and understanding" \
- "errors caused when using Flask"
+_short_description = "pylint-flask is a Pylint plugin to aid Pylint in \
+recognizing and understanding errors caused when using Flask"
_classifiers = (
@@ -20,6 +19,7 @@ _classifiers = (
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5'
)
@@ -52,6 +52,8 @@ setup(
packages=_packages,
install_requires=_install_requires,
license='GPLv2',
+ download_url=("https://github.com/jschaf/pylint-flask/tarball/v" +
+ str(_version)),
classifiers=_classifiers,
keywords='pylint flask plugin'
)
diff --git a/test/input/__init__.py b/test/input/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/test/input/func_noerror_flask_2_ext.py b/test/input/func_noerror_flask_2_ext.py
new file mode 100644
index 0000000..364bd00
--- /dev/null
+++ b/test/input/func_noerror_flask_2_ext.py
@@ -0,0 +1,7 @@
+'''Ensure that pylint finds the exported methods from flask.ext.'''
+
+from flask.ext import wtf, bcrypt
+
+MYFORM = wtf.Form
+
+YOLO = bcrypt.Bcrypt
diff --git a/test/input/func_noerror_flask_ext_bare_as.py b/test/input/func_noerror_flask_ext_bare_as.py
new file mode 100644
index 0000000..5a198ce
--- /dev/null
+++ b/test/input/func_noerror_flask_ext_bare_as.py
@@ -0,0 +1,6 @@
+'''Ensure that pylint finds the exported methods from flask.ext.'''
+
+import flask.ext.admin as admin, flask.ext.wtf as wtf
+
+A = admin
+W = wtf
diff --git a/test/input/func_noerror_flask_ext_long.py b/test/input/func_noerror_flask_ext_long.py
new file mode 100644
index 0000000..c30f898
--- /dev/null
+++ b/test/input/func_noerror_flask_ext_long.py
@@ -0,0 +1,5 @@
+'''Ensure that pylint finds the exported methods from flask.ext.'''
+
+from flask.ext.wtf import Form
+
+MYFORM = Form
diff --git a/test/input/func_noerror_flask_ext_long_sandwhich.py b/test/input/func_noerror_flask_ext_long_sandwhich.py
new file mode 100644
index 0000000..3bbb512
--- /dev/null
+++ b/test/input/func_noerror_flask_ext_long_sandwhich.py
@@ -0,0 +1,5 @@
+'''Ensure that pylint finds the exported methods from flask.ext.'''
+
+from flask.ext.admin.model import InlineFormAdmin
+
+MYFORM = InlineFormAdmin
diff --git a/test/input/func_noerror_flask_ext_wtf.py b/test/input/func_noerror_flask_ext_wtf.py
new file mode 100644
index 0000000..0c26194
--- /dev/null
+++ b/test/input/func_noerror_flask_ext_wtf.py
@@ -0,0 +1,5 @@
+'''Ensure that pylint finds the exported methods from flask.ext.'''
+
+from flask.ext import wtf
+
+MYFORM = wtf.Form
diff --git a/test/test_func.py b/test/test_func.py
index e72e095..f588097 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -1,6 +1,5 @@
import os
import unittest
-from logilab.common import testlib
from pylint.testutils import make_tests, LintTestUsingFile, cb_test_gen, linter
@@ -9,7 +8,8 @@ HERE = os.path.dirname(os.path.abspath(__file__))
linter.load_plugin_modules(['pylint_flask'])
# remove required __revision__
linter.global_set_option('required-attributes', ())
-
+# We need to ensure that pylint_flask works for multiple modules on one line
+linter.global_set_option('disable', "multiple-imports")
def module_exists(module_name):
try:
@@ -35,9 +35,9 @@ def suite():
if module_exists('rest_framework'):
test_list += tests('external_drf', '')
- return testlib.TestSuite(
- [unittest.makeSuite(test, suiteClass=testlib.TestSuite)
+ return unittest.TestSuite(
+ [unittest.makeSuite(test, suiteClass=unittest.TestSuite)
for test in test_list])
if __name__ == '__main__':
- testlib.unittest_main(defaultTest='suite')
+ unittest.main(defaultTest='suite')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pylint-flask.git
More information about the Python-modules-commits
mailing list