forked from PyCQA/pep8-naming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (62 loc) · 2.1 KB
/
setup.py
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
67
68
69
70
71
# -*- coding: utf-8 -*-
from __future__ import with_statement
from setuptools import setup
from setuptools.command.test import test as TestCommand
def get_version(fname='pep8ext_naming.py'):
with open(fname) as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
def get_long_description():
descr = []
for fname in ('README.rst',):
with open(fname) as f:
descr.append(f.read())
return '\n\n'.join(descr)
class RunTests(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import run_tests
import sys
errno = run_tests.main()
sys.exit(errno)
setup(
name='pep8-naming',
version=get_version(),
description="Check PEP-8 naming conventions, plugin for flake8",
long_description=get_long_description(),
keywords='flake8 pep8 naming',
author='Florent Xicluna',
author_email='[email protected]',
url='https://github.com/flintwork/pep8-naming',
license='Expat license',
py_modules=['pep8ext_naming'],
zip_safe=False,
entry_points={
'flake8.extension': [
'N80 = pep8ext_naming:NamingChecker',
'N81 = pep8ext_naming:NamingChecker',
],
# Backward compatibility for Flint (now merged into Flake8)
'flint.extension': [
'N80 = pep8ext_naming:NamingChecker',
'N81 = pep8ext_naming:NamingChecker',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
],
cmdclass={'test': RunTests},
)