aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-05-22 13:03:14 +0200
committerMatěj Cepl <mcepl@redhat.com>2014-05-22 13:03:14 +0200
commit51bdad571d30c551fb7e1f38813d106304c7daa8 (patch)
tree826108bec22dc3f401556f3fa0318b47b69e94a0
parent426540a5a19ef772ae477ee0a37d4d6f0351c556 (diff)
downloadcucutags-51bdad571d30c551fb7e1f38813d106304c7daa8.tar.gz
Replace distutils with setuptools (and simplify setup.py)
-rwxr-xr-xcucutags.py2
-rw-r--r--setup.py24
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 <mcepl_at_redhat_dot_com>"
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",