forked from zheller/flake8-quotes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (59 loc) · 2.39 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
# -*- coding: utf-8 -*-
'''
Flake8-Single-Quotes
--------------------
A Flake8 extension to enforce single-quotes.
Links
`````
* `development version <https://github.com/maxcountryman/flake8-single-quotes>`_
'''
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import flake8_single_quotes
setup_requires = ['pytest', 'tox']
install_requires = ['setuptools', 'tox']
tests_requires = ['pytest-cov', 'pytest-cache']
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--strict',
'--verbose',
'--tb=long',
'--cov', 'flake8_single_quotes.py',
'--cov-report', 'term-missing', 'tests']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
ext_checker_str = 'flake8_single_quotes = flake8_single_quotes:QuoteChecker'
setup(name='flake8-single-quotes',
author='Max Countryman',
author_email='maxc@me.com',
version=flake8_single_quotes.__version__,
url='https://github.com/maxcountryman/flake8-single-quotes/',
description='A Flake8 extension to enforce single-quotes.',
long_description=__doc__,
license='MIT',
py_modules=['flake8_single_quotes'],
entry_points={'flake8.extension': [ext_checker_str]},
packages=find_packages(exclude=['tests']),
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Quality Assurance'],
cmdclass={'test': PyTest},
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_requires,
extras_require={'test': tests_requires},
zip_safe=False)