aboutsummaryrefslogblamecommitdiffstats
path: root/setup.py
blob: 9ba697e82b2d4a38abf78f3b5461f577d6ad68df (plain) (tree)
1
2
3
4
5

                                                      
                                         

               



















                                                             













                                                                     
                                    
                                















                                                                       
# coding: utf-8
from __future__ import absolute_import, print_function
from distutils.core import setup, Command
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):
    with open(os.path.join(os.path.dirname(__file__), fname)) as inf:
        return "\n" + inf.read().replace("\r\n", "\n")

setup(
    name='cucutags',
    py_modules=['cucutags'],
    version=str(cucutags.__version__),
    description='Generates ctags for BDD .feature/behave steps',
    author=u'Matěj Cepl',
    author_email='mcepl@redhat.com',
    url='https://gitorious.org/cucutags/cucutags/',
    long_description=read("README"),
    cmdclass={'test': RunTests},
    keywords=['BDD', 'behave', 'ctags', 'tags'],
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Development Status :: 3 - Alpha",
        "Environment :: Console",
        "Intended Audience :: Information Technology",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Testing"
    ],
    requires=["parse"]
)