-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (45 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from distutils.core import setup, Command
from unittest2 import TextTestRunner, TestLoader
import vimdown.tests
cmdclasses = dict()
class TestCommand(Command):
"""Runs the unit tests for vimdown"""
user_options = []
def initialize_options(self):
"""@todo: Docstring for initialize_options
:returns: @todo
"""
pass
#initialize_options()
def finalize_options(self, arg1):
"""@todo: Docstring for finalize_options
:arg1: @todo
:returns: @todo
"""
pass
#finalize_options()
def run(self):
"""@todo: Docstring for run
:returns: @todo
"""
loader = TestLoader()
t = TextTestRunner()
t.run(loader.loadTestsFromModule(vimdown.tests))
#run()
#TestCommand
# 'test' is the parameter as it gets added to setup.py
cmdclasses['test'] = TestCommand
setup(cmdclass = cmdclasses,
name='vimdown',
version='1.2.0',
description="Convert Vim files to Markdown",
author="Jeff Buttars",
author_email="jeffbuttars@gmail.com",
url="http://github.com/jeffbuttars/vimdown",
download_url="https://github.com/downloads/jeffbuttars/Vimdown/vimdown-1.1.1.tar.gz",
requires=["markdown2","unittest2"],
provides=["vimdown"],
scripts=["vimdown/vimdown"],
py_modules=["vimdown.lexer", "vimdown.parser", "vimdown.tests.run_tests"],
license="BSD",
)