1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
import os
import sys
_version = '0.7.2'
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "pylint-django is a Pylint plugin to aid Pylint in recognising and understanding" \
"errors caused when using the Django framework"
_transform_dir = 'pylint_django/transforms/transforms'
_package_data = {
'pylint_django': [
os.path.join('transforms/transforms', name) for name in os.listdir(_transform_dir)
]
}
_classifiers = (
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
)
_install_requires = [
'pylint-plugin-utils>=0.2.1'
]
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-django',
url='https://github.com/landscapeio/pylint-django',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
version=_version,
packages=_packages,
package_data=_package_data,
install_requires=_install_requires,
license='GPLv2',
classifiers=_classifiers,
keywords='pylint django plugin',
zip_safe=False,
)
|