Skip to content

Commit 4e81b3d

Browse files
committed
Clean up
1 parent 3feab88 commit 4e81b3d

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

‎setup.cfg‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ setup_hooks =
55

66
[metadata]
77
name = language-check
8-
version = 0.6.1
98
summary = Checks grammar using LanguageTool.
109
description-file = README.rst
1110
home-page = https://github.com/myint/language-check

‎setup.py‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313

1414
from distutils.version import LooseVersion
1515

16-
try:
17-
from setuptools import setup
18-
USING_SETUPTOOLS = True
19-
except ImportError:
20-
from distutils.core import setup
21-
USING_SETUPTOOLS = False
16+
from setuptools import setup
2217

2318
try:
2419
from configparser import RawConfigParser
@@ -330,11 +325,10 @@ def cfg_to_args(config):
330325
],
331326
}
332327

333-
if USING_SETUPTOOLS:
334-
opts_to_args['metadata'].append(('requires-dist', 'install_requires'))
335-
if IS_PY2K and not which('3to2'):
336-
kwargs['setup_requires'] = ['3to2']
337-
kwargs['zip_safe'] = False
328+
opts_to_args['metadata'].append(('requires-dist', 'install_requires'))
329+
if IS_PY2K and not which('3to2'):
330+
kwargs['setup_requires'] = ['3to2']
331+
kwargs['zip_safe'] = False
338332

339333
for section in opts_to_args:
340334
for option, argname in opts_to_args[section]:

‎test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
class TestLanguageTool(unittest.TestCase):
13+
1314
CheckTest = namedtuple('CheckTest', ('text', 'matches'))
1415
Match = namedtuple('Match', ('fromy', 'fromx', 'ruleId'))
1516

0 commit comments

Comments
 (0)