From 51bdad571d30c551fb7e1f38813d106304c7daa8 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 22 May 2014 13:03:14 +0200 Subject: Replace distutils with setuptools (and simplify setup.py) --- cucutags.py | 2 +- setup.py | 24 ++---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/cucutags.py b/cucutags.py index 4ac2641..d57d310 100755 --- a/cucutags.py +++ b/cucutags.py @@ -31,7 +31,7 @@ logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', import parse __docformat__ = 'reStructuredText' -__version__ = "0.6.0" +__version__ = "0.6.1" __author__ = u"Matěj Cepl " diff --git a/setup.py b/setup.py index 9ba697e..1175581 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +1,8 @@ # coding: utf-8 from __future__ import absolute_import, print_function -from distutils.core import setup, Command +from setuptools import setup import os.path import cucutags -import unittest - - -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): - tests = unittest.TestLoader().discover('.') - runner = unittest.TextTestRunner(verbosity=2) - runner.run(tests) def read(fname): @@ -38,7 +18,7 @@ setup( author_email='mcepl@redhat.com', url='https://gitorious.org/cucutags/cucutags/', long_description=read("README"), - cmdclass={'test': RunTests}, + test_suite='test', keywords=['BDD', 'behave', 'ctags', 'tags'], classifiers=[ "Programming Language :: Python", -- cgit