-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
40 lines (33 loc) · 1.11 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ['tests']
def finalize_options(self):
TestCommand.finalize_options(self)
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
VERSION = '0.0.1'
setup(
name = "md2py",
version = VERSION,
author = "Alvin Wan",
author_email = 'hi@alvinwan.com',
description = ("utility converting markdown into Python abstraction"),
license = "Apache",
url = "http://github.com/alvinwan/md2py",
packages = ['md2py'],
cmdclass = {'test': PyTest},
tests_require = ['pytest'],
install_requires = ['markdown', 'beautifulsoup4'],
download_url = 'https://github.com/alvinwan/md2py/archive/%s.zip' % VERSION,
classifiers = [
"Topic :: Utilities",
],
)