Commit 03a2e680 authored by Daniel Stender's avatar Daniel Stender

record new upstream branch created by importing pylint-common_0.2.2.orig.tar.xz and merge it

parents 465570d5 7e6084c5
Metadata-Version: 1.1
Name: pylint-common
Version: 0.2.1
Summary: pylint-common is a Pylint plugin to improve Pylint error analysis of thestandard Python library
Version: 0.2.2
Summary: pylint-common is a Pylint plugin to improve Pylint error analysis of the standard Python library
Home-page: https://github.com/landscapeio/pylint-common
Author: landscape.io
Author-email: code@landscape.io
......@@ -18,3 +18,4 @@ Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
# see git-dpm(1) from git-dpm package
128422e5e7dc608d7f46dc439ff5062745dbf24f
128422e5e7dc608d7f46dc439ff5062745dbf24f
128422e5e7dc608d7f46dc439ff5062745dbf24f
128422e5e7dc608d7f46dc439ff5062745dbf24f
pylint-common_0.2.1.orig.tar.gz
7532db31503c6c1e0303f506c8fd9c15cebbdd53
2266
7e6084c5bbb7e890eafa9f30d5f7e60cf1257974
7e6084c5bbb7e890eafa9f30d5f7e60cf1257974
7e6084c5bbb7e890eafa9f30d5f7e60cf1257974
7e6084c5bbb7e890eafa9f30d5f7e60cf1257974
pylint-common_0.2.2.orig.tar.xz
9b4141ea363098caccb2c4f441ee46efd3e9d13c
2296
debianTag="debian/%e%v"
patchedTag="patched/%e%v"
upstreamTag="upstream/%e%u"
......@@ -29,4 +29,9 @@ def allow_attribute_comments(chain, node):
def apply_augmentations(linter):
augment_visit(linter, BasicChecker.visit_discard, allow_attribute_comments)
if hasattr(BasicChecker, 'visit_expr'):
expr_meth = getattr(BasicChecker, 'visit_expr')
else:
expr_meth = getattr(BasicChecker, 'visit_discard')
augment_visit(linter, expr_meth, allow_attribute_comments)
# -*- coding: UTF-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
_version = '0.2.1'
_version = '0.2.2'
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "pylint-common is a Pylint plugin to improve Pylint error analysis of the" \
"standard Python library"
_short_description = ("pylint-common is a Pylint plugin to improve Pylint "
"error analysis of the standard Python library")
_classifiers = (
'Development Status :: 4 - Beta',
......@@ -19,8 +20,23 @@ _classifiers = (
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
)
if sys.version_info < (2, 7):
# pylint 1.4 dropped support for Python 2.6
_install_requires = [
'pylint>=1.0,<1.4',
'astroid>=1.0,<1.3.0',
'logilab-common>=0.60.0,<0.63',
]
else:
_install_requires = [
'pylint>=1.0',
]
setup(
name='pylint-common',
url='https://github.com/landscapeio/pylint-common',
......@@ -29,7 +45,7 @@ setup(
description=_short_description,
version=_version,
packages=_packages,
install_requires=['pylint>=1.0', 'astroid>=1.0', 'pylint-plugin-utils>=0.2.1'],
install_requires=_install_requires,
license='GPLv2',
classifiers=_classifiers,
keywords='pylint stdlib plugin',
......
from os.path import join, dirname, abspath
import unittest
from logilab.common import testlib
from pylint.testutils import make_tests, LintTestUsingModule, LintTestUsingFile, cb_test_gen, linter
import sys
......@@ -17,7 +16,7 @@ linter.global_set_option('required-attributes', ()) # remove required __revisio
def suite():
return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite)
return unittest.TestSuite([unittest.makeSuite(test, suiteClass=unittest.TestSuite)
for test in make_tests(INPUT_DIR, MESSAGES_DIR,
FILTER_RGX, CALLBACKS)])
......@@ -25,6 +24,5 @@ if __name__=='__main__':
if len(sys.argv) > 1:
FILTER_RGX = sys.argv[1]
del sys.argv[1]
testlib.unittest_main(defaultTest='suite')
unittest.main(defaultTest='suite')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment