-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
53 lines (41 loc) · 1.38 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
import sys
import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from markdown_checklist import (__version__ as VERSION, __author__ as AUTHOR,
__license__ as LICENSE, __doc__ as DESC)
META = {
'name': 'markdown-checklist',
'url': 'https://github.com/FND/markdown-checklist',
'version': VERSION,
'description': 'Python Markdown extension for task lists with checkboxes',
'long_description': DESC.strip(),
'long_description_content_type': 'text/markdown',
'license': LICENSE,
'author': AUTHOR,
'author_email': '',
'maintainer': AUTHOR,
'packages': find_packages(exclude=['test']),
'platforms': 'Posix; MacOS X; Windows',
'include_package_data': True,
'zip_safe': False,
'install_requires': ['markdown'],
'extras_require': {
'testing': ['pytest'],
'coverage': ['figleaf', 'coverage']
}
}
# entry point for tests (required because `coverage` fails to invoke `py.test`
# in Travis CI's virtualenv)
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
META['cmdclass'] = { 'test': PyTest }
if __name__ == '__main__':
setup(**META)