|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +from distutils.core import setup |
| 3 | +from setuptools import find_packages |
| 4 | +import sys |
| 5 | + |
| 6 | + |
| 7 | +_version = '0.1' |
| 8 | +_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]) |
| 9 | + |
| 10 | +_short_description = "pylint-flask is a Pylint plugin to aid Pylint in recognising and understanding" \ |
| 11 | + "errors caused when using Flask" |
| 12 | + |
| 13 | + |
| 14 | +_classifiers = ( |
| 15 | + 'Development Status :: 4 - Beta', |
| 16 | + 'Environment :: Console', |
| 17 | + 'Intended Audience :: Developers', |
| 18 | + 'Operating System :: Unix', |
| 19 | + 'Topic :: Software Development :: Quality Assurance', |
| 20 | + 'Programming Language :: Python :: 2.7', |
| 21 | + 'Programming Language :: Python :: 3.3', |
| 22 | + 'Programming Language :: Python :: 3.4', |
| 23 | +) |
| 24 | + |
| 25 | + |
| 26 | +_install_requires = [ |
| 27 | + 'pylint-plugin-utils>=0.2.1' |
| 28 | +] |
| 29 | + |
| 30 | + |
| 31 | +if sys.version_info < (2, 7): |
| 32 | + # pylint 1.4 dropped support for Python 2.6 |
| 33 | + _install_requires += [ |
| 34 | + 'pylint>=1.0,<1.4', |
| 35 | + 'astroid>=1.0,<1.3.0', |
| 36 | + 'logilab-common>=0.60.0,<0.63', |
| 37 | + ] |
| 38 | +else: |
| 39 | + _install_requires += [ |
| 40 | + 'pylint>=1.0', |
| 41 | + 'astroid>=1.0', |
| 42 | + 'logilab-common>=0.60.0', |
| 43 | + ] |
| 44 | + |
| 45 | +setup( |
| 46 | + name='pylint-flask', |
| 47 | + url='https://github.com/jschaf/pylint-flask', |
| 48 | + author='Joe Schafer', |
| 49 | + |
| 50 | + description=_short_description, |
| 51 | + version=_version, |
| 52 | + packages=_packages, |
| 53 | + install_requires=_install_requires, |
| 54 | + license='GPLv2', |
| 55 | + classifiers=_classifiers, |
| 56 | + keywords='pylint flask plugin' |
| 57 | +) |
0 commit comments