diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-12-16 15:47:01 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-12-16 15:47:01 +0100 |
commit | 68455af9cd842132c03ab87b6f14a2e1e769a77c (patch) | |
tree | 3dd1ed48ac6333b6b098cd7455c708a3cd497d34 | |
parent | 6d2aa3389684e293006b8d553aa9f1569052d7d0 (diff) | |
download | json_diff-68455af9cd842132c03ab87b6f14a2e1e769a77c.tar.gz |
Switch to setuptools
-rw-r--r-- | setup.py | 25 |
1 files changed, 3 insertions, 22 deletions
@@ -1,28 +1,9 @@ # coding: utf-8 -from distutils.core import setup, Command +from setuptools import setup import os.path import json_diff -class RunTests(Command): - """New setup.py command to run all tests for the package. - """ - description = "run all tests for the package" - - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - import unittest - import test.test_json_diff - unittest.TextTestRunner(verbosity=2).run(test.test_json_diff.suite) - - def read(fname): f = open(os.path.join(os.path.dirname(__file__), fname)) out = "\n" + f.read().replace("\r\n", "\n") @@ -45,7 +26,7 @@ setup( py_modules=['json_diff'], long_description=get_long_description(), keywords=['json', 'diff'], - cmdclass={'test': RunTests}, + test_suite='test.test_json_diff', classifiers=[ "Programming Language :: Python", "Development Status :: 4 - Beta", @@ -55,5 +36,5 @@ setup( "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General", - ] + ] ) |