From ea10824e12e7d9409e7a8918094c1dbfa2d66f05 Mon Sep 17 00:00:00 2001 From: Benjamin ABEL Date: Mon, 2 Mar 2015 19:15:29 +0100 Subject: Add Setuptools integration issue #261 These changes enable any user that installs `isort` to check his source code from setup.py with the command `python setup.py isort` I also checked isort package code with his command in tox and travis. Acknowledgements: this is mostly inspired by flake8 setuptools integration, see [flake8 doc](http://flake8.readthedocs.org/en/2.2.3/setuptools.html) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 124bea32..f51220f7 100755 --- a/setup.py +++ b/setup.py @@ -53,7 +53,8 @@ setup(name='isort', entry_points={ 'console_scripts': [ 'isort = isort.main:main', - ] + ], + 'distutils.commands': ['isort = isort.main:ISortCommand'], }, packages=['isort'], requires=['pies', 'natsort'], -- cgit v1.2.1